Am Mittwoch, den 21.03.2007, 07:25 -0700 schrieb Daniel Burrows:
> On Mon, Mar 19, 2007 at 08:54:34PM +0100, Florentin Duneau <[EMAIL 
> PROTECTED]> was heard to say:
> > Package: aptitude
> > Version: 0.4.4-4
> > Severity: normal
> > 
> > Hi,
> > 
> > The aptitude manpages (en, fr for example) are wrongly generated. See
> > below the english manpage:
> > 
> > COMMAND-LINE ACTIONS
> >        The first argument which does not begin with a hyphen (“\fB-\fR”) is
> >        considered to be an action that the program should perform.
> >        If an action is not specified on the command-line, aptitude will 
> > start
> >        up in visual mode.
> > 
> >        The following actions are available:
> > 
> >        \fBinstall\fR
> 
>   I get:
> 
> COMMAND-LINE ACTIONS
>        The first argument which does not begin with a hyphen (“-”) is
>        considered to be an action that the program should perform. If an
>        action is not specified on the command-line, aptitude will start up in
>        visual mode.
> 
>        The following actions are available:
> 
>        install
> 
>   This is with aptitude 0.4.4-4 as present in Debian.  Did you get your
> package from somewhere else?

The package in Debian definitely shows the issue reported by the OP. The
reason is a change in the DocBook-XSL stylesheets version 1.72.0, that
missed some more announcement. In this change, backslashes are escaped
as '\e'. So

<xsl:text>\fB</xsl:text>

results in

\efB

in groff code. See
e.g. /usr/share/xml/docbook/stylesheet/nwalsh/manpages/utility.xsl
mode="bold" template for an example, how to handle this behaviour. You
must use the unicode code to represent backslahes. They code is then
replaced in the very last step with the sign it represents, the
backslash. Upstream has reverted this change recently, because this
design is very slow and consumes a lot of memory.

However, I suggest you to use the following template in your
customization layer aptitude-man.xsl (the btw recommended way, see also
the comments in utility.xsl):

<xsl:template match="literal">
  <xsl:if test="$man.hyphenate.computer.inlines = 0">
    <xsl:call-template name="suppress.hyphenation"/>
  </xsl:if>
  <xsl:apply-templates mode="bold" select="."/>
</xsl:template>

BTW: I first thought, that the reason, that you don't see this issue is
maybe, that you build the package against docbook-xsl < 1.72.0 and the
submitter maybe used an auto-build(ded) package for a different
architecture, that used docbook-xsl 1.72.0. But the upload wsa made for
i386, the arch the submitter uses too.

Regards, Daniel


Reply via email to