Unicode frustration

Brad Borch brad at activadesign.com
Wed Jul 20 15:15:21 EDT 2005


Let me explain what I'm trying to do.

I need to build a tool that allows users to quickly enter Greek words. 
These people aren't terribly computer literate, so I've built a script 
that captures what the user types and replaces it with a Greek 
character. In other words, they don't have to switch keyboard encodings. 
In order to add accents, I have a menu that pops up when the user mouses 
over a letter that can be marked (accents, etc.). The user can select an 
accented version of that letter, and it gets pasted in.

This works perfectly on the Mac, but as soon as I run on a PC, the PC 
wants to render the text as Arial, which has a much smaller set of 
accented characters.

I'm assuming this has something to do with the fact that Rev 
automatically sets the textfont of Unicode characters. I think all I 
REALLY need to do is figure out how to force the text to be in Bitstream 
Vera Sans on the PC.

  > Ah...
> 
> I have experimented with having unicode and non-unicode in the same field, but never made it work before! It always seems to do some weird stuff.
> 
> It would be a huge enormous pain in the posterior, but you could set it up so that the unicode equivalent of a given character is entered instead of the non-unicode character. I believe most characters have a unicode number.
> 
> 
>>> Can you set the textfont of the field itself, rather than in the htmltext?
> 
> If I set the textfont, the non-unicode text changes.
> If I actually select the text in the field and change the font via the 
> menu, the text is converted to the single-byte characters (in other 
> words, an α is converted to ±, even though the font I've selected is a 
> Unicode font (in this case, Bitstream Vera Sans).
> 
> 




More information about the use-livecode mailing list