GetDevanagariCategory

Signature

function GetDevanagariCategory(CP: Cardinal): Integer;

Purpose

Pure Unicode-codepoint → Devanagari syllabic-category lookup. No font state required. Returns one of 13 category codes used by the reorder pre-pass and by manual producer-side shaping pipelines composed atop the v2.119.43-50 GSUB engine APIs.

Return values

CodeCategoryExample codepoints
0OtherU+093D Avagraha, U+0950 OM
1ConsonantU+0915–U+0939, U+0958–U+095F, U+0978–U+097F
2Independent vowelU+0904–U+0914, U+0960–U+0961, U+0972–U+0977
3Matra (dependent vowel sign)U+093E–U+094C, U+094E–U+094F, U+0955–U+0957, U+0962–U+0963
4Virama (halant)U+094D
5NuktaU+093C
6Bindu / anusvaraU+0900–U+0902
7VisargaU+0903
8DandaU+0964–U+0965
9DigitU+0966–U+096F
10ZWJU+200D
11ZWNJU+200C
12Modifier (Vedic stress)U+0951–U+0954

Note on Phase 8f.0 internal changes

The internal helper _DevanagariCategory gained an additional out-parameter MatraPos in v2.119.69 to support multi-script dispatch infrastructure. The public GetDevanagariCategory wrapper preserves the v2.119.55 single-value signature for backward compatibility; callers needing matra position should use the new ApplyIndicReorder pipeline which consumes MatraPos internally.

See also

Version history

  • v2.119.55 — Introduced.
  • v2.119.69 — Internal helper signature gained out MatraPos; public wrapper unchanged (Phase 8f.0).