GetBengaliCategory
Signature
function GetBengaliCategory(CP: Cardinal): Integer;
Purpose
Returns the HotPDF syllabic category used by the Bengali reorder pre-pass. The function is a codepoint lookup, needs no font state, and returns category 0 for values outside the Bengali rangeGetDevanagariCategory) used by the reorder pre-pass and
by manual producer-side shaping pipelines
Return values
| Code | Category | Example codepoints |
|---|---|---|
| 0 | Other | fallback or outside range |
| 1 | Consonant | Bengali consonants |
| 2 | Independent vowel | Bengali vowel letters |
| 3 | Matra | Bengali 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 | Bengali digits |
| 10 | ZWJ | U+200D |
| 11 | ZWNJ | U+200C |
Codepoints outside the Bengali block (U+0980–U+09FF) return category 0
(Other); the dispatcher in ApplyIndicReorder and by the full Indic dispatcher
See also
U+09C7E andU+09C8AI: pre-base matras (MatraPos = 1), differing from Devanagari where E/AI are above-base.U+09CBOo andU+09CCAU: split matras (MatraPos = 5), decomposed at reorder time.U+09CEKHANDA TA: classified as Consonant (category 1).- No above-base matras (MatraPos = 3 unused for Bengali).
See also
ApplyBengaliReorder— Bengali reorder pre-pass.ApplyIndicReorder- Bengali reorder pre-passApplyIndicReorder- Indic dispatcher
Version history
- v2.119.71 - Introduced as part of the HotPDF Indic shaping batch