GetMalayalamCategory
Signature
function GetMalayalamCategory(CP: Cardinal): Integer;
Purpose
Returns the HotPDF syllabic category used by the Malayalam reorder pre-pass. The function is a codepoint lookup, needs no font state, and returns category 0 for values outside the Malayalam rangeGetDevanagariCategory)
Return values
| Code | Category | Example codepoints |
|---|---|---|
| 0 | Other | fallback or outside range |
| 1 | Consonant | Malayalam consonants |
| 2 | Independent vowel | Malayalam vowel letters |
| 3 | Matra | Malayalam 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 | Malayalam digits |
| 11 | ZWNJ | U+200C |
| 12 | Modifier | U+0D3B–U+0D3C vertical strokes |
Notes
- I-matra (U+0D3F) is POST-base (
ApplyMalayalamReorderand by the full Indic dispatcher - Pre-base matras (
MatraPos = 1): E (U+0D46), EE (U+0D47), AI (U+0D48). True pre-base matras. - Post-base matras (
MatraPos = 2): AA (U+0D3E), I (U+0D3F), II (U+0D40), AU length mark (U+0D57). - Below-base matras (
MatraPos = 4): U (U+0D41), UU (U+0D42), Vocalic R / RR (U+0D43–U+0D44), Vocalic L / LL matras (U+0D62–U+0D63). - Split matras (
MatraPos = 5): O (U+0D4A), OO (U+0D4B), AU (U+0D4C). All three decomposed to pre + post components byApplyMalayalamReorderper Unicode 16.0 canonical decomposition data. - Chillu letters (
U+0D54–U+0D56,U+0D7A–U+0D7F): pure consonants without halant requirement, classified as Consonant (category 1). Malayalam-specific feature. - DOT REPH (
U+0D4E): Malayalam-specific letter, classified as Consonant per Unicode 16.0 IndicSyllabicCategory. - Halant is
U+0D4D(named CHANDRAKKALA in Malayalam). - Three bindu codepoints (combining anusvara variants and anusvara) at
U+0D00–U+0D02; visarga atU+0D03.
See also
ApplyMalayalamReorderApplyIndicReorderGetDevanagariCategoryGetBengaliCategoryGetGujaratiCategoryGetTamilCategoryApplyMalayalamReorder- Malayalam reorder pre-passApplyIndicReorder- Indic dispatcher
Version history
- v2.119.76 - Introduced as part of the HotPDF Indic shaping batch