High-Order ASCII Alphabet & Other Keyboard Edits

Mark Brownell gizmotron at earthlink.net
Sat Dec 20 20:16:56 EST 2003


On Saturday, December 20, 2003, at 03:03  PM, J. Landman Gay wrote:

> On 12/20/03 3:55 PM, Rob Cozens wrote:
>
>>> What happens if one scripts, for example:
>>>
>>>     put empty into keysAllowed
>>>     repeat with x = 128 to 255
>>>         get numToChar(x)
>>>         if it >= "Ù" and  it <= "ü" then put it into keysAllowed
>>>     end repeat
>>> ?
>>>
>>> Does this or does this not return the same values on all Rev
>>> platforms & all fonts?
>> At the risk of exposing more of my ignorance, let me rephrase that:
>> Rev will see the characters as numeric values and return the same 
>> list of numeric values; but will the first character always display 
>> as "Ù" and the last character as "ü" on all Rev platforms & all >> fonts?
>> I checked the Rev Dictionary for "diacritical" but the three 
>> references (find, toLower, toUpper) weren't much help.
>
> If you mean, do you get the same glyph for each ascii number, then no, 
> not even between fonts on the same platform. If you look in any font 
> display program, you'll see the variations that occur in the 
> high-ascii ranges in different fonts (the old Mac KeyCaps app was good 
> for this.) And in dingbat and symbol fonts, even the low-ascii glyphs 
> are different.
>
> But you probably knew that, so maybe I don't understand what you're 
> asking.
>
> -- 
> Jacqueline Landman Gay

Jacqueline,

That's what I was thinking, the charNums are different by font and 
platform. I was eluding to creating font-maps on the fly to fit the 
current condition. Sounds good anyway, glad I don't need this, 
knock-on-wood.

Rob,

This is why I use htmlText in an off screen field. It returns an ascii 
escape-sequence that I can compare to ( = whatever). The part I don't 
like for your usage, maybe, is it would have to execute on key messages 
or at least just before usage and that could start to look ugly for the 
user if each key stroke where compared to a font-map.

I'm not sure what you are trying to restrict with key strokes. All I 
know is that the more you go exploring the more I seem to learn.

Mark



More information about the use-livecode mailing list