Manuel Mall skrev:
On Thursday 21 December 2006 23:34, Asbjørn Thorsen wrote:
We have a XML document in UTF-8 encoding. It contains characters for
the sami (lappish) language. When we generate postscript documents
with FOP/XEP the resulting document is missing 3 characters. These
are all replaced by the character \240 in XEP and '#' in FOP. The
characters in question are 0xc4 0x91, 0xc5 0x8b, 0xc4 0x8d in UTF-8.
Why does this happen ? And how can we solve this problem ?
I have attatched a sample document which shows the problem.
Which font are you using for rendering. I assume the Adobe default fonts
don't contain the glyphs for those code points. You need to use a font
which contains those glyphs.
Merry christmas !
Asbjørn Thorsen
Manuel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
So what you're saying that if we choose a font that has the glyphs we need,
then FOP/XEP will use different codes for the characters instead of just using
/240 or '#' for all of them ?
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
<xsl:template match="/">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
font-family="Courier">
<fo:layout-master-set>
<fo:simple-page-master master-name="frame"
margin-top="10mm"
page-height="297mm" page-width="209mm"
margin-left="10mm" margin-right="10mm">
<fo:region-body region-name="frame-body"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="frame">
<fo:flow flow-name="frame-body">
<fo:block>
<xsl:value-of select="brev/tekst"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet><?xml version="1.0" encoding="UTF-8"?>
<brev>
<tekst>
Ohcan sisaváldot sierra dahje oktagaslaÅ¡ árvvoÅ¡tallama vuoÄul
lea hilgojuvvon, go oahppobáikki árvvoštallama mielde, du
báhpirat eai atte vuoÄu vuoruhit dábálaÅ¡ Äuokkisnjuolggadusaid
olggobeale. Don it leat ožžon fálaldaga maÅÅil sierra dahje
oktagaslaš árvvoštallama, dan dihte go oahppobáiki oaivvilda
ahte dus eai leat seamma máhtolaÅ¡vuoÄat go ohcciin geat leat
ožžon fálaldaga
</tekst>
</brev>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]