Entering unicode into textbox or typewriter fields?

The PDF-XChange Viewer for End Users
+++ FREE +++

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

mathog
User
Posts: 35
Joined: Tue Jan 05, 2010 4:48 pm

Entering unicode into textbox or typewriter fields?

Post by mathog »

I need to enter Greek letters into a textbox or typewriter field, in italics, but have not been able to figure out how. This is on Windows XP SP, Viewer 2.5, build 199.0.

1. Opened textbox/typewriter
2a. hold down ALT and type 961 or 03C1 (small rho, in decimal and hex) release alt
2b. hold down ALT, press + on numeric keypad, enter 03c1, release alt.

nothing happens. Tried this with different fonts, including Arial MS Unicode, and it made no difference.
I was able to get a rho in using the symbol font, but that font has greyed out italics, so no way to get
the desired italic rho.

Suggestions???

Thanks.
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm

Re: Entering unicode into textbox or typewriter fields?

Post by Will - Tracker Supp »

Hi mathog,

Thanks for the post - the first thing to try here, is to update to the latest build (209) as you are currently using 199. Let me know once you've tried that :)
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
mathog
User
Posts: 35
Joined: Tue Jan 05, 2010 4:48 pm

Re: Entering unicode into textbox or typewriter fields?

Post by mathog »

Will - Tracker Supp wrote: Thanks for the post - the first thing to try here, is to update to the latest build (209) as you are currently using 199. Let me know once you've tried that :)
Updated to 209 and it seems to be the same. I did finally manage to get some response from the Alt+ method, which was to do:

1. set num lock on keypad
2. start a typewriter box
3. press alt and hold
4. press + on keypad
5. type numbers on keypad (numbers on keyboard do nothing)
6. release alt

This causes characters other than the standard ASCII to appear in the typewriter box. However I
do not understand what the mapping is. By trial and error I found that Alt+998 is a lower case mu.
However decimal 998 is 0x3E6, which is supposed to be Coptic Capital Letter Khei. lower case mu is 0x3BC, decimal 956. This was with Times New Roman. Maybe the number entered is being interpreted as the glyph number, rather than as the unicode, which must then be converted to the glyph number???
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm

Re: Entering unicode into textbox or typewriter fields?

Post by Will - Tracker Supp »

Hi Mathog,

Thanks for getting back to me - could you send a sample document with some greek characters in a text box? I'd like to take a look and test here if I can. Also, please make sure that any files being uploaded are done so in a RAR, 7Zip, etc. archive or .zip folder.

Thanks!
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
mathog
User
Posts: 35
Joined: Tue Jan 05, 2010 4:48 pm

Re: Entering unicode into textbox or typewriter fields?

Post by mathog »

Will - Tracker Supp wrote: Thanks for getting back to me - could you send a sample document with some greek characters in a text box? I'd like to take a look and test here if I can. Also, please make sure that any files being uploaded are done so in a RAR, 7Zip, etc. archive or .zip folder.
This example has codes 995 to 1004, left to right, entered by the mechanism of my last post. As you can see, there are Greek letters, but they are not in the right order.
You do not have the required permissions to view the files attached to this post.
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm

Re: Entering unicode into textbox or typewriter fields?

Post by Will - Tracker Supp »

Hi Mathog,

Thanks for getting that to me - I've forward this to the Dev. Team for analysis; one of them will get back to you as soon as they know more :)
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3603
Joined: Thu Jul 08, 2004 10:36 pm

Re: Entering unicode into textbox or typewriter fields?

Post by Ivan - Tracker Software »

When you try to enter the same characters in the same order say in Notepad, are you getting the same result as in the Viewer, or different?

On my system, I got the same result in both Notepad and the viewer, but with Cyrilic character instead of Greek ones. I suspect translation from the code you entered with ALT+code sequence depends from your system localization settings.

As you can see on screenshot, Cyrilic Small Letter Yeru has code 044B, but with Alt+code sequence you have use 0251 (note leading zero).

Image
PDF-XChange Co Ltd. (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
mathog
User
Posts: 35
Joined: Tue Jan 05, 2010 4:48 pm

Re: Entering unicode into textbox or typewriter fields?

Post by mathog »

Ivan - Tracker Software wrote:When you try to enter the same characters in the same order say in Notepad, are you getting the same result as in the Viewer, or different?

On my system, I got the same result in both Notepad and the viewer, but with Cyrilic character instead of Greek ones. I suspect translation from the code you entered with ALT+code sequence depends from your system localization settings.

As you can see on screenshot, Cyrilic Small Letter Yeru has code 044B, but with Alt+code sequence you have use 0251 (note leading zero).
Same characters are emitted in Notepad as in the Viewer. The characters are different if a leading 0 is added, as 0995 is
a with a tilde over it, 995 is lower case pi. Hmm, googling. Ah:

http://www.alt-codes.net/

these come out exactly as described on that page. The alt codes wrap. They are numbered 1->256, and 257 is the same as 1 and so forth. This explains everything I am seeing (other than the action of a leading zero). So not unicode at all. Back to the drawing board, how does one input Unicode???
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3603
Joined: Thu Jul 08, 2004 10:36 pm

Re: Entering unicode into textbox or typewriter fields?

Post by Ivan - Tracker Software »

I guess you have two ways: 1) use greek keyboard layout; 2) use char map (charmap.exe), add text there, copy and paste it in the viewer.

Please note this is not an issue with our Viewer.
PDF-XChange Co Ltd. (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.