Files
Francesco BigiariniandClaude Opus 5.5 a3c0f2763d Add character data to the Elixir package (#187)
* Add character data to the Elixir package

Mojibake.Char exposes the character data of single codepoints: names,
categories, combining and bidi classes, decomposition types, numeric
values, simple case mappings, blocks, scripts and Script_Extensions,
East Asian width, emoji properties, and every stored binary and
enumerated property. Mojibake.Script, Block, Plane, and Property
describe their values, Mojibake.Emoji classifies emoji sequences, and
Mojibake.Hangul composes and decomposes syllables.

Values are atoms made from the long UCD names. The tables that map the
C enums to atoms are generated by make generate into
src/elixir/lib/mojibake/unicode_data.ex, and the NIF statically checks
the hand-written bidi and emoji enums it maps.

The new UCD tests compare the results with UnicodeData.txt, Blocks.txt,
the property files, and PropertyValueAliases.txt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Francesco Bigiarini <francesco.bigiarini@gmail.com>

* Use the C records for private-use and surrogate codepoints

Now that mjb_codepoint_info returns records for surrogates and
private-use codepoints (#188), drop the Elixir category fallback for
them, and check every First/Last range of UnicodeData.txt. The Unicode
18 Tangut, Jurchen, and Seal ranges that the C library does not cover
yet are skipped.

Download the UCD files that the Elixir character-data tests read in
download-test-data.sh, so they run in CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Francesco Bigiarini <francesco.bigiarini@gmail.com>

* Check the Unicode 18 ideograph ranges in the Elixir UCD tests

mjb_codepoint_info now returns records for the full Tangut ranges and
the Jurchen and Seal ranges (#189), so the UnicodeData.txt range test
no longer skips them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Francesco Bigiarini <francesco.bigiarini@gmail.com>

---------

Signed-off-by: Francesco Bigiarini <francesco.bigiarini@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 11:23:18 +01:00
..
2026-03-06 14:07:57 +01:00
2026-07-26 12:50:20 +02:00