gen-use-table

command
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 6 Imported by: 0

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL