xsl-list
[Top] [All Lists]

Re: [xsl] Unable to print the character

2009-02-07 09:24:35
At 2009-02-07 09:55 +0530, Ganesh Babu N wrote:
I am unable to print ć in the PDF output. I am getting an "#"
symbol instead. The following is the fo:block which is generating the
PDF output.

<fo:block font-size="8pt" font-family="Helvetica, Times"
text-align="center">10.1057/9780230227798 &#8211; Serbia's
Antibureaucratic Revolution: Milo&#353;evic, the Fall of Communism and
Nationalist Mobilization, N. Vladisavljevi&#x107;</fo:block>

I am using FOP 0.95.

You have a character set problem. I've run your block through three formatters and I didn't get consistent results until I changed the font family to "Times New Roman", which is a font on Windows that supports U+0107.

It appears the built-in Times and Helvetica font for PDF does not include U+0107; and you'll have to deal with embedding a font of your choice that does have the required characters.

Looking at:

  http://partners.adobe.com/public/developer/en/pdf/PDFReference.pdf

... I note that Latin 1 characters are supported by default, but not Latin 2. The character you want, U+0107, is in Latin 2 but not Latin 1:

  http://en.wikipedia.org/wiki/ISO_8859-1
  http://en.wikipedia.org/wiki/ISO_8859-2

I hope this helps.

. . . . . . . . . . . . . . Ken

--
Upcoming hands-on XSLT, UBL & code list hands-on training classes:
Brussels, BE 2009-03;  Prague, CZ 2009-03, http://www.xmlprague.cz
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman                 mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>