ApplyKhmerReorder
Signatuur
function ApplyKhmerReorder(const Wide: UnicodeString): UnicodeString;
Doel
Past de Khmer-herschikking toe op Wide en retourneert een UnicodeString die klaar is voor cmap en GSUB. Tekst buiten Khmer blijft byte-stabiel
Dekking
- Khmer gebruikt scriptrecord
khmrvoor U+1780-U+17FF. De dekking omvatindependent South-East Asian syllable processingen behoudt het API-gedrag voor producer-side shaping ApplyIndicReorderdispatches to this helper when the active codepoint range matches U+1780-U+17FF
Voorbeeld
var
Wide: UnicodeString;
begin
// Input: KA (U+1780) + E-vowel (U+17C1, pre-base)
Wide:= Doc.ApplyKhmerReorder(#$1780#$17C1);
// Wide is now: E (U+17C1) + KA (U+1780)
// Input: KA + COENG + KHA + AA-vowel (stacked consonant + post vowel)
Wide:= Doc.ApplyKhmerReorder(#$1780#$17D2#$1781#$17B6);
// Wide unchanged: KA + COENG + KHA + AA
// (COENG cluster stays in BaseBuf in original order; AA in PostBuf)
end;
Zie ook
ApplyIndicReorder- DekkingGetKhmerCategory- Khmer category lookup
Standaarden
- Unicode 16.0 U+1780-U+17FF
- ISO 32000-1 ยง9.10
- OpenType Khmer shaping specification
Versiegeschiedenis
- v2.120.9 - Toegevoegd als onderdeel van de HotPDF Indic-vormingsbatch