ApplyKhmerReorder

シグネチャ

function ApplyKhmerReorder(const Wide: UnicodeString): UnicodeString;

目的

Wide に Khmer の並べ替え前処理を適用し、cmap と GSUB に渡せる UnicodeString を返します。Khmer 以外のテキストはバイト単位で安定したままです

対応範囲

  • Khmer は U+1780-U+17FF に対して script レコード khmr を使用します。対応範囲は independent South-East Asian syllable processing を含み、生成側の API 動作を維持します
  • ApplyIndicReorder dispatches to this helper when the active codepoint range matches U+1780-U+17FF

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;

関連項目

標準

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

バージョン履歴

  • v2.120.9 - HotPDF の Indic shaping バッチの一部として追加されました