Documentation
¶
Overview ¶
Command gen-use-table generates USE (Universal Shaping Engine) tables from Unicode data.
HarfBuzz equivalent: gen-use-table.py
Usage:
go run ./cmd/gen-use-table IndicSyllabicCategory.txt IndicPositionalCategory.txt Scripts.txt Blocks.txt IndicSyllabicCategory-Additional.txt IndicPositionalCategory-Additional.txt > ot/use_table.go
Download input files from:
https://unicode.org/Public/UCD/latest/ucd/IndicSyllabicCategory.txt https://unicode.org/Public/UCD/latest/ucd/IndicPositionalCategory.txt https://unicode.org/Public/UCD/latest/ucd/Scripts.txt https://unicode.org/Public/UCD/latest/ucd/Blocks.txt
The two -Additional files are Microsoft's USE override data, vendored from HarfBuzz src/ms-use/ (MIT licensed, see ms-use-COPYING). They override the UCD values and add codepoints the UCD does not categorize at all, e.g. the Egyptian Hieroglyphs blocks.
HarfBuzz merge semantics: gen-use-table.py:80-108 (Additional files map onto the same data slots as the UCD files and win because they are applied last).
Click to show internal directories.
Click to hide internal directories.