Am Montag, den 25.09.2006, 20:27 -0700 schrieb Daniel Burrows:
> On Tue, Sep 26, 2006 at 04:32:48AM +0200, Daniel Leidert <[EMAIL PROTECTED]> 
> was heard to say:
> > Am Montag, den 25.09.2006, 07:08 -0700 schrieb Daniel Burrows:
> > > On Mon, Sep 04, 2006 at 02:04:22AM +0200, Daniel Leidert <[EMAIL 
> > > PROTECTED]> was heard to say:
> > > > Package: aptitude
> > > > Version: 0.4.3-1
> > > > Followup-For: Bug #383463
> > > > 
> > > > -----BEGIN PGP SIGNED MESSAGE-----
> > > > Hash: SHA1
> > > > 
> > > > There is one more issue. The template to match literal can also lead
> > > > (and leads) to issues when nesting bold and italic elements (see e.g. in
> > > > the section "COMMAND-LINE ACTIONS" the action "download": There you can
> > > > see, that in "=<version>" and "/<archive>" the '>' sign ist not bold.
> > > > The attached patch will fix this.
> > > 
> > >   Does it?  I got the attached manpage when I applied it.
> > 
> > You are right and I see the issue. What do you want: Shall '<', '>' be
> > bold, underlined or nothing of both?
> 
>   I'd like them to have the same attributes as the text between
> them (which I guess would be underlined in this case).

Ok. Try the following templates for replaceable and literal in
doc/aptitude-man.xsl:

> <xsl:template match="replaceable">
>   <xsl:variable name="content.before">
>     <i><xsl:text>&lt;</xsl:text></i>
>   </xsl:variable>
>   <xsl:variable name="content.after">
>     <i><xsl:text>&gt;</xsl:text></i>
>   </xsl:variable>
>   <xsl:apply-templates mode="italic" select="exsl:node-set($content.before)"/>
>   <xsl:apply-imports/>
>   <xsl:apply-templates mode="italic" select="exsl:node-set($content.after)"/>
> </xsl:template>
> 
> 
> <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>

The tests were successful. I will try to find an easier way, but the
above should do for the moment. Please check and tell me, if you find
any issue.

Regards, Daniel



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to