From: Keith M. <kei...@to...> - 2005-11-10 12:50:24
|
Wu Yongwei wrote, quoting me: >> BTW, I notice you used `groff -Tascii ...', rather than the >> `groff -Tlatin1 ...' incantation I suggested. This will still >> work, but do be aware that some manpages use characters which >> are not available in the ASCII character set; these will display >> as hexadecimal control codes, when typeset for -Tascii, but may >> be rendered better in a latin1 character set. > > I know quite little about groff, so what I thought might be wrong. > I was afraid that the result of `-Tlatin1' would not display > correctly under a CP437 or CP936 console. Correct me if I am wrong, > or send me some test man pages if you are not sure :-). I'd been led to believe, by comments in the `man' sources, that -Tlatin1 would generally give a better interpretation of manpages than -Tascii. Having tried -Tascii, with a selection of groff's own manpages, I'm not so sure -- the ASCII rendition may actually be the *better* option, at least for English language manpages; it is likely, however, that -Tlatin1 will work better for other Western languages, with accented characters. I guess the best advice would be to stick with -Tascii, if it seems to work for you, but try -Tlatin1, if you see lots of two digit hexadecimal codes enclosed in angle brackets, and displayed in reverse video. `man groff_char' provides a fairly comprehensive guide to the handling of character sets in groff. Best regards, Keith. |