看板 FB_doc 關於我們 聯絡資訊
Miklos Magyari escribi > hi, > > >> we must be able to do this with our groff 1.19.2, too. I'm not sure how >> to adjust man(1) to do it automatically, though. Miklos, the guy, who >> volunteered to do some translation work on the manpages also claimed >> that he could see the translated manpages properly by using latin1 encoding >> instead of ascii. >> > > I've took a quick look in man's source. > There is a static struct called ltable at line 99 of > > /usr/src/gnu/usr/bin/man/man/man.c > > I've added a new entry: > > "ISO8859-2", "latin1" > > to prevent using ascii for rendering man pages when this codepage is set. > With this change compiled & installed, man renders Hungarian man pages put under /usr/share/man/hu.ISO8859-2 like a charm, all special characters (both lower and upper case) are shown correctly (assuming hu_HU.ISO8859-2 locale is set). This is because latin1 is used and the output is not filtered through 'col'. > > Of course I don't know if this small change breaks anything, but at least it makes Hungarian man pages working. > > I would prefer utf-8, since latin1 does not have our double accented u and o, just those ones with a tilde or with a circumflex accent. Latin2 would be the best, but as we don't have that utf-8 should be used imho. I can't investigate right now, but as soon as I have some time I will do so. -- Gabor Kovesdan FreeBSD Volunteer EMAIL: gabor@FreeBSD.org .:|:. gabor@kovesdan.org WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org _______________________________________________ freebsd-doc@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-doc To unsubscribe, send any mail to "freebsd-doc-unsubscribe@freebsd.org"