Add a text encoding plugin
Use this procedure to add support for a new encoding.
Before you begin, the preferred encoding must be installed on the system.
- Locate the charmap on the internet or Linux™ system.
- Copy the uncompressed charmap to the $GSTUSERDIR/charmaps directory. Create the charmaps directory if it does not already exist.
-
Create a new entry for the encoding in
$GSTUSERDIR/encodingMap.xml.
For example:
<!-- Polish --> <Alias name="IBM852" fallback="852,ibm852" impl="IBM852" unixCountry="pl_PL" /> <Alias name="852" fallback="IBM852,ibm852" impl="IBM852" unixCountry="pl_PL" /> <Alias name="CP852" fallback="IBM852,852,ibm852" impl="IBM852" unixCountry="pl_PL" />
-
Open Genero Studio and select Tools > Preferences (or, if you are on a Mac, Genero Studio > Preferences), then General. Check to see if the new plugin displays in the list of encodings.
If the plugin is not present in the Text Encoding list, check the following:
- Did you copy the charmap to the Genero Studio charmaps directory?
- Is the charmap a valid POSIX2 charmap?