Conversion tables are files
that contain necessary information to produce a change in your reports.
For example, it is very normal that files generated with MS-DOS and contain
special characters such as Ñ and others are changed by Windows for other chars.
Even when many users accept this situation, the inconvenience can be solved
using a proper conversion table.
Other normal situation is when
there are sequences in the files (ussually on TXT files) that are sent to the
printer. These sequences are not recognized by Rpv at any moment.
It is possible, however to solve the inconvenience by using the available
conversion tables or by creating a new one and declaring it in the Rpv file or
in the Rpv Configuration Panel for opening text files.
Structure of a conversion table
You can see the in the file PORTUGUES.CNV the following structure.
#DOS=WINDOWS
128=199
In this case the specification is easy to be understood: when the program finds
the character 128, it must replace it by the char 199.
To obtain the equivalence in Windows, it is recommended to use application "Character
map". In that application you will find another code for the same char. In this
case the application will say that to obtain the char ALT-0199 must be preseed.
This last char must be specify in destination.
Replacement of an entire string
It is possible also to replace an entire string and not only a char.
To do so, you will need to type the sequence in ASCII code separated by commas,
an equal sign, and the new chain (in ASCII too). The chars must be expressed in
decimal.
Example:
13,13,10=01,92,78,80,02,13,10
The first string is "CR CR LF".
You can see this sequence in many files to break a page. The destination chain
includes an Rpv command.
01,92,78,80,02,13,10 is: {\NP} CR LF
If you observe the string, you will note that chars "{"
and "}" have been changed by 01 and 02 respectivelly.
For conversion purposes, brackets are not allowed and must be changed by these
two characters.
See also:
Conversion parameter
|