groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Question concerning Czech man pages in UTF-8


From: Werner LEMBERG
Subject: Re: [Groff] Question concerning Czech man pages in UTF-8
Date: Wed, 04 Sep 2002 17:03:09 +0200 (CEST)

> Running the following commandline 
> 
>     zcat /usr/share/man/cs/man1/man.1.gz | groff -mandoc -Tutf8 - | less
> 
> in an UTF-8 locale in an UTF-8 capable terminal results in the display
> of wrong characters in a Czech man page:
> 
>     http://www.suse.de/~mfabian/screenshots/czech-man-page-utf-8.png
> 
> But the following commandline 
> 
>    zcat /usr/share/man/cs/man1/man.1.gz | (LC_ALL=cs_CZ.ISO-8859-2 groff 
> -mandoc -Tlatin1 - ) | iconv -f iso-8859-2 -t utf-8 | less
> 
> appears to work fine:
> 
>     
> http://www.suse.de/~mfabian/screenshots/czech-man-page-utf-8-with-help-of-iconv.png
> 
> Why is it necessary to force groff to run in cs_CZ locale and use
> -Tlatin1 (or -Tascii8) and convert the result to UTF-8 instead of
> using -Tutf8 directly?

Currently, groff only supports UTF8 for output, not for input.  This
will change as soon as groff's conversion to Unicode has been
implemented.


    Werner

reply via email to

[Prev in Thread] Current Thread [Next in Thread]