hellein
6th July 2009, 16:48
Hello!

We try to print turkish characters out of Baan IVc3 on a HP laserjet 4000N. Unfortunately it doesn't work as expected. Is there anybody who has experience with this problem, that the characters are not printed correctly?

Do there exist any printer-drivers?

Thank you in advance and best regards,

Markus H.

günther
8th July 2009, 17:21
Hello Markus.

First you should have a look at the driver $BSE/lib/printinf/h/hp_lj4. That is a plain ASCII file with some definitions; the line init_pr=... (note the last comma, it's essential!) contains \E(12U I guess.

So: copy hp_lj4 to eg. hp_lj4_tr, change the sequence(s) as needed, and use that driver in your baan printer definition.

Günther

hellein
9th July 2009, 17:50
Hi Günther!

Thanks for your help... this brought me already a few steps further :-)

I just compared the hp_lj4.txt with (specialy for Czech-Republic configured) hp_lj4_cz.txt.

The differences are here:

cz:
initpr=\EE\E&l26a66F\E(17U\E(s10H\E&l5H\E(s0p10h0s0b4099T\E&k11.6H,
Austria:
initpr=\EE\E&l26a66F\E(12U\E(s10H\E&l5H\E(s0p10h0s0b4099T\E&k11.6H,

CZ:
# Character Sets
#******************************************************************************
set0=\E(9E,

Austria:
# Character Sets
#******************************************************************************
set0=\E(12U,



and a configured .out-file:
# NLS Table
#******************************************************************************
nls_out=hp_pc850.out,


where do I find the .out file and how should it be configured? Do you have an idea? Do you know what I should change these values in the hp_lj4 to?

thank you and beste Grüße

Markus

günther
9th July 2009, 18:05
Hi Markus.

Your NLS file can be found in $BSE/lib/nlsinf/h/hp_pc850.out. It's just a mapping table, one line per character; format is <in> \t <out>.

Günther

hellein
9th July 2009, 18:16
thanks for that - found it...

I have to ask :-)

do you have such a file, configured for turkey?

i see many entries like these:

\169 \230
\171 \155
\174 \166

but I don't know which ones I should use here...

have a nice envening,

Markus

günther
10th July 2009, 08:46
Hello Markus.

Sorry, I don't have turish file, sorry.

But here is what I would do:

1. In your new printer (say hp_lj4_tr) use a new nls out file.
2. That file should look like

\128 <tab> \128
...
\255 <tab> \255

Note: <tab> means the tab character, control-I, or \t (as one character).

3. generate a baan report that has one input variable r.line (80 chars) and prints that.
4. sessin script like

...
long i, j
string c(10)
for i = 128 to 255
c = chr$(i)

for j = 0 to 15
if c = cf$(j) then
c = "cf$(" & str$(j) & ")"
break
endif
endfor

r.line = sprintf$("%03d 0x%02x %03o %s", i, i, i, c)
rprt_send()
endfor


5. When you print that to your printer for the first time, you will get a list of all (turkish) 8-bit characters, but they might be placed at the "wrong" position. So now you have to "move" them with the nls out file.

Günther