ApplyBengaliReorder
Signature
function ApplyBengaliReorder(const Wide: UnicodeString): UnicodeString;
Purpose
Wide에 벵골어 재정렬 사전 처리를 적용하고 cmap + GSUB에서 소비할 수 있도록 재정렬된 UnicodeString을 반환합니다. 벵골어가 아닌 콘텐츠(Latin, 숫자, 문점부호, 다른 Indic script를 포함한 타 script)는 바이트 단위로 그대로 통과합니다
적용되는 재정렬 규칙
- R1 Repha: 음절이
Ra (U+09B0) + Halant (U+09CD) + Consonant로 시작하면(Ra, Halant)쌍이 음절 끝으로 이동합니다 - R2 Pre-base matra:
U+09BFI,U+09C7E,U+09C8AI가 음절 시작으로 이동합니다. 벵골어 E/AI는 above-base인 데바나가리와 달리 pre-base입니다 - R3 Above-base matra: (벵골어에서는 비어 있음 — 메인 블록에 above-base matra가 없음)
- R4 Below-base matra:
U+09C1–U+09C4U/UU/Vocalic R/RR,U+09E2–U+09E3Vocalic L/LL을 base 뒤에 출력합니다 - R5 Post-base matra:
U+09BEAA,U+09C0II,U+09D7AU 길이 기호를 below-base 뒤에 출력합니다 - 분할 matra:
U+09CBOo는U+09C7(pre) +U+09BE(post)로 분해되고,U+09CCAU는U+09C7(pre) +U+09D7(post)로 분해됩니다
음절별 출력 배치: [pre-matras] + [base + halant + nukta + bindu/visarga/modifier] + [below-matras] + [post-matras] + [Repha: Ra Halant]?
결합 자음(C + Halant + C)은 base 블록에 유지됩니다. 단일 패스이며 멱등적입니다
예제
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— 등록된 모든 Indic script을 다루는 전체 dispatcher입니다ApplyDevanagariReorder— 데바나가리 단일 script 대응 함수입니다GetBengaliCategory— Unicode codepoint → 범주 조회입니다
Standards
- Unicode 16.0 §12.2 (Bengali)
- Unicode 16.0
IndicSyllabicCategory.txt및IndicPositionalCategory.txt - ISO 32000-1 §9.10 (텍스트 콘텐츠 추출)
- OpenType 벵골어 shaping 사양
Version history
- v2.119.71 — Phase 8f.2에서 도입되었습니다. 완전 shaper(R1, R2, R4, R5 + 분할 matra 분해)이며, 벵골어가 데바나가리 다음 두 번째로 등록된 Indic script가 되었습니다