Vichtl
22nd June 2004, 14:14
Hallo!

Ich versuche seit geraumer Zeit tschechische Zeichen aus Baan zu drucken. Leider bin ich bisher kläglich gescheitert. Wenn ich den Drucker D wähle, dann klappt alles wunderbar. Wenn ich aber einen physischen Drucker wähle (ein HP laserJet 4000 N) dann werden die Zeichen falsch ausgegeben.
Wir verwenden als Betriebssystem Unix (HP Unix).
Hat jemand bereits dieses Problem gehabt.
Danke!
Vichtl

rochus
22nd June 2004, 19:32
a)
das language-set für das betriebssystem hp-ux muss installiert werden,
(wenn ascii-modus verwendet wird)

b) muss der printertreiber etwas angepasst werden

c) als locale mus iso-bin2 verwendet werden

unter tru64 haben wird das bereits realisiert.

die sparache ins installiert, oder ? problöeme treten ja nur bei
sonderzeichen auf.

Vichtl
5th July 2004, 10:36
Wenn esw wen interessiert:
First, printing czech characters is not a part of czech localization.
Thera are not necessary any new object and software components. My first question is, what Device Type is used in your output device ?

In case "Windows Printer" it is necessary to define new ISO88592_WIN32 locale in Baan systems and use this as Locale for users and output devices. Only in this case bwprint choose right font nationality specification (WestEurope vs. EastEurope etc.) and czech characters are right on Windows Printer devices.

In case you use "Printer", "Direct" or "AUX port", in the device driver is necessary to send right command into printer to switch printer's code page in initpr escape sequence.

As you can see in HP LJ manual

\E(12U - PC 850 codepage
\E(17U - PC 852 codepage = czech PC Latin 2 codepage

In PC850 are not available czech characters. So, first you have to change your initpr sequence by this way. After that, you printer is ready to print czech characters in PC 852 codepage.

Now we need to convert characters on output from Baan into PC 852 codepage using nls_out code table. I look on your table but it doesn't look as right code table for change from ISO88592 into CP852 codepage. I hope, that I can show you our code table, and it looks like this

\169 \230
\171 \155
\174 \166
\185 \231
\187 \156
\190 \167
\193 \181
\200 \172
\201 \144
\204 \183
\205 \214
\207 \210
\210 \213
\211 \224
\216 \252
\217 \222
\218 \233
\221 \237
\225 \160
\232 \159
\233 \130
\236 \216
\237 \161
\239 \212
\242 \229
\243 \162
\248 \253
\249 \133
\250 \163
\253 \236