The
mapscrn
command can read the map in either of two formats:
1. 256 or 512 bytes binary data
2. two-column text file
Format (1) is a direct image of the translation
table. The 256-bytes tables are direct-to-font,
the 512-bytes tables are user-to-unicode tables.
Format (2) is used to fill the
table
as follows: cell with offset mentioned in the first column is filled
with the value mentioned in the second column.
When values larger than 255 occur, or values are written using
the U+xxxx notation, the table is assumed to be a user-to-unicode
table, otherwise it is a direct-to-font table.
Values in the file may be specified in one of several
formats:
1. Decimal:
String of decimal digits not starting with '0'
2. Octal:
String of octal digits beginning with '0'.
3. Hexadecimal:
String of hexadecimal digits preceded by "0x".
4. Unicode:
String of four hexadecimal digits preceded by "U+".
5. Character:
Single character enclosed in single quotes. (And the binary value is used.)
Note that blank, comma, tab character and '#' cannot be specified
with this format.
6. UTF-8 Character:
Single (possibly multi-byte) UTF-8 character, enclosed in single quotes.
Note that control characters (with codes < 32) cannot be re-mapped with
mapscrn
because they have special meaning for the driver.