From owner-freebsd-doc@FreeBSD.ORG Mon Oct 29 22:31:01 2007 Return-Path: Delivered-To: doc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0789E16A417; Mon, 29 Oct 2007 22:31:01 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.t-hosting.hu (server.t-hosting.hu [81.2.252.59]) by mx1.freebsd.org (Postfix) with ESMTP id 789AD13C4B2; Mon, 29 Oct 2007 22:31:00 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by server.t-hosting.hu (Postfix) with ESMTP id C98BFA4ABE0; Mon, 29 Oct 2007 10:07:19 +0100 (CET) X-Virus-Scanned: amavisd-new at t-hosting.hu Received: from server.t-hosting.hu ([127.0.0.1]) by localhost (server.t-hosting.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id nrwcvQGLEDXZ; Mon, 29 Oct 2007 10:07:10 +0100 (CET) Received: from [192.168.2.186] (catv-5063f539.catv.broadband.hu [80.99.245.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.t-hosting.hu (Postfix) with ESMTP id 862BAA4ABD8; Mon, 29 Oct 2007 10:07:10 +0100 (CET) Message-ID: <4725A2B2.6040903@FreeBSD.org> Date: Mon, 29 Oct 2007 10:06:58 +0100 From: Gabor Kovesdan User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Miklos Magyari References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit Cc: ru@FreeBSD.org, Hiroki Sato , doc@FreeBSD.org, Marc Fonvieille Subject: Re: localized man pages X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2007 22:31:01 -0000 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