GetMyanmarCategory

簽章

function GetMyanmarCategory(CP: Cardinal): Integer;

用途

傳回 Myanmar 重排預處理使用的 HotPDF 音節類別。此函式是代碼點查詢,不需要字型狀態,超出 Myanmar 範圍時傳回類別 0GetDevanagariCategory et al.). Covers the Myanmar core block (U+1000–U+109F) and Extended-A (U+AA60–U+AA7F)

傳回值

代碼類別範例碼點
0OtherUnassigned / non-syllable; Myanmar punctuation (U+104A–U+104F); symbols (U+109E–U+109F); Extended-A symbols (U+AA77–U+AA79)
1ConsonantCore consonants (U+1000–U+1020), GREAT SA (U+103F), medials Y/R/W/H (U+103B–U+103E; treated as consonants here, sorted by reorder pre-pass), Extended Sanskrit (U+1050–U+1055), Mon (U+105A–U+1066), Sgaw Karen / Western Pwo (U+1067–U+1070), Shan (U+1075–U+1081), MEDIAL MON LA (U+1082), Rumai Palaung FA (U+108E), Extended-A consonants (U+AA60–U+AA76, U+AA7A, U+AA7E–U+AA7F)
0Otherfallback or outside range
1ConsonantMyanmar consonants
2Independent vowelMyanmar vowel letters
3MatraMyanmar dependent vowel signs
4Viramahalant or virama
5Nuktanukta mark where the script uses one
6Binduchandrabindu or anusvara
7Visargavisarga sign
9DigitMyanmar digitsU+1087–U+108D, U+108F; routed to above-base), Pa'o Karen tone marks (U+AA7B–U+AA7D)

說明

MatraPosPositionMyanmar codepoints
1Pre-baseU+1031 E (the only pre-base matra in Myanmar; rotated to syllable start per R10)
2Post-baseU+102B TALL AA, U+102C AA, U+1056–U+1057 Vocalic R/RR matras, U+1083–U+1084 Shan vowel signs, U+109A–U+109B Shan tone vowels
3Above-baseU+102D I, U+102E II, U+1032 AI, U+1033–U+1035 Vocalic R/L variants, U+1071–U+1074 vowel signs, U+1085–U+1086 Shan vowel signs, U+109C Shan tone vowel
4Below-baseU+102F U, U+1030 UU, U+1058–U+1059 Vocalic L/LL matras, U+109D Shan tone vowel

類別值會進入與 ApplyMyanmarReorder 和完整 Indic 分派器相同的重排管線

另請參閱

  • Kinzi prefix is not a category: the exact 3-CP sequence U+1004 + U+103A + U+1039 at syllable start is recognized by ApplyMyanmarReorder's FSM, not by category codes. The individual codepoints retain their normal categories (NGA=1, ASAT=4, VIRAMA=4).
  • ASAT and VIRAMA both category 4: the FSM does not need to distinguish them since both signal consonant stacking. ASAT used standalone outside the Kinzi prefix stays in BaseBuf at its source position.
  • Medials Y/R/W/H all category 1: U+103B–U+103E are categorised as Consonant, but the reorder pre-pass recognizes them by codepoint and routes each to a dedicated slot, emitting them in fixed Y → R → W → H order per R9.
  • U+1082 MEDIAL MON LA is not in the Y/R/W/H medial set. It is categorised as plain consonant (1) and stays in BaseBuf in source order.
  • DOT BELOW vs other tones (all category 12): U+1037 DOT BELOW is the only category-12 codepoint that routes to below-base; all other tone marks (Burmese, Shan, Rumai Palaung, Pa'o Karen) route to above-base.
  • Pre-base vowel count: Myanmar has only one pre-base matra (U+1031 E), reordered per R10. The complexity is in Kinzi (3 CPs), medial sorting (4 slots), and ASAT / VIRAMA handling rather than in vowel routing.
  • Extended-B (U+A9E0–U+A9FF) and Extended-C (U+116D0–U+116FF, supplementary plane): not covered in this phase. Future Phase 8g may add these.

另請參閱

版本歷史

  • v2.120.10 - 作為 HotPDF Indic 塑形批次的一部分導入