ApplyBengaliReorder
簽章
function ApplyBengaliReorder(const Wide: UnicodeString): UnicodeString;
用途
對 Wide 套用 Bengali 重排預處理,並傳回可交給 cmap 與 GSUB 使用的 UnicodeString。Bengali 之外的文字與資料保持位元組穩定
涵蓋範圍
- Bengali 對 U+0980-U+09FF 使用
bengscript 記錄。涵蓋範圍包含R1, R2, R4, R5, and split-matra decomposition,並維持產生端 API 行為穩定 ApplyIndicReorderdispatches to this helper when the active codepoint range matches U+0980-U+09FFU+09C7E、U+09C8AI 移到音節開頭。注意 Bengali 的 E/AI 是前置,不同於 Devanagari 的上方位置。- R3 上方 matra:(Bengali 主區塊沒有上方 matra,此處為空)
- R4 下方 matra:
U+09C1–U+09C4U/UU/Vocalic R/RR、U+09E2–U+09E3Vocalic L/LL 在基底之後輸出。 - R5 後置 matra:
U+09BEAA、U+09C0II、U+09D7AU 長音符號在下方塊之後輸出。 - 分割 matra:
U+09CBOo 分解為U+09C7(前)+U+09BE(後);U+09CCAU 分解為U+09C7(前)+U+09D7(後)。
每個音節的輸出布局:[前置 matra] + [基底 + halant + nukta + bindu/visarga/修飾符] + [下方 matra] + [後置 matra] + [Repha: Ra Halant]?
連結字(C + Halant + C
範例
var
Wide: UnicodeString;
begin
// Input: KA + Oo-matra (single codepoint U+09CB)
Wide:= Doc.ApplyBengaliReorder(#$0995#$09CB);
// Wide is now: U+09C7 + KA + U+09BE (Oo decomposed to pre+post)
end;
另請參閱
ApplyIndicReorder- 涵蓋範圍GetBengaliCategory- Bengali category lookupGetBengaliCategory
標準
- Unicode 16.0 U+0980-U+09FF
- Unicode 16.0
IndicSyllabicCategory.txt與IndicPositionalCategory.txt - ISO 32000-1 §9.10
- OpenType Bengali shaping specification
版本歷史
- v2.119.71 - 作為 HotPDF Indic 塑形批次的一部分導入