GetKhmerCategory
Signature
function GetKhmerCategory(CP: Cardinal): Integer;
Purpose
Returns the HotPDF syllabic category used by the Khmer reorder pre-pass. The function is a codepoint lookup, needs no font state, and returns category 0 for values outside the Khmer range
Return values
| Code | Category | Example codepoints |
|---|---|---|
| 0 | Other | fallback or outside range |
| 1 | Consonant | Khmer consonants |
| 2 | Independent vowel | Khmer vowel letters |
| 3 | Matra | Khmer dependent vowel signs |
| 4 | Virama | halant or virama |
| 5 | Nukta | nukta mark where the script uses one |
| 6 | Bindu | chandrabindu or anusvara |
| 7 | Visarga | visarga sign |
| 9 | Digit | Khmer digits |
Notes
The category values feed the same reorder pipeline used by ApplyKhmerReorder and by the full Indic dispatcher
See also
ApplyKhmerReorder- Khmer reorder pre-passApplyIndicReorder- Indic dispatcher
Version history
- v2.120.9 - Introduced as part of the HotPDF Indic shaping batch