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

CodeCategoryExample codepoints
0Otherfallback or outside range
1ConsonantMalayalam consonants
2Independent vowelMalayalam vowel letters
3MatraMalayalam dependent vowel signs
4Viramahalant or virama
5Nuktanukta mark where the script uses one
6Binduchandrabindu or anusvara
7Visargavisarga sign
9DigitMalayalam digits
11ZWNJU+200C
12ModifierU+0D3B–U+0D3C vertical strokes

Notes

  • I-matra (U+0D3F) is POST-base (ApplyMalayalamReorder and 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 by ApplyMalayalamReorder per 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 at U+0D03.

See also

Version history

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