[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Using ISONUM.ENT correctly
I am using a Mac OSX 10.3.8 with Adobe Reader 6.0, Saxon 6.5.3 and FOP 0.20.5. My system's Font Book shows the "Symbol" font enabled under both AllFonts>Computer, and PDF, but not AllFonts>User. Is this the problem? I would like to show several symbols in my PDF - but having no luck. For example, how would I show (in PDF) the horizontal bar referenced in the isonum.ent file: <!ENTITY horbar "―" ><!--HORIZONTAL BAR --> I have tried putting the following at the top of my DocBook article: <!ENTITY % isonum PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML" "http://www.w3.org/2003/entities/iso8879/isonum.ent" > %isonum; But this is not correct my parser tells me (something with the last line I believe). I have also tried various combinations of hex /dec, unicode, etc., as well as various stylesheet things like : <xsl:param name="symbol.font.family" select="'Symbol,ZapfDingbats'"></xsl:param> <!-- Force Special Characters to change to Symbol font (http://www.sagehill.net/docbookxsl/SpecialChars.html) - BEGIN --> <xsl:template match="symbol[@role = 'symbolfont']"> <fo:inline font-family="Symbol"> <xsl:call-template name="inline.charseq"/> </fo:inline> </xsl:template> <!-- Force Special Characters to change to Symbol font (http://www.sagehill.net/docbookxsl/SpecialChars.html) - END --> ----- I would like to show several symbols in my PDF - but having no luck. For example, how would I show (in PDF) the horizontal bar referenced in the isonum.ent file: <!ENTITY horbar "―" ><!--HORIZONTAL BAR --> Could someone give a clear description of how to use these character entities? Thank you, Tristan ------------------------------ Tristan J. Fiedler Postdoctoral Fellow - Stein Lab Cold Spring Harbor Laboratory On Feb 17, 2005, at 3:10 AM, Jirka Kosek wrote: > Tristan Fiedler wrote: > >> HTML output works, but FO/PDF displays only pound (#) signs for the >> Unicode character ref's below: >> beginning of text... ― ‐ ‑ ‒ >> ... rest of text. > > This means that you FO processor is not configured to use font with > that characters. Many fonts contain only subset of Unicode repertoire. > If you are on Windows you can configure your FO processor to use > Lucida Unicode (l_10646.ttf) -- this font contains many characters. > > After you register font in FO processor modify following XSL > stylesheet parameter to include the font into list of fallback fonts > used for missing characters in primary font: > > <xsl:param name="symbol.font.family" > select="'Symbol,ZapfDingbats,LucidaUnicode'"/> > > HTH, > > Jirka > > -- > ------------------------------------------------------------------ > Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz > ------------------------------------------------------------------ > Profesionální školení a poradenství v oblasti technologií XML. > Podívejte se na náš nově spuštěný web http://DocBook.cz > Podrobný přehled školení http://xmlguru.cz/skoleni/ > ------------------------------------------------------------------ >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]