THotPDF Script Shaping Preprocess Methods

THotPDF API reference

 

THotPDF Methods  Auto Shaping  GSUB

記錄 N'Ko、Adlam、Hanifi Rohingya、Thai/Lao、Hebrew、Javanese、Tai Viet、Meetei Mayek、Khmer 與 Myanmar text 的目前 script-level preprocess 與 RTL cursive helpers

 

Delphi 語法

AutoShapeNko、AutoShapeAdlam 與 AutoShapeHanifiRohingya 會將 RTL cursive GSUB positional paths 連接到 text output。sfThaiLaoReorder 會分解 SARA AM 並排序 tone marks,sfHebrewReorder 會在 mark placement 前依 canonical combining class 排序 niqqud,而 Javanese、Tai Viet、Meetei Mayek、Khmer 與 Myanmar flags 會在 cmap-to-GID mapping 前 normalize script-specific cluster order

property AutoShapeAdlam: Boolean read FAutoShapeAdlam write FAutoShapeAdlam;

property AutoShapeHanifiRohingya: Boolean read FAutoShapeHanifiRohingya write FAutoShapeHanifiRohingya;

function ApplyNkoGSUBPositional(const S: UnicodeString): UnicodeString;

function ApplyAdlamGSUBPositional(const S: UnicodeString): UnicodeString;

function ApplyHanifiRohingyaGSUBPositional(const S: UnicodeString): UnicodeString;

function ApplyThaiLaoReorder(const S: UnicodeString): UnicodeString;

function ApplyHebrewReorder(const S: UnicodeString): UnicodeString;

function ApplyJavaneseReorder(const S: UnicodeString): UnicodeString;

function GetMeeteiMayekCategory(CP: Cardinal): Integer;

function ApplyMeeteiMayekReorder(const Wide: UnicodeString): UnicodeString;

function ApplyTaiVietReorder(const S: UnicodeString): UnicodeString;

 

Covered APIs

API使用注意事項
AutoShapeNkoOpt-in property,會將 N'Ko producer-side GSUB cursive shaping 連接到 text output
AutoShapeAdlamOpt-in property that connects Adlam producer-side GSUB cursive shaping to text output
AutoShapeHanifiRohingyaOpt-in property that connects Hanifi Rohingya producer-side GSUB cursive shaping to text output
ApplyNkoGSUBPositionalApplies N'Ko joining-position analysis and font positional GSUB features for RTL cursive output
ApplyAdlamGSUBPositionalApplies Adlam SMP joining-position analysis and font positional GSUB features for RTL cursive output
ApplyHanifiRohingyaGSUBPositionalApplies Hanifi Rohingya joining-position analysis and font positional GSUB features for RTL cursive output
ApplyThaiLaoReorderApplies Thai/Lao SARA AM decomposition and canonical mark ordering before glyph mapping
ApplyHebrewReorderOrders Hebrew marks by canonical combining class before RTL output and GPOS mark placement
ApplyJavaneseReorderMoves Javanese pre-base vowel signs before the consonant cluster before glyph mapping
GetMeeteiMayekCategoryReturns the Meetei Mayek shaping category used by the reorder helper
ApplyMeeteiMayekReorderApplies Meetei Mayek Brahmic-style syllable reorder before glyph mapping
ApplyTaiVietReorderApplies Tai Viet visual-order-left vowel and mark ordering before glyph mapping
sfThaiLaoReorder在 cmap-to-GID mapping 前啟用 Thai/Lao SARA AM decomposition 與 tone-mark ordering
sfHebrewReorderOrders Hebrew niqqud and points by canonical combining class before RTL output and mark placement
sfJavaneseShapingEnables Javanese pre-base vowel-sign reorder before glyph mapping
sfTaiVietReorder在 cmap-to-GID mapping 前啟用 Tai Viet visual-order-left vowel 與 mark ordering
sfMeeteiMayekShaping在 cmap-to-GID mapping 前啟用 Meetei Mayek syllable reorder
sfKhmerShaping在 cmap-to-GID mapping 前啟用 Khmer pre-base vowel 與 cluster reorder
sfMyanmarShaping在 cmap-to-GID mapping 前啟用 Myanmar kinzi、pre-base vowel、medial 與 mark reorder

 

使用注意事項

AutoShapeNko、AutoShapeAdlam 與 AutoShapeHanifiRohingya 會將 RTL cursive GSUB positional paths 連接到 text output。sfThaiLaoReorder 會分解 SARA AM 並排序 tone marks,sfHebrewReorder 會在 mark placement 前依 canonical combining class 排序 niqqud,而 Javanese、Tai Viet、Meetei Mayek、Khmer 與 Myanmar flags 會在 cmap-to-GID mapping 前 normalize script-specific cluster order

 

請參閱: International Script Shaping Tibetan/Mongolian/Syriac shaping methods ShapingFeatures