Date: Mon, 29 Oct 2007 10:06:58 +0100 From: Gabor Kovesdan <gabor@FreeBSD.org> To: Miklos Magyari <magyari@freemail.hu> Cc: ru@FreeBSD.org, Hiroki Sato <hrs@FreeBSD.org>, doc@FreeBSD.org, Marc Fonvieille <blackend@FreeBSD.org> Subject: Re: localized man pages Message-ID: <4725A2B2.6040903@FreeBSD.org> In-Reply-To: <freemail.20070927114622.34848@fm14.freemail.hu> References: <freemail.20070927114622.34848@fm14.freemail.hu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4725A2B2.6040903>