מתודות שינוי סדר ועיצוב GSUB אינדי של THotPDF

THotPDF API reference

THotPDF Methods  Auto Shaping  GSUB

מתעד את ממשק שינוי הסדר ועיצוב ה-GSUB האינדי, כולל עוזרי שינוי סדר לכל כתב, המנתב (dispatcher), ונתיב ייצור Indic GSUB של v2.167

תחביר Delphi

function ApplyIndicReorder(const Wide: UnicodeString): UnicodeString; overload;

function ApplyIndicReorder(const Wide: UnicodeString; const Features: THPDFShapingFeatures): UnicodeString; overload;

function ApplyIndicShaping(const S: UnicodeString): UnicodeString;

function IndicShapeToGIDs(const S: UnicodeString): TGSUBLookupArray;

function ApplyDevanagariReorder(const Wide: UnicodeString): UnicodeString;

function ApplyBengaliReorder(const Wide: UnicodeString): UnicodeString;

function ApplyGujaratiReorder(const Wide: UnicodeString): UnicodeString;

function ApplyTamilReorder(const Wide: UnicodeString): UnicodeString;

function ApplyTeluguReorder(const Wide: UnicodeString): UnicodeString;

function ApplyKannadaReorder(const Wide: UnicodeString): UnicodeString;

function ApplyMalayalamReorder(const Wide: UnicodeString): UnicodeString;

function ApplySinhalaReorder(const Wide: UnicodeString): UnicodeString;

function ApplyKhmerReorder(const Wide: UnicodeString): UnicodeString;

function ApplyMyanmarReorder(const Wide: UnicodeString): UnicodeString;

ממשקי API מכוסים

APIUsage notes
ApplyIndicReorderDispatches script-specific Indic reorder helpers before GSUB shaping or text output. The parameterless form keeps full-script coverage; the overload taking a THPDFShapingFeatures set reorders only the scripts whose shaping flag is present, matching the per-flag isolation applied during text output
ApplyIndicShapingApplies reorder plus the Indic GSUB feature chain and returns synthetic-codepoint text for output
IndicShapeToGIDsReturns the shaped glyph-ID sequence for an Indic string without emitting PDF text
GetDevanagariCategoryClassifies Devanagari codepoints for syllable and reorder decisions
GetBengaliCategoryClassifies Bengali codepoints for Indic reorder decisions
GetGujaratiCategoryClassifies Gujarati codepoints for Indic reorder decisions
GetTamilCategoryClassifies Tamil codepoints for Indic reorder decisions
GetTeluguCategoryClassifies Telugu codepoints for Indic reorder decisions
GetKannadaCategoryClassifies Kannada codepoints for Indic reorder decisions
GetMalayalamCategoryClassifies Malayalam codepoints for Indic reorder decisions
GetSinhalaCategoryClassifies Sinhala codepoints for Indic reorder decisions
GetKhmerCategoryClassifies Khmer codepoints for the shared complex-script reorder path
GetMyanmarCategoryClassifies Myanmar codepoints for the shared complex-script reorder path
sfIndicShapingRuns the conservative Indic syllable reorder path before text output without forcing full GSUB feature application
sfIndicGSUBRuns the Indic reorder and GSUB feature chain, then emits shaped glyph IDs through synthetic codepoints

הערות שימוש

sfIndicShaping מבצע פלט של שינוי סדר בלבד ונשאר האפשרות השמרנית. sfIndicGSUB משנה את סדר הגליפים בכל הברה, מחיל את שרשרת תכונות ה-OpenType Indic, פולט גליפי GID מעוצבים דרך נקודות קוד סינתטיות, ונסוג לנתיב שינוי הסדר כאשר לגופן חסר כתב ה-GSUB הרלוונטי

See also: International Script Shaping ShapingFeatures GSUB lookup methods