If I Open InDesign and copy a piece of text "It's (That's: curly quote, capital Eye, lower case t, curly apostrophe, s)
Now, if I paste this into a field into Rev 2.2 on OSX, select it and run this script against it:
on mouseup
put the selection into jai
repeat for each char x in jai
put charTonum(x) & cr after hum
end repeat
put cr & hum after the selection
end mouseupI get a really strange result: âItâs 32 28 73 116 32 25 115
If I simply type
âIt's
into Rev and translate this to ascii
I get this:
ÂÂâIt'Âs 210 73 116 213 115
and even more strange: when I just tried to paste âIt'Âs copied from rev into this email on OSX mail.app... actually, both the opening quote AND the curly apostrophe disappeared on paste... all I get is: Its here in this email... But if I copy that same string from InDesign and paste into this email, thusly âItâs all the characters are passed through the clipboard from InDesign, but were not passed through for the same string from Rev!
I suspect this is much more than a WinXP issue.
Anyway my big problem now is that that my "cleaner" scripts are failing on InDesign text.. stuff like:
# where the attempt is to replace curly quotes with straight quotes
put some fld ( or selection) into tTextChunk replace "â" with """ in tTextchunk
which I've been using for literally years and years, are now failing:
More wierdness: and when I pass the text back from the variable to the field, the curly quotes are gone and I get char(28) looking like a square box in the place where a straight quote should be... which at least jives with the translation effort above.
but wait ;-) there is more: I have another string that appears at the end of every editorial piece where our layout editor cooked up some image to put into a high ascii character of the font (a version of Caledonia we fixed and call "Quantum Leap") we use for Hinduism Today magazine... if I select the period at the end of the sentence, the tab that follows it and paste these into Rev and try to translate those to ASCII, well, this is off the charts, I get a return string in OSAKA with Japanese gliphs
â îâÏ ãàããããããàãããã
So ditto that: help with paste wanted!
If anyone can help me figure out how to "dumb down" text from InDesign back to the 0-127 ASCII set, using Revolution script control on OSX, i will be eternally grateful... meanwhile I messing around now with crazy work arounds like
replace numToChar(28) with Quote in tTextChunk...
Sannyasin Sivakatirswami Himalayan Academy Publications at Kauai's Hindu Monastery [EMAIL PROTECTED]
www.HimalayanAcademy.com, www.HinduismToday.com www.Gurudeva.org www.Hindu.org
On Apr 9, 2004, at 6:13 AM, Pierre Sahores wrote:
Hello Chipp,
This don't happen under the MacOS X 10.3.3/PWB G4 12" 1Ghz nor the Suse-Linux 8.2/KDE 3.1.1/ Sony Laptop platforms. I did the test in cutting/pasteling the "this;that" chunk between Rev's 2.1.2 and 2.2 issues (2.1.2 to 2.1.2, 2.1.2 to 2.2, 2.2 to 2.2) without any troubble.
Could we not firstly suspect the WinXP clipboard to take part in the problem, because something with the charsets or so on ?
Please, let us know about the end of the story...
Bests,
Pierre
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
