(Created page with "<seo title="Create Custom Translation Tables | vEdit" description="Easily create a translation table by modifying the supplied file user.tbl for your own needs to be loaded in...") |
(→Edit the Custom USER.TBL) |
||
| Line 21: | Line 21: | ||
#Select <kbd>FILE</kbd> > <kbd>Close buffer</kbd> or <kbd>Ctrl-W</kbd> to save the file. | #Select <kbd>FILE</kbd> > <kbd>Close buffer</kbd> or <kbd>Ctrl-W</kbd> to save the file. | ||
| − | You can now load your custom table with <kbd>EDIT</kbd> > <kbd>Translate</kbd> > <kbd>Load translate table</kbd> and try it out. | + | You can now load your custom table with <kbd>EDIT</kbd> > <kbd>Translate</kbd> > <kbd>Load translate table</kbd> and try it out. [[Loading_Translate_Tables|Loading other Translate Tables >>]] |
==Translating Files== | ==Translating Files== | ||
You can easily create a translation table for your own needs. A 521-byte translation file consists of two 256-byte translation tables (a “to” table and a “from” table), followed by an 8-character name and a null (00) byte.
Each character (byte) in your file has 256 possible values. Therefore, each translation table is 256 bytes long. An existing value of “00” is translated to the first byte in the translation table; a value of “01” is translated to the second byte in the table, and so on.
The easiest way to create your own translation table is by modifying the supplied file user.tbl. As supplied, user.tbl translates every byte to the same value, i.e. it does nothing useful. Each translation table in user.tbl consists of the bytes (in hex):
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 ...
You can now load your custom table with EDIT > Translate > Load translate table and try it out. Loading other Translate Tables >>