docbook-apps

  • 1.  trademark customisation

    Posted 05-10-2009 17:31
    Hi

    I have customised the registration mark handling like this:

    <xsl:template name="dingbat">
    <xsl:param name="dingbat">bullet</xsl:param>
    <xsl:variable name="symbol">
    <xsl:choose>
    [ snip ]
    <xsl:when test="$dingbat='registered'">
    <fo:inline baseline-shift="super" font-size="75%"
    inline-progression-dimension="100%">®</fo:inline>
    </xsl:when>
    [ snip ]
    </xsl:template>

    All works well, but I want to extend this so that when the font
    size for registration make is (say) less than 8pt then just
    output the registration character without the superscript and
    font size reduction, as at some point it becomes difficult to
    read. [ I have the (r) on both the cover page and in the footer
    ].

    The question is: how to test the active font size, so I can
    switch behaviour accordingly?

    Thanks.

    Damon