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
| Code | Category | Example codepoints |
|---|---|---|
| 0 | Other | U+093D Avagraha, U+0950 OM |
| 1 | Consonant | U+0915–U+0939, U+0958–U+095F, U+0978–U+097F |
| 2 | Independent vowel | U+0904–U+0914, U+0960–U+0961, U+0972–U+0977 |
| 3 | Matra (dependent vowel sign) | U+093E–U+094C, U+094E–U+094F, U+0955–U+0957, U+0962–U+0963 |
| 4 | Virama (halant) | U+094D |
| 5 | Nukta | U+093C |
| 6 | Bindu / anusvara | U+0900–U+0902 |
| 7 | Visarga | U+0903 |
| 8 | Danda | U+0964–U+0965 |
| 9 | Digit | U+0966–U+096F |
| 10 | ZWJ | U+200D |
| 11 | ZWNJ | U+200C |
| 12 | Modifier (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
ApplyDevanagariReorder— Devanagari reorder pre-pass.ApplyIndicReorder— total Indic dispatcher.
Version history
- v2.119.55 — Introduced.
- v2.119.69 — Internal helper signature gained
out MatraPos; public wrapper unchanged (Phase 8f.0).