chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] utf8 and pdf eggs


From: Kon Lovett
Subject: Re: [Chicken-users] utf8 and pdf eggs
Date: Tue, 9 Feb 2010 08:12:34 -0800


On Feb 9, 2010, at 7:55 AM, Arthur Maciel wrote:

Kon, could not understand what should I do. Could you explain me more, please?

Wish I could. PDF text references a glyph from a particular font using a particular encoding. Ex: the 'A' glyph from a Type-1 Helvetica using MacRoman. So you would need to know what glyph index 'á' is in a particular font using a particular encoding.

PDF has a different orientation than Unicode (which is font agnostic and is an encoding). Maybe it is possible to use a Unicode encoding w/ a Unicode font. You would need to dive into a PDF reference.

Sorry, I have no relevant experience here.


Thanks,
Arthur

2010/2/9 Kon Lovett <address@hidden>

On Feb 8, 2010, at 4:01 PM, Arthur Maciel wrote:

Hello!

I want to create pdf files that accept characters like "áéíóúç", and I'm using utf8 and pdf eggs. When I create the pdf files following the given examples/test files of pdf egg, requiring and importing utf8 egg, just changing any text to the characters above preceeded by a (->string ...) call, the chars appear as strange pair of characters ("áéÃ-Ã3Ãoç", respectively).'

The UTF-8 Hex of ç (U+00A7) is 0xC3A7 and
à is 0xC3
§ is 0xA7

so the string is just the UTF-8 encoding of your list of Unicode characters.

AFAIK PDF only accepts Unicode strings in restricted circumstance & then only using UTF16-BE encoding.


How can I make it work, please?
Thanks in advance.
Arthur
_______________________________________________
Chicken-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/chicken-users

Best Wishes,
Kon




Best Wishes,
Kon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]