15.9 The encodings description file


To simplify the process of adding new encodings support allowing to automatically generate a lot of "glue" files.


There is the ’encoding.deps’ file in the lib/ subdirectory which is used to describe encoding’s properties. The ’mkdeps.pl’ Perl script uses ’encoding.deps’ to generates the "glue" files.


The ’encoding.deps’ file is composed of sections, each section consists of entries, each entry contains some encoding/CES/CCS description.


The ’encoding.deps’ file’s syntax is very simple. Currently only two sections are defined: ENCODINGS and CES_DEPENDENCIES.


Each ENCODINGS section’s entry describes one encoding and contains the following information.


Note all names in the ’encoding.deps’ file have to have the normalized form.


Each CES_DEPENDENCIES section’s entry describes dependencies of one CES converted. For example, the euc CES converter depends on the table and the us_ascii CES converter since the euc CES converter uses them. This means, that both table and us_ascii CES converters should be linked if the euc CES converter is enabled.


The CES_DEPENDENCIES section defines the following:


The ’mktbl.pl’ Perl script automatically solves the following tasks.


The ’mktbl.pl’ Perl script is intended to interpret the ’encoding.deps’ file and generates the following files.