GetGujaratiCategory
Signature
function GetGujaratiCategory(CP: Cardinal): Integer;
Purpose
Returns the HotPDF syllabic category used by the Gujarati reorder pre-pass. The function is a codepoint lookup, needs no font state, and returns category 0 for values outside the Gujarati rangeGetDevanagariCategory)
Return values
| Code | Category | Example codepoints |
|---|---|---|
| 0 | Other | fallback or outside range |
| 1 | Consonant | Gujarati consonants |
| 2 | Independent vowel | Gujarati vowel letters |
| 3 | Matra | Gujarati 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 | Gujarati digits |
| 10 | ZWJ | U+200D |
| 11 | ZWNJ | U+200C |
Notes
- E (
U+0AC7and by the full Indic dispatcherU+0AC8): above-base (MatraPos = 3) — like Devanagari, unlike Bengali (pre-base). - CANDRA E (
U+0AC5): above-base; CANDRA O (U+0AC9): post-base. - No split matras (MatraPos = 5 unused for Gujarati).
See also
ApplyGujaratiReorderApplyIndicReorderGetDevanagariCategory- Gujarati reorder pre-passApplyIndicReorder- Indic dispatcher
Version history
- v2.119.72 - Introduced as part of the HotPDF Indic shaping batch