This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Font size/rendering of superscripts in PDF output
- From: Joachim Ziegler <ziegler at mpi-sb dot mpg dot de>
- To: "Paul A. Hoadley" <paulh at logicsquad dot net>
- Cc: docbook-apps <docbook-apps at lists dot oasis-open dot org>
- Date: Fri, 13 Feb 2004 11:57:25 +0100
- Subject: Re: [docbook-apps] Font size/rendering of superscripts in PDF output
- Organization: Max-Planck-Institut für Informatik
- References: <402B5D4A.8040702@mpi-sb.mpg.de> <20040213051820.GB9490@grover.logicsquad.net>
Thank you for your advices. Without having a deeper knowledge of FO, I
came up with the fllowing solution, based on your proposals:
<xsl:template name="inline.superscriptseq">
<xsl:param name="content">
<xsl:apply-templates/>
</xsl:param>
<fo:inline>
<xsl:if test="@dir">
<xsl:attribute name="direction">
<xsl:choose>
<xsl:when test="@dir = 'ltr' or @dir = 'lro'">ltr</xsl:when>
<xsl:otherwise>rtl</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="$fop.extensions != 0">
<xsl:attribute name="vertical-align">super</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="baseline-shift">super</xsl:attribute>
<!-- new! -->
<xsl:attribute name="font-size">60%</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:copy-of select="$content"/>
</fo:inline>
</xsl:template>
Greetings,
Joachim
--
Joachim Ziegler Stuhlsatzenhausweg 85
Max-Planck-Institut für Informatik 66123 Saarbrücken, Germany
Email: ziegler@mpi-sb.mpg.de Tel.: (+49) 0681 9325-127
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.