printing iso8859 text

printing iso8859 text

Post by Cristian Barbaros » Sun, 26 Jan 2003 04:02:04



I have trouble printing a simple text file on a HP g55 deskjet
printer.
The text contains portuguese characters like ??? ...
The printer gives me some strange greek letters instead.
The file is in iso-8859 encoding, at least this is what the "file"
command says. I tried also to convert it with "iconv -f iso8859-1 -t
windows-1252" but the result was exactly the same. I am using RedHat
7.3.
I would appreciate any help.
Cristian Barbarosie http://www.ptmat.fc.ul.pt/~barbaros
 
 
 

printing iso8859 text

Post by Dr. Yuan Li » Mon, 27 Jan 2003 04:40:46



> I have trouble printing a simple text file on a HP g55 deskjet
> printer.
> The text contains portuguese characters like ??? ...
> The printer gives me some strange greek letters instead.
> The file is in iso-8859 encoding, at least this is what the "file"
> command says. I tried also to convert it with "iconv -f iso8859-1 -t
> windows-1252" but the result was exactly the same. I am using RedHat
> 7.3.
> I would appreciate any help.
> Cristian Barbarosie http://www.ptmat.fc.ul.pt/~barbaros

You may want to specify the printing system you are using (BSD, LPRng,
CUPS, ...).  All work with some kind of filters.  You either need to
build your own filter as it is apparent that your deskjet doesn't speak
Portuguese by default, or you can get some prebuilt filters for your
printer.  Portugese is probably supported by deskjet, so writing a
filter isn't that complicated, if you have the printer manual. (Usually
just an escape sequence.)

Hope this helps.

Yuan Liu

 
 
 

printing iso8859 text

Post by Cristian Barbaros » Wed, 29 Jan 2003 01:21:51


Quote:> You may want to specify the printing system you are using (BSD, LPRng,
> CUPS, ...).  All work with some kind of filters.  You either need to
> build your own filter as it is apparent that your deskjet doesn't speak
> Portuguese by default, or you can get some prebuilt filters for your
> printer.  Portugese is probably supported by deskjet, so writing a
> filter isn't that complicated, if you have the printer manual. (Usually
> just an escape sequence.)

I use LPRng. Here is the contents of my /etc/printcap file.

g55:\
        :ml=0:\
        :mx=0:\
        :sd=/var/spool/lpd/g55:\
        :af=/var/spool/lpd/g55/g55.acct:\
        :sh:\
        :lp=/var/run/ptal-printd/mlc_par_OfficeJet_G55:\
        :lpd_bounce=true:\
        :if=/usr/share/printconf/util/mf_wrapper:

g55s:\
        :ml=0:\
        :mx=0:\
        :sd=/var/spool/lpd/g55s:\
        :af=/var/spool/lpd/g55s/g55s.acct:\
        :sh:\
        :lp=/var/run/ptal-printd/mlc_par_OfficeJet_G55:\
        :lpd_bounce=true:\
        :if=/usr/share/printconf/util/mf_wrapper:

As for the printer manual, no hope! HP's manual says absolutely nothing useful.

In the meanwhile, I managed to print the file by using the a2ps program.
Interesting enough, a2ps works OK on the ISO-8859 version, while the
"extended ascii" version brings up strange escape sequences.

Thank you for your help.
Cristian Barbarosie http://www.ptmat.fc.ul.pt/~barbaros

 
 
 

printing iso8859 text

Post by Dr. Yuan Li » Wed, 29 Jan 2003 17:31:56



>>You may want to specify the printing system you are using (BSD, LPRng,
>>CUPS, ...).  All work with some kind of filters.  You either need to
>>build your own filter as it is apparent that your deskjet doesn't speak
>>Portuguese by default, or you can get some prebuilt filters for your
>>printer.  Portugese is probably supported by deskjet, so writing a
>>filter isn't that complicated, if you have the printer manual. (Usually
>>just an escape sequence.)

[snip]
> As for the printer manual, no hope! HP's manual says absolutely nothing useful.

You are right.  After my old, old DJ500 manual, they no longer include
basic PCL table in manuals.  Fortunately, PCL is online - see
http://www.hp.com/cposupport/printers/support_doc/bpl02705.html.
ISO-8859-1, for example, is switched on by Ec(0N.

The real challenge to build a good filter is to auto filter.  As file
often does a good job recognizing input, you can include it in your filter.

Yuan Liu

Quote:> In the meanwhile, I managed to print the file by using the a2ps program.
> Interesting enough, a2ps works OK on the ISO-8859 version, while the
> "extended ascii" version brings up strange escape sequences.

> Thank you for your help.
> Cristian Barbarosie http://www.ptmat.fc.ul.pt/~barbaros

 
 
 

1. Difference between de.ISO8859-15 and de.ISO8859-15@euro locale ?

Hi !

----

Can anyone explain the differnce between these two locales (listed by
"locale -a" on Solaris 2.7/MU4):

-- snip --
de.ISO8859-15

-- snip --

AFAIK does ISO8859-15 already contains "support" for the Euro

----

Bye,
Roland

--
  __ .  . __


  /O /==\ O\  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
 (;O/ \/ \O;) TEL +49 641 99-13193 FAX +49 641 99-41359

2. Need x86 Hardware FAQ

3. Printing - ISO8859-1 files ?

4. kernel compiles root device as (3,65); boots for (3,41)

5. Printing text, image, text, image, ...

6. Elsa Erzor X2

7. Use lpd/Samba to provide generic text print to text file for windows apps?

8. GAMES/TOYS(REQ)FROM COMP+INVENT

9. remote printer won't print non plain text print jobs.

10. Printing Problem: Stair-Stepping when printing text

11. Printing problems, only print blank pages with one line of text

12. HELP WITH PRINTING OF GRAPHICS AND TEXT

13. Appletalk printing + netatalk + Linux:URL + text