This is the mail archive of the docbook-tools-discuss@sources.redhat.com mailing list for the docbook-tools project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: about docbook2man (docbook2man-spec.pl)


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:

<refentry lang="de">
  ...
</refentry>
<refentry lang="es">
  ...
</refentry>

So we need to look for the 'lang' attribute on the ancestor nodes.

I have applied the nbsp and thinsp handlers---thanks.

Tim.
*/

Attachment: msg00109/pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]