From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8465 invoked by alias); 28 Jul 2002 18:14:40 -0000 Mailing-List: contact docbook-tools-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: docbook-tools-discuss-owner@sources.redhat.com Received: (qmail 8392 invoked from network); 28 Jul 2002 18:14:39 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (66.187.233.200) by sources.redhat.com with SMTP; 28 Jul 2002 18:14:39 -0000 Received: from meme.surrey.redhat.com (meme.surrey.redhat.com [172.16.10.38]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g6SIEa215599; Sun, 28 Jul 2002 14:14:37 -0400 Received: (from twaugh@localhost) by meme.surrey.redhat.com (8.11.6/8.11.6) id g6SIEV324510; Sun, 28 Jul 2002 19:14:31 +0100 Date: Sun, 28 Jul 2002 11:14:00 -0000 From: Tim Waugh To: Philippe Batailler Cc: docbook-tools-discuss@sources.redhat.com Subject: Re: about docbook2man (docbook2man-spec.pl) Message-ID: <20020728191430.O28686@redhat.com> References: <20020727155552.GA617@clalis> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="2OzUYMsT4j3Kc+NU" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020727155552.GA617@clalis>; from pbatailler@teaser.fr on Sat, Jul 27, 2002 at 05:55:52PM +0200 X-SW-Source: 2002-q3/txt/msg00026.txt.bz2 Message-ID: <20020728111400.3R9xsayH98ikmv_joCcRo-r_NGAoZEpxvWU7OjlmhGs@z> --2OzUYMsT4j3Kc+NU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 692 On Sat, Jul 27, 2002 at 05:55:52PM +0200, Philippe Batailler wrote: > Hello, > When using package docbook-utils, version 0.6.11, and docbook2man to > create a manpage, the output shows "NAME" for every language. > It should be localized. Good point. > What do you think of the kind of patch I attach to this mail ? Good, except for this bit: > + my $id = $_[0]->attribute('LANG')->value; We need to use the current value of the 'lang' attribute for this. For example: ... ... So we need to look for the 'lang' attribute on the ancestor nodes. I have applied the nbsp and thinsp handlers---thanks. Tim. */ --2OzUYMsT4j3Kc+NU Content-Type: application/pgp-signature Content-Disposition: inline Content-length: 232 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9RDSFyaXy9qA00+cRAqQZAKCllpqBzTbx7+EQELWJlU0WZxU7FgCggtQ2 qC9ng1PYZ6ZjhZfD2Hds2eo= =HoqL -----END PGP SIGNATURE----- --2OzUYMsT4j3Kc+NU--