THotPDF Script Shaping Preprocess Methods

THotPDF API reference

 

THotPDF Methods  Auto Shaping  GSUB

Documents the current script-level preprocess and RTL cursive helpers for N'Ko, Adlam, Hanifi Rohingya, Thai/Lao, Hebrew, Javanese, Tai Viet, Meetei Mayek, Khmer, and Myanmar text

 

Delphi syntax

property AutoShapeNko: Boolean read FAutoShapeNko write FAutoShapeNko;

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

APIUsage notes
AutoShapeNkoEnables N'Ko producer-side GSUB cursive shaping
AutoShapeAdlamEnables Adlam producer-side GSUB cursive shaping
AutoShapeHanifiRohingyaEnables Hanifi Rohingya producer-side GSUB cursive shaping
ApplyNkoGSUBPositionalApplies N'Ko joining-position analysis and font positional GSUB features
ApplyAdlamGSUBPositionalApplies Adlam SMP joining-position analysis and font positional GSUB features
ApplyHanifiRohingyaGSUBPositionalApplies Hanifi Rohingya joining-position analysis and font positional GSUB features
ApplyThaiLaoReorderApplies Thai/Lao SARA AM decomposition and mark ordering
ApplyHebrewReorderApplies Hebrew mark ordering before RTL output and GPOS mark placement
ApplyJavaneseReorderApplies Javanese pre-base vowel reorder
GetMeeteiMayekCategoryReturns the Meetei Mayek shaping category
ApplyMeeteiMayekReorderApplies Meetei Mayek syllable reorder
ApplyTaiVietReorderApplies Tai Viet vowel and mark ordering
sfThaiLaoReorderEnables Thai/Lao preprocessing
sfHebrewReorderEnables Hebrew preprocessing
sfJavaneseShapingEnables Javanese preprocessing
sfTaiVietReorderEnables Tai Viet preprocessing
sfMeeteiMayekShapingEnables Meetei Mayek preprocessing
sfKhmerShapingEnables Khmer preprocessing
sfMyanmarShapingEnables Myanmar preprocessing

 

Usage notes

AutoShapeNko, AutoShapeAdlam, and AutoShapeHanifiRohingya connect RTL cursive GSUB positional paths to text output. The other flags normalise script-specific marks and clusters before cmap-to-GID mapping

 

See also: International Script Shaping Tibetan/Mongolian/Syriac shaping methods ShapingFeatures