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] 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



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