[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Symbols in HTML OK, PDF not OK
You are right that b.alpha and b.beta are not in the Symbol font. You will need to find a font that has glyphs for those codepoints. Ariel Unicode has them, but I don't know if a Mac has that. I didn't quite understand your subject line, though. You say "Symbols in HTML OK", but the body of your message reports that they were incorrect. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Tristan Fiedler" <fiedler@cshl.edu> To: "Docbook-Apps" <docbook-apps@lists.oasis-open.org> Sent: Tuesday, April 05, 2005 9:03 AM Subject: [docbook-apps] Symbols in HTML OK, PDF not OK Hi All, I am using <para>Here is alpha test 1 : <symbol role="symbolfont">&agr;</symbol> </para> <para>Here is alpha test 2 : <symbol role="symbolfont">α</symbol> </para> <para>Here is alpha test 3 : <symbol role="symbolfont">&b.alpha;</symbol> </para> <para>Here is beta test 1 : <symbol role="symbolfont">&bgr;</symbol> </para> <para>Here is beta test 2 : <symbol role="symbolfont">β</symbol> </para> <para>Here is beta test 3 : <symbol role="symbolfont">&b.beta;</symbol> </para> But the resulting PDF is : Here is alpha test 1 : α -- correct Here is alpha test 2 : α -- correct Here is alpha test 3 : ## -- incorrect ** Here is beta test 1 : β -- correct Here is beta test 2 : β -- correct Here is beta test 3 : ## -- incorrect ** And the resulting HTML is : Here is alpha test 1 : α -- correct Here is alpha test 2 : α -- correct Here is alpha test 3 : 𝛂 -- incorrect, this is an uppercase A in a box Here is beta test 1 : β -- correct Here is beta test 2 : β -- correct Here is beta test 3 : 𝛃 -- incorrect, this is an uppercase A in a box The character entities in the DocBook XML 'ent' directory show : isogrk4.ent:<!ENTITY b.alpha "𝛂" ><!--MATHEMATICAL BOLD SMALL ALPHA --> isogrk4.ent:<!ENTITY b.beta "𝛃" ><!--MATHEMATICAL BOLD SMALL BETA --> My XSL customization layer for PDF : <xsl:param name="symbol.font.family" select="'Symbol, ZapfDingbats'"></xsl:param> <xsl:template match="symbol[@role = 'symbolfont']"> <fo:inline font-family="Symbol,ZapfDingbats"> <xsl:apply-templates/> </fo:inline> </xsl:template> From previous postings, a list of fonts (e.g. Symbol,ZapfDingbats) in the font-family property doesn't work in FOP yet, and I must specify a single font-family. Software: Mac OSX, Docbook XSL 1.67.2, Docbook XML 4.4CR2, Saxon 6.5.3, FOP 0.20.5,Firefox 1.0.2, and Adobe Acrobat Reader 7.0. Is the reason that b.alpha and b.beta don't properly convert because neither the Symbol, nor the ZapfDingbats fonts contain the x1D6C2 nor x1D6C3 ? ('agr' and 'alpha', likewise 'bgr' and 'beta' are the same, and both indeed appear in the Symbol font as x03B1 and x03b2) So, how can one display the b.alpha and b.beta ? Thank you, Tristan ---- Tristan J. Fiedler Postdoctoral Fellow - Stein Lab Cold Spring Harbor Laboratory
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]