On Saturday, December 20, 2003, at 10:11 AM, Rob Cozens wrote:


There is an alphabet for every language. There must be a way to filter keyboard input to reject keys that are not part of the alphabet, or a subset thereof.

This is not an issue of key translation between two computers; rather the focus is on filtering keyboard input on the user's computer to reject keystrokes that are defined as illegal for the current input field.
--


Rob Cozens

Rob,


I use a trick to find characters that are higher than ascii 127. I use a repeat loop to place all 255 numToChars(i) separated by a space into an off screen field. I then put the HTMLText of that field into a variable. I now have escape-sequences for these chars that I can use in an array created with the split function.

From this :
� � � � � � � 
� �
� � � � � � � �           ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~  � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �  � �  �   � �      � �  � � � � �  �   � � � � � � � � � � � � � � � �  � �  � � �   � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �



I get this :
<p>&#138; &#154; &brvbar; &shy; &sup2; &sup3; &sup1; &#8; &#9; </p>
<p> &frac14; &frac12; &#13; &frac34; &ETH; &times; &Yacute; &THORN; &eth; &yacute; &thorn; &#22; &#23; &#24; &#25; &#26; &#27; &#28; &#29; &#30; &#31; ! &quot; # $ % &amp; ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; &lt; = &gt; ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ &#127; &Auml; &Aring; &Ccedil; &Eacute; &Ntilde; &Ouml; &Uuml; &aacute; &agrave; &acirc; &auml; &atilde; &aring; &ccedil; &eacute; &egrave; &ecirc; &euml; &iacute; &igrave; &icirc; &iuml; &ntilde; &oacute; &ograve; &ocirc; &ouml; &otilde; &uacute; &ugrave; &ucirc; &uuml; &#134; &deg; &cent; &pound; &sect; &#149; &para; &szlig; &reg; &copy; &#153; &acute; &uml; &#14; &AElig; &Oslash; &#15; &plusmn; &#16; &#17; &yen; &micro; &#18; &#19; &#20; &#21; &#22; &ordf; &ordm; &#23; &aelig; &oslash; &iquest; &iexcl; &not; &#24; &#131; &#25; &#27; &laquo; &raquo; &#133; &nbsp; &Agrave; &Atilde; &Otilde; &#140; &#156; &#150; &#151; &#147; &#148; &#145; &#146; &divide; &#28; &yuml; &#159; &#29; &curren; &#139; &#155; &#30; &#31; &#135; &middot; &#130; &#132; &#137; &Acirc; &Ecirc; &Aacute; &Euml; &Egrave; &Iacute; &Icirc; &Iuml; &Igrave; &Oacute; &Ocirc; &#128; &Ograve; &Uacute; &Ucirc; &Ugrave; &#129; &#136; &#152; &macr; &#141; &#142; &#143; &cedil; &#144; &#157; &#158; </p>


With that I can create a char map for conversion between OS differences. Perhaps a char mapping process can help you set up a key control handler. This works for me because I'm using HTMLText to store data.

Mark

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to