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] RE: XSL-FO and unicode


Fabien Tillier [mailto:f.tillier@cerep.fr] wrote:


> Do you think it is possible to do the customization on the stylesheet, so
> that it will detect special characters and replace, say α-
> bungarotoxin by the <symbol role="symbolfont">&#945;</symbol>-bungarotoxin
> ?

This is certainly possible to do in XSLT. I have done something similar to create HTML entities for special characters. You need to customize the template that matches your text node, cycle through each character using text functions such as "substring", and then just compare the character to the numerical entity; something like this:

<xsl:when test="$character = '&#945;'">
	<fo:inline font-family="'Symbol'"><xsl:value-of=select="$character" /></fo:inline>
</xsl:when>


> I read somewhere that the TRUNK version of FOP has some changes in that
> matter, I may give it a try...

Ooh, that would be good to know. Please let us know what you find.


*************************
Rob Cavicchio
Principal Technical Writer & Information Architect
EMC Captiva
Information Intelligence Group
EMC Corporation
3721 Valley Centre Drive, Ste 200
San Diego, CA 92130

P: (858) 320-1208
F: (858) 320-1010
E: rob.cavicchio@emc.com

The opinions expressed here are my personal opinions. Content published here is not read or approved in advance by EMC and does not necessarily reflect the views and opinions of EMC.



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