From: <no...@so...> - 2002-01-04 03:51:46
|
Bugs item #499236, was opened at 2002-01-03 19:51 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=373747&aid=499236&group_id=21935 Category: DocBook XSL FO Group: DocBook V4 Status: Open Resolution: None Priority: 5 Submitted By: John Cigas (cigas) Assigned to: Nobody/Anonymous (nobody) Summary: inlined monospaced text isn't scaled Initial Comment: In xsl 1.47 stylesheets: Inlined text (eg <filename>) is the same size as the regular body text, though I think it should be smaller (scaled). foo.xml: <?xml version="1.0"?> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> <article lang="en"> <simplesect> <para> There is a file <filename>weights.txt</filename> in <filename id="directory">~cigas/tocopy/CS3110-HW08</filename> which contains a list of element abbreviations and atomic weights. </para> </simplesect> </article> generates this foo.fo: ... There is a file <fo:inlinefont-family="Courier">weights.txt</fo:inline> in <fo:inline font-family="Courier">~cigas/tocopy/CS3110-HW08</fo:inline> which contains a list of element abbreviations and atomic weights. </fo:block></fo:block></fo:flow></fo:page-sequence></fo:root> Possible fix in fo/inline.xsl, add xsl:use-attribute-sets="monospace.verbatim.properties" to the templates inline.monoseq, inline.boldmonoseq, and inline.italicmonoseq Ex. <xsl:template name="inline.monoseq"> <xsl:param name="content"> <xsl:apply-templates/> </xsl:param> <fo:inline font-family="{$monospace.font.family}" xsl:use-attribute-sets="monospace.verbatim.properties" > <xsl:copy-of select="$content"/> </fo:inline> </xsl:template> ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=373747&aid=499236&group_id=21935 |