[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] acronym and small caps
Hi Kevin,
Looks like you did it right, congratulations!
When using FOP and something does not work as
expected, it is good to bookmark the FOP
Compliance Page
which shows the limitations of FOP for each XSL-FO feature. In this case, you will see that font-variant is not supported yet.
XEP may require some addtional configuration in
the XEP configuration file to trigger the selection of a small
caps font. Check the XEP documentation.
Bob Stayton bobs@sagehill.net
Apologies for the newbie question, but I'm reading the 1.79.1 xsl stylesheets using eyes that are accustomed to reading dsl. I found the fo/inline.xsl file where acronym is processed. It looks like it just passes its contents through unchanged (which is how it looks in pdf produced by fop, xep and axf). It seems like at a minimum it should render all caps in the next smaller font. At a premium, it should use small caps if the font has them available.
So...I tackled my first xsl customization, and I'm pretty pleased with myself:
<xsl:template match="acronym"><fo:inline font-variant="small-caps"><xsl:call-template name="inline.charseq"/></fo:inline></xsl:template>
This accomplishes nothing with fop or xep, but axf does the right thing: it uses the small cap glyph in the font I am using. And if I set small-caps-emulation-always="true" in the Antenna House options file, axf scales the normal caps instead of using the small caps from the font. The scaled caps look similar to the small caps, but they are different enough that I can tell that axf is using the small cap when it is allowed to.
I'm pretty happy with this. My only real question is whether I reinvented the wheel.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]