Thread View: adobe.postscript.programming
5 messages
5 total messages
Started by arcus
Tue, 27 Apr 2004 10:08
question about unicode mapping
Author: arcus
Date: Tue, 27 Apr 2004 10:08
Date: Tue, 27 Apr 2004 10:08
32 lines
1672 bytes
1672 bytes
hi, all I'm a new for PostScript. I create a ps file by directly print this file to virtual PS printer. In this file, there is some Chinese characters. And when I open this ps file, I can find this: /TT1899o00 /Font G2UBegin /g1025 <4E2D> def /g2338 <534E> def /g1166 <4EBA> def /g8677 <6C11> def /g1861 <5171> def /g2656 <548C> def /g3281 <56FD> def /g1249 <4F0D> def /g4584 <5C14> def /g10317 <7279> def /g14790 <83F2> def /g4624 <5C3C> def /g12197 <79D1> def /g7043 <65AF> def /g1461 <4FE1> def /g5699 <606F> def /g6228 <6280> def /g7427 <672F> def /g7389 <6709> def /g19492 <9650> def /g1856 <516C> def /g2508 <53F8> def G2UEnd in the second column of the <>, it is the unicode of the Chinese character, but I don't what the mean in the first column, is it the glyph index of the ttf file? It is generated by the virtual printer directly. If I define this ps file manually, how can I find the related first column data by the unicode? Any help and suggestion will be welcome! Thanks Frank
Re: question about unicode mapping
Author: Aandi_Inston
Date: Tue, 27 Apr 2004 12:52
Date: Tue, 27 Apr 2004 12:52
12 lines
1414 bytes
1414 bytes
PostScript is a programming language, and looking at only a little of the program can be deceiving. In particular, one would have to examine the G2UBegin procedure to know what it did. However, at a guess, the first column are the glyph names for the characters. Glyph names are sometimes recognisable character names, and in other cases, arbitrary, made up names. Perhaps the names were made up using the glyph index, but that would be something the driver chose to do, not any PostScript requirement. The names, whatever they are, have to appear inside the font to have any meaning. Aandi Inston
Re: question about unicode mapping
Author: arcus
Date: Wed, 28 Apr 2004 01:19
Date: Wed, 28 Apr 2004 01:19
4 lines
866 bytes
866 bytes
Thank you for your reply. If the first column related to the glyph index, I wonder is there any way to get this information from the ttf file? Frank
Re: question about unicode mapping
Author: Aandi_Inston
Date: Wed, 28 Apr 2004 07:27
Date: Wed, 28 Apr 2004 07:27
4 lines
956 bytes
956 bytes
It doesn't sound easy, but I guess it must be possible. Bear in mind that some drivers make up glyph names that are different on every run. Aandi Inston
Re: question about unicode mapping
Author: Gunnar_L_Blodgett
Date: Thu, 01 Jul 2004 22:53
Date: Thu, 01 Jul 2004 22:53
6 lines
1257 bytes
1257 bytes
Frank Aandi has, as always, summed up the magnitude of your task very succinctly. Generally, the second column represents Unicode hex characters, as you've indicated, and the first one refers to your internal index. Unicode would suggest that we have a single standard for character representation in output, but the fact is you'll find different conventions for a lot of vendors. Adobe's CID-Keyed standard is relatively transparent, but few vendors apper to follow this stadard. Finally, PostScript-generating applications, as Aandi indicated, can re-encode on the fly ... Good luck with it, Gunnar
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads