home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d7xx
/
d768
/
uedit.lha
/
Uedit
/
Europe-ReadMe
< prev
next >
Wrap
Text File
|
1992-11-22
|
4KB
|
100 lines
Dear European user,
There are two ways to map your keyboard to type umlaut characters (like ö)
and other special characters in Uedit.
1) The best way is to remap your keyboard using the keyboard-mapping array
(of two rows of 64 printable characters each) in the Config! file. This is
100% efficient, in that it lets you type them normally without there being a
command executed when you press the key.
Below the keyboard mapping arrays in Config! are 2 more 64 char arrays. They
apply when you press the ALT or SHIFT-ALT keys. These arrays are included
specifically for foreign users so that you can type foreign letters.
2) Another way is to use the typeChar() function in a command. (You must use
the typeChar() function to enable you to type the umlaut characters you need
into the keyboard-mapping arrays in Config! discussed above.)
Here are command examples which will help you to map the keyboard keys:
Note that if you use an integer argument with typeChar(), it costs 6 bytes
per key. But if you use a literal argument "x", it only costs 4 bytes per
key. (If you use the keyboard-mapping arrays in the Config! defaults, there
is zero overhead.)
This command will enable you to type special characters into the keyboard-
mapping arrays that are in the Config! file defaults. Compile this command
with f6. Put the cursor on the letter you wish too overwrite and press ESC:
<normal-esc: upFlag(curFile,overstrike) .. turn ON overstrike mode
putMsg("Input ASCII value (0-255) of letter to type")
if (inputNum(n54)) typeChar(n54)
downFlag(curFile,overstrike) .. turn off overstrike mode
putMsg(" ")>
((Note that if you aren't using Illegal Character Mapping, you cannot insert
ASCII values 0-3. If you are using Illegal Character Mapping, the mapped
characters will be inserted in place of the illegal ones and will be restored
to the illegal ones when you save or print the file.))
-----------------------------------------------------------------------------
HERE IS A COPY OF THE KEYBOARD MAPPING ARRAYS, YOU MUST CUSTOMIZE THESE IN
THE CONFIG! FILE:
Printable key table: DON'T TOUCH, unless you know what you are doing!
This is a translation table which converts raw keystrokes into printable
characters. (See Rom Kernal Manual, Volume 1, page 3-81.) There must be
64 in each row. Use OVERSTRIKE typing mode when modifying this, to avoid
trouble:
Unused --> U U EUROPE--> EE U U
<`1234567890-=\ 0qwertyuiop[] 123asdfghjkl;' 456 zxcvbnm,./ .789>
<~!@#$%^&*()_+| 0QWERTYUIOP{} 123ASDFGHJKL:" 456 ZXCVBNM<>? .789> .."
These are input using the ALT key. Put FOREIGN LETTERS in this array.
<`1234567890-=\ 0qwertyuiop[] 123asdfghjkl;' 456 zxcvbnm,./ .789>
-----------------------------------------------------------------------------
This command shows all printable characters in the font and their ASCII values:
<normal-esc:
equateNum(n53,0)
moveCursor(curFile,eFile)
do (n54,32,255) {
insertChar(curFile,n54)
insertChar(curFile," ")
toWord(curFile,n54)
incNum(n53)
if (eqNum(n53,10)) {
insertChar(curFile,eLine)
equateNum(n53,0)
updateDisplay
}
else insertRgn(curFile,atCursor," ",all)
.. updateDisplay
}>
These are examples of using typeChar() to insert special characters:
Cost is 6 bytes: Cost is 4 bytes:
Ü 220 <shftAlt-u: typeChar(220)> <shftAlt-u: typeChar("Ü")>
ä 228 <shftAlt-a: typeChar(228)>
ë 235 <shftAlt-e: typeChar(235)>
ï 239 <shftAlt-i: typeChar(239)>
ö 246 <shftAlt-o: typeChar(246)>
But, again, the more efficient method is to remap the keyboard-arrays in the
Config! defaults.
Enjoy!
Rick Stiles