ApplyKhmerReorder

Signatur

function ApplyKhmerReorder(const Wide: UnicodeString): UnicodeString;

Syfte

Tillämpar Khmer-omordningen på Wide och returnerar en UnicodeString klar för cmap och GSUB. Text utanför Khmer förblir byte-stabil

Täckning

  • Khmer använder scriptposten khmr för U+1780-U+17FF. Täckningen omfattar independent South-East Asian syllable processing och bevarar API-beteendet för producer-side shaping
  • ApplyIndicReorder dispatches to this helper when the active codepoint range matches U+1780-U+17FF

Exempel

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;

Se även

Standarder

  • Unicode 16.0 U+1780-U+17FF
  • ISO 32000-1 §9.10
  • OpenType Khmer shaping specification

Versionshistorik

  • v2.120.9 - Införd som del av HotPDF:s Indic shaping-batch