ALTB C —
Format
Parameters
table-id:
source-character:
target-character:
Function
File
Printout
[ALlocate TaBle] Convert character code
ALTB C, table-id, source-character, target-character;
number identifying the character table to convert the character, from 1 to 65535
character code before conversion: 1-byte code = 0 to 255; 2-byte code = 0 to 65533, or
in hexadecimal notation ($xxxx).
character code after conversion: 1-byte code = 0 to 255; 2-byte code = 0 to 65533, or in
hexadecimal notation ($xxxx).
The ALTB C command converts the character code given as source-character to the
character code given as target-character in the user-defined character table.
If the character table having the identical number already exists, the existing character
table is replaced by the new character table.
In the example below, the character table number 56535 is generated by ALTB G, in
which the character ''\ (backslash, character code 92)'' is replaced with the Euro
currency symbol ''a (character code 186 for Roman-9 symbol set).''
!R!
SFNT "TimesNewRoman", 14;
CSET 4U; CMNT Roman-9;
ALTB G, 56535, 1;
ALTB C, 56535, 92, 186;
ALTB A, 56535;
TEXT "The Euro currency is symbolized as \.";
ALTB R, 56535; CMNT Release user table;
PAGE; EXIT;
ALTB C
15