Operating System - HP-UX
1838295 Members
4383 Online
110125 Solutions
New Discussion

Re: Printing czech letters

 
Martin Daehmlow
Occasional Contributor

Printing czech letters

Hello

I have a text file with czech characters and want to print it out to an hp laser printer (hp 5/hp 4000). But I get always other characters on the printer. In the vi-Editor the characters are all correct.
I set the LANG variable to cs_CZ.iso88592.
The printer is able to print such characters (tested from a MS Windows Application). It is important to print out "normal" characters (western european) and czech characters (eastern european).
Our Platform is a HP L-Class-Server OS: HP-UX 11.00.
I tried to print out the characters with the following unix command:
lp -d -ocs_CZ.iso88592 -odcs=iso88592

Thank you for your help.
3 REPLIES 3
Ceesjan van Hattum
Esteemed Contributor

Re: Printing czech letters

Other possibilities might be:
1. convert czech to postscript
2. convert czech to tex
3. convert czech to html

Have a look for 'Obecna instalace na libovolny Unix' on http://www.penguin.cz/czech-howto/Czech-HOWTO-7.html

Succes!
Regards,
Ceesjan

Martin Daehmlow
Occasional Contributor

Re: Printing czech letters

Hello Ceesjan

To print this characters from a unix-prompt is only the first step for me. We have to print out in czech from our ERP-Applikation BaaN. And this Applikation uses normal lp-commands for printing.
The other problem is, that I could not understand your the content of the link which you send to me.
Ceesjan van Hattum
Esteemed Contributor

Re: Printing czech letters

In case your printer is a postscript printer, you might try to change the command as follows:
a2ps | lp -d

The a2ps turns your textfile to postscript. See http://www.fit.vutbr.cz/CVT/tiskarny.html.en.iso-8859-1

Something else.. if you type the command 'locale'.. what do you see?
LANG=
LC_CTYPE=
LC_COLLATE=
LC_MONETARY=
LC_NUMERIC=
LC_TIME=
LC_MESSAGES=
LC_ALL=
All of them should show som cs_CZ.. info. If not, the LANG variable was not exported: export LANG=cs_CZ.iso88592
or 'setenv' in C-shell.

Some other link: http://www.humboldt.edu/cgi-bin/man2html?Czech

My last guess is to create a new printerspooler (pointing to the same printer) and make the cs_CZ.iso88592 part of the spooler-characteristics;
but i do not know how that is done.

Succes:
Ceesjan v. Hattum