Re: Unicode and languages
Re: Unicode and languages
- Subject: Re: Unicode and languages
- From: Hanaan Rosenthal <email@hidden>
- Date: Wed, 7 Apr 2004 20:39:41 -0400
Thanks Chris for your reply,
>
Why exactly do you want to do this?
I'm building InDesign pages by creating tagged text in AppleScript and
then importing it into a text box in InDesign.
The text originates in Excel and I get it as Unicode text so that the
Japanese characters are preserved.
While concatenating the string that will become the tagged text, I have
to insert the correct font tag for the Japanese fonts and English
fonts. In the tables I'm creating, there's no way to know in advance
whether a given cell will contain text in English or Japanese.
The only way (I figure) is to look at the Unicode string and get it
from there.
>
If you want to know if the text can be losslessly encoded in MacRoman
>
vs. MacJapanese, then that's a different question; in that case I'd
>
suggest attempting to pipe the text through iconv(1) -c and seeing if
>
it errors.
I'll try that.
Another possible solution will be using a custom Scripting Addition.
I have a resource that can create an addition for me pretty quickly but
he isn't sure where to start with Unicode.
Any suggestion there?
Thanks,
Hanaan
--
Hanaan Rosenthal * Custom Flow Solutions
MEDIA AUTOMATION CONSULTING
401-487-2957 * email@hidden
* www.customflowsolutions.com *
be successful... ...work less.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.