We need to select symbol font explicitly, or it comes out misaligned.
Alexander Lakhin, Tom Lane
Discussion: https://postgr.es/m/10598.
1587928415@sss.pgh.pa.us
<function>pi</function> ( )
<returnvalue>double precision</returnvalue>
<?br?>
- Approximate value of π
+ Approximate value of <phrase role="symbol_font">π</phrase>
<?br?>
<literal>pi()</literal>
<returnvalue>3.141592653589793</returnvalue>
<row>
<entry><literal><function>pi()</function></literal></entry>
<entry>double</entry>
- <entry>value of the constant PI</entry>
+ <entry>value of the constant <phrase role="symbol_font">π</phrase></entry>
<entry><literal>pi()</literal></entry>
<entry><literal>3.14159265358979323846</literal></entry>
</row>
<fo:block/>
</xsl:template>
+<!-- FOP needs us to be explicit about use of symbol font in some cases -->
+<xsl:template match="phrase[@role='symbol_font']">
+ <fo:inline font-family="{$symbol.font.family}"><xsl:value-of select="."/></fo:inline>
+</xsl:template>
+
<!-- bug fix from <https://sourceforge.net/p/docbook/bugs/1360/#831b> -->
<xsl:template match="varlistentry/term" mode="xref-to">