syncfiles/scripts
Dietrich Epp 4b20b30330 Take Mac OS text encoding constants from headers
Among other uses, these constants are used on HFS+ volumes to choose
which encoding to use when converting Unicode filenames back to an 8-bit
string for old Mac OS APIs.

This is documented in TN 1150 under "Text Encodings".

https://developer.apple.com/library/archive/technotes/tn/tn1150.html
2022-04-01 12:05:15 -04:00
..
BUILD.bazel
charmap.csv
encoding.csv Take Mac OS text encoding constants from headers 2022-04-01 12:05:15 -04:00
extract.py Take Mac OS text encoding constants from headers 2022-04-01 12:05:15 -04:00
README.md
region.csv
script.csv

Mac OS Region Definitions

This folder contains the script and region definitions for the Mac OS toolbox.

  • extract.py: Generate script.csv and region.csv from the Script.h file in Mac OS Universal Interfaces. The output of this program is checked in, so it does not need to be run again unless the logic is changed.

  • script.csv: Constants identifying scripts.

  • region.csv: Constants identifying localization regions.

  • charmap.csv: Identifies character maps used by classic Mac OS. Each character map is given a name, a data file in the ../charmap folder, and the script and, optionally, regions it corresponds to. This mapping is taken from the readme in the charmap folder. More specific mappings (which contain regions) in this file take precedence less specific mappings (which do not contain regions). For example, Turkish is more specific than Roman.