Gnuru.org
Productive Linux


Subscribe

 Subscribe via Feedburner in a reader

Enter your email address:

Delivered by FeedBurner


Login
Login:
Password:



Don't have an account?
Sign up to Gnuru.org
Forgot your password?

mozilla printing fixed text
25 March 2004 @ 00:31 GMT
by Paul

I've had trouble getting mozilla to print fixed text that is utf-8 encoded. It always prints it in a variable width font and wrecks any utf-8 characters.

To solve this problem I've got a little script that turns the utf-8 into 8859-1 and runs the result through enscript and then lynx (I'd prefer to use links but it (version 0.9.1) crashes). So far what I do is I save the web page as temp.html and then run this:

iconv -f UTF-8 -t 8859_1 temp.html | lynx -stdin -dump -dont_wrap_pre | enscript -f Courier6 -o temp.ps

this leaves the result in temp.ps which I can then examine with ghostview before sending it to the printer. Without '-o temp.ps', the result will get sent straight to the printer




Leave a comment:

Are you human?