This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Font size/rendering of superscripts in PDF output


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/.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]