OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: RE: [docbook-apps] one more question about italics and <lineannotation>s

On Thu, 15 May 2003, Jeff Beal wrote:

> I would probably do:
>  <xsl:template match="lineannotation">
>    <fo:inline font-style="italic" font-family="{$body.font.family}">
>      <xsl:call-template name="inline.charseq"/>
>    </fo:inline>
>  </xsl:template>

BTW, there is one more trick i'm going to try to do sometime down the
road, but if one if line-annotating a chunk of code or, even worse, a
sample <screen>, each line can have different amounts of markup, where a
*lot* of markup boils down to a fairly short line.

this makes it fairly difficult to add <lineannotation>s to the end of each
line so that they all line up left-justified, which is what you want

so far, i've just eye-balled it and had to explicitly insert spaces
to line them up.  i can see coding some fairly horrendous stylesheet
stuff that would calculate the length of the line and add the 
appropriate intermediate spacing, but i'm nowhere ready for that yet,
unless someone has a simple solution.

anyway, back to work.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]