GetDevanagariCategory
Signature
function GetDevanagariCategory(CP: Cardinal): Integer;
Purpose
Returns the HotPDF syllabic category used by the Devanagari reorder pre-pass. The function is a codepoint lookup, needs no font state, and returns category 0 for values outside the Devanagari range
Return values
| Code | Category | Example codepoints |
|---|---|---|
| 0 | Other | U+093D Avagraha, U+0950 OM |
| 1 | Consonant | Devanagari consonants |
| 2 | Independent vowel | Devanagari vowel letters |
| 3 | Matra | Devanagari dependent vowel signs |
| 4 | Virama | halant or virama |
| 5 | Nukta | nukta mark where the script uses one |
| 6 | Bindu | U+0900–U+0902 |
| 7 | Visarga | visarga sign |
| 9 | Digit | Devanagari digits |
| 9 | Digit | U+0966–U+096F |
| 10 | ZWJ | U+200D |
| 11 | ZWNJ | U+200C |
| 12 | Modifier (Vedic stress) | U+0951–U+0954 |
Notes
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-passApplyIndicReorder— total Indic dispatcher.
Version history
- v2.119.55 — Introduced.
- v2.119.69 — Internal helper signature gained
out MatraPos; public wrapper unchanged (Phase 8f.0).