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

CodeCategoryExample codepoints
0Otherfallback or outside range
1ConsonantBengali consonants
2Independent vowelBengali vowel letters
3MatraBengali dependent vowel signs
4Viramahalant or virama
5Nuktanukta mark where the script uses one
6Binduchandrabindu or anusvara
7Visargavisarga sign
9DigitBengali digits
10ZWJU+200D
11ZWNJU+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+09C7 E and U+09C8 AI: pre-base matras (MatraPos = 1), differing from Devanagari where E/AI are above-base.
  • U+09CB Oo and U+09CC AU: split matras (MatraPos = 5), decomposed at reorder time.
  • U+09CE KHANDA TA: classified as Consonant (category 1).
  • No above-base matras (MatraPos = 3 unused for Bengali).

See also

Version history

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