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

CodeCategoryExample codepoints
0Otherfallback or outside range
1ConsonantDevanagari consonants
2Independent vowelDevanagari vowel letters
3MatraDevanagari dependent vowel signs
4Viramahalant or virama
5Nuktanukta mark where the script uses one
6Binduchandrabindu or anusvara
7Visargavisarga sign
9DigitDevanagari digits

Notes

The category values feed the same reorder pipeline used by ApplyDevanagariReorder and by the full Indic dispatcher

See also

Version history

  • v2.119.70 - Introduced as part of the HotPDF Indic shaping batch