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
| Code | Category | Example codepoints |
|---|---|---|
| 0 | Other | fallback or outside range |
| 1 | Consonant | Tamil consonants |
| 2 | Independent vowel | Tamil vowel letters |
| 3 | Matra | Tamil 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 | Tamil digits |
| 11 | ZWNJ | U+200C |
Notes
- I-matra (
ApplyTamilReorderand 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 byApplyTamilReorder). - 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
ApplyTamilReorderApplyIndicReorderGetDevanagariCategoryApplyTamilReorder- Tamil reorder pre-passApplyIndicReorder- Indic dispatcher
Version history
- v2.119.73 - Introduced as part of the HotPDF Indic shaping batch