Can you set the textfont of the field itself, rather than in the htmltext?

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brad Borch
Sent: Wednesday, July 20, 2005 1:28 PM
To: use-revolution@lists.runrev.com
Subject: Unicode frustration

Ok, I'm befuddled. I'm not quite sure how Revolution handles unicode. I 
have a field that lists all the fonts in my system. The Rev 
documentation says:

"Revolution automatically sets the textFont of double-byte characters to 
the appropriate Unicode font."

So if I set the htmltext of a field like so:

<font face="Bitstream Vera" lang="en-UC">αβγδε ελλενικα</font>

The first string of Greek characters is rendered as Greek, but the 
second is rendered as Asian characters (I don't know which). Getting the 
html text of the field after setting it to the above string yields this:

<p><font face="Bitstream Vera" 
lang="en-UC">&#945;&#946;&#947;&#948;&#949;&#8195;&#46339;&#47875;&#47875;&#46339;&#48387;&#47363;&#47619;</font></p>

If I take out the space in the text I originally pasted, it renders the 
entities correctly:

<p><font face="Bitstream Vera" 
lang="en-UC">&#945;&#946;&#947;&#948;&#949;&#949;&#955;&#955;&#949;&#957;&#953;&#954;&#945;</font></p>

So there's some conversion going on inside Revolution to standardize the 
html, but it looks like there's a bug in the process somewhere.

If I type or paste in Greek unicode characters, the htmltext gets 
updated to reflect the text: paste in "αβγδε ελλενικα" and get the 
htmltext, the font tag gets updated to include "lang="el"" (doesn't 
matter what face it is, I guess it just uses whatever is the default 
Unicode font.

What's happening here? How can I force Rev to use the Unicode text I 
want it to use?

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to