Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-15-2004, 05:04 AM   #1
LQ Newbie
Registered: Feb 2004
Distribution: LFS 6.1.1/BLFS 6.1
Posts: 6

Rep: Reputation: 0
man -t <smth> | lpr problem with iso8859-2

Many man pages has been translated into polish encoded with iso8859-2.
They are readable in the console but I have problem with printing them. Instead of polish letters with 'ogonek' I get strange characters what makes it difficult to read.
As far as I could figure out the problem is with groff or troff, which does not know anything about encoding and assumes that this is in iso8859-1 instead of iso-8859-2.
Is there any solution to make it use iso8859-2 and to get proper characters on printerer?
Old 09-15-2004, 05:11 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,894

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Try these instructions:

To print man pages:
In this example, using tar man pages.

man -t tar | lpr -Pdraft

Print man pages for tar (will be formatted by troff or groff,
usually for PostScript)
Pipe to lpr
Send to printer <draft> [optional] (where <draft> is the name of the printer). The command will
print to the default printer if given as:
man -t tar | lpr


To print info pages:
In this example, using tar info pages.

cp /usr/share/info/ /home/<user>

Copy the info page to another location to avoid breaking
your on-line documentation.

gunzip /home/<user>/

After decompressing the file, use a2ps to convert to PostScript.


This produces a PostScript formatted file called
Open in your favorite editor and print from there.


To convert output to PDF format

man -t tar | ps2pdf > tar.pdf


I've tried info2html and didn't like the result.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Lpr problem MAGOVIA Linux - Newbie 2 05-25-2005 09:09 PM
Problem with lpr - cannot create temporary file fclifton Linux - General 3 09-18-2004 04:43 PM
Slack 10 CUPS problem , lpr sethgeekx86 Slackware 5 06-28-2004 03:03 PM
confused... lpr/ lpr-cups Linux - Software 1 04-06-2004 05:15 PM
lpr & lpr-cups commands not working with CUPS trinbellwoods Debian 2 01-08-2004 08:25 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration