ApplyKhmerReorder

Sygnatura

function ApplyKhmerReorder(const Wide: UnicodeString): UnicodeString;

Cel

Stosuje przebieg zmiany kolejności Khmer do Wide i zwraca UnicodeString przygotowany dla cmap i GSUB. Tekst poza Khmer pozostaje stabilny bajtowo

Zakres

  • Khmer używa rekordu script khmr dla U+1780-U+17FF. Zakres obejmuje independent South-East Asian syllable processing i zachowuje zachowanie API po stronie producenta
  • ApplyIndicReorder dispatches to this helper when the active codepoint range matches U+1780-U+17FF

Przykład

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;

Zobacz także

Standardy

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

Historia wersji

  • v2.120.9 - Wprowadzone jako część partii kształtowania Indic w HotPDF