ApplyGujaratiReorder
簽章
function ApplyGujaratiReorder(const Wide: UnicodeString): UnicodeString;
用途
對 Wide 套用 Gujarati 重排預處理,並傳回可交給 cmap 與 GSUB 使用的 UnicodeString。Gujarati 之外的文字與資料保持位元組穩定
涵蓋範圍
- Gujarati 對 U+0A80-U+0AFF 使用
gujrscript 記錄。涵蓋範圍包含 - R2 Pre-base matras:
R1-R5 with no split matras,並維持產生端 API 行為穩定 ApplyIndicReorderdispatches to this helper when the active codepoint range matches U+0A80-U+0AFFU+0AC7E,U+0AC8AI emit after the base block. Note Gujarati E/AI are above-base (like Devanagari), unlike Bengali where they are pre-base.- R4 Below-base matras:
U+0AC1–U+0AC4U/UU/Vocalic R/RR,U+0AE2–U+0AE3Vocalic L/LL emit after above-base. - R5 Post-base matras:
U+0ABEAA,U+0AC0II,U+0AC9CANDRA O,U+0ACB–U+0ACCO/AU emit after below-base. - No split matras in the Gujarati main block.
Output layout per syllable: [pre-matras] + [base + halant + nukta + bindu/visarga/modifier] + [above-matras] + [below-matras] + [post-matras] + [Repha: Ra Halant]?
Conjuncts (C + Halant + C) preserved in the base block
Single-pass and idempotent
範例
var
Wide: UnicodeString;
begin
// Input: KA + AA(post) + U(below) + E(above) + I(pre)
Wide:= Doc.ApplyGujaratiReorder(#$0A95#$0ABE#$0AC1#$0AC7#$0ABF);
// Wide is now: I + KA + E + U + AA (canonical 5-buffer order)
end;
另請參閱
ApplyIndicReorder- 涵蓋範圍GetGujaratiCategory- Gujarati category lookupApplyBengaliReorder— Bengali counterpart.GetGujaratiCategory— Unicode codepoint → category lookup.
標準
- Unicode 16.0 U+0A80-U+0AFF
- Unicode 16.0
IndicSyllabicCategory.txtandIndicPositionalCategory.txt - ISO 32000-1 §9.10
- OpenType Gujarati shaping specification
版本歷史
- v2.119.72 - 作為 HotPDF Indic 塑形批次的一部分導入