SpeechMarks in Text Fields cross-platform

Jim Ault JimAultWins at yahoo.com
Sun Dec 4 00:02:12 EST 2005


On 12/3/05 4:47 PM, "Mathewson" <richmond at mail.maclaunch.com> wrote:

> I popped some string which contained quotes:
> e.g. "Hello" said the frog.
> then ported them over to Windows and found the quotes were
> replaced by cute little boxes; everything else text-wise
> came through intact.
> And; NO I DID NOT USE SMART QUOTES.
> Any bright ideas why this happens?

Quick answer = high ASCII character that looks like a quote mark for a
particular font, like Arial, Verdana, Desdemona, Comic Sans, etc,etc,etc.
 
When this happens for me in a variety of programs cross-platform, I use
BBEdit to paste in the text and then get the ASCII value of it.  So far I
have always found that it was some high ASCII that a particular font would
use to represent something that looked like a quote mark, either single or
double. [also beware that clipboard operations between programs and systems
strive to make adjustments they deem correct by using coersion and stripping
of formatting/styles]  Additionally, the destination system may not have the
original font available and do a font substitution, eg.  Geneva-> Arial.

In the message box in Rev you could do the following:
switch to multiline message box then paste the following lines
(note: comments will not work in the message box)

repeat with x = 1 to the number of chars in fld textHolder
put chartonum(char x of fld textHolder) into line x of theeAnswer
end repeat
sort theeAnswer descending numeric
put theeAnswer into msg

The result is the ASCII number for each, on separate line
Above 127 is considered high ASCII and each font designer can use it as they
wish.

Hope this helps.

Jim Ault
Las Vegas

On 12/3/05 4:47 PM, "Mathewson" <richmond at mail.maclaunch.com> wrote:

> I popped some string which contained quotes:
> 
> e.g. "Hello" said the frog.
> 
> into some fields in a stack made in Mac OS X
> 
> then ported them over to Windows and found the quotes were
> replaced by cute little boxes; everything else text-wise
> came through intact.
> 
> Admittedly my "Hello" phrases were in Bulgarian - but " is
> neither language or encoding specific as far as I am aware
> 
> (I write .DOCs using OpenOffice on my Mac and send them to
> all sorts of users on all sorts of platforms and everything
> gets through.)
> 
> had to change all the cute boxes back into speech marks
> when in Windows - even oddlier - they remained speech marks
> back in Mac.
> 
> 
> And; NO I DID NOT USE SMART QUOTES.
> 
> Any bright ideas why this happens?
> 
> sincerely, Richmond
> __________________________________________________
> See Mathewson's software at:
> 
> http://members.maclaunch.com/richmond/default.html
> _______________________________________
> ---------------------------------------------------------------
> The Think Different Store
> http://www.thinkdifferentstore.com/
> For All Your Mac Gear
> ---------------------------------------------------------------
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution





More information about the use-livecode mailing list