GetTamilCategory

Signature

function GetTamilCategory(CP: Cardinal): Integer;

Purpose

Returns the HotPDF syllabic category used by the Tamil reorder pre-pass. The function is a codepoint lookup, needs no font state, and returns category 0 for values outside the Tamil rangeGetDevanagariCategory)

Return values

CodeCategoryExample codepoints
0Otherfallback or outside range
1ConsonantTamil consonants
2Independent vowelTamil vowel letters
3MatraTamil dependent vowel signs
4Viramahalant or virama
5Nuktanukta mark where the script uses one
6Binduchandrabindu or anusvara
7Visargavisarga sign
9DigitTamil digits
11ZWNJU+200C

Notes

  • I-matra (ApplyTamilReorder and by the full Indic dispatcher
  • II-matra (U+0BC0): MatraPos = 3 (above-base).
  • E (U+0BC6) / EE (U+0BC7) / AI (U+0BC8): MatraPos = 1 (pre-base).
  • O (U+0BCA) / OO (U+0BCB) / AU (U+0BCC): MatraPos = 5 (split — decomposed by ApplyTamilReorder).
  • AU length mark (U+0BD7): MatraPos = 2 (post-base) — emitted by U+0BCC split.
  • Halant is named PULLI in Tamil (U+0BCD).
  • Visarga (U+0B83) is the Tamil aytham.
  • No category 5 Nukta (Tamil has no Nukta codepoint in main block) and no Danda (Tamil uses Latin punctuation).

See also

Version history

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