This repository contains mapping tables for converting Unicode characters to octal codes that can be used in GMT and PyGMT.
The mapping tables are stored as comma-separated values files with the following columns:
- Octal code
- Unicode value (in hexadecimal)
- Unicode name
The read_mappings.py script can read the mapping tables in the mappings directory
and then output in various formats that can be directly embedded in PyGMT source code
and documentation.
Usage:
python read_mappings.py charset.txt
Notes:
- The original mapping files from different sources are in the
officialdirectory. Check theofficial/README.mdfile for more information. - Some octal codes are not assigned to any characters. Here the special Unicode character
�(U+FFFD, REPLACEMENT CHARACTER) is assigned.