Hi,

This is not really what I am trying to achieve. I know that I can handle special characters using the ZapfDingbats font. However what I don't know to do is parse a text content to encapsulate <fo:inline> element each time such a special character is found.

So tranforming:

"Some text â More text"

To:

<fo:inline font-family="Helvetica"> Some text <fo:inline font-family="ZapfDingbats">â</fo:inline> More text </fo:inline>


Patrick

On 9 mars 05, at 16:41, Jeremias Maerki wrote:

Lots of examples in the distribution, for example:
http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/fo/basic/fonts.fo? rev=1.3&view=markup


...and in the documentation:
http://xml.apache.org/fop/fo.html#xml-special-chars


On 09.03.2005 10:21:11 [EMAIL PROTECTED] wrote:
Hi,

I need to display in a pdf file some text that contains different type
of characters: some are ascii type but other are special ones like the
'star' or 'square' characters. I understand from what I have read that
those special characters are not available in the default Helvetica or
Courier base font and that I need to use the ZapfDingbats font.

So what I need to achieve is transform the following XML content:

"Some text âË More text"

Into:

<fo:inline font-family="Helvetica"> Some text  <fo:inline
font-family="ZapfDingbats">âË</fo:inline> More text </fo:inline>


How can this be done using XSL to create the proper FO document knowing
that I don't know in advance what the text to translate looks like and
how many 'special' characters it contains (ex 'asdfâËasâÂdfâËasâÂdâËâÆfasdâË')


Thanks for any tips!


Patrick



Jeremias Maerki


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to