THotPDF Indic-herschikking en GSUB-shapingmethoden

THotPDF API-referentie

 

THotPDF Methods  Automatische vormingspijplijn (fase 8)  OpenType GSUB-vervangingsengine

Documenteert het Indic-herschik- en GSUB-shapingoppervlak, inclusief de herschikhelpers per script, de dispatcher en het Indic-GSUB-producerpad uit v2.167

 

Delphi-syntax

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;

 

Covered APIs

APIGebruiksopmerkingen
ApplyIndicReorderStuurt de scriptspecifieke Indic-herschikhelpers aan vóór GSUB-shaping of tekstuitvoer. De parameterloze vorm dekt alle scripts; de overload met een THPDFShapingFeatures-set herschikt alleen de scripts waarvan de shaping-vlag aanwezig is, conform de per-vlag-isolatie die tijdens tekstuitvoer wordt toegepast
ApplyIndicShapingPast herschikking plus de Indic-GSUB-functieketen toe en geeft synthetische-codepoint-tekst voor de uitvoer terug
IndicShapeToGIDsGeeft de gevormde glyph-ID-reeks voor een Indic-string terug zonder PDF-tekst uit te geven
ApplyDevanagariReorderPast de syllable-reorder-pre-pass voor Devanagari toe vóór cmap en GSUB-lookup
ApplyBengaliReorderPast de syllable-reorder-pre-pass voor Bengali toe vóór cmap en GSUB-lookup
ApplyGujaratiReorderPast de syllable-reorder-pre-pass voor Gujarati toe vóór cmap en GSUB-lookup
ApplyTamilReorderPast de syllable-reorder-pre-pass voor Tamil toe vóór cmap en GSUB-lookup
ApplyTeluguReorderPast de syllable-reorder-pre-pass voor Telugu toe vóór cmap en GSUB-lookup
ApplyKannadaReorderPast de syllable-reorder-pre-pass voor Kannada toe vóór cmap en GSUB-lookup
ApplyMalayalamReorderPast de syllable-reorder-pre-pass voor Malayalam toe vóór cmap en GSUB-lookup
ApplySinhalaReorderPast de syllable-reorder-pre-pass voor Sinhala toe vóór cmap en GSUB-lookup
ApplyKhmerReorderPast de syllable-reorder-pre-pass voor Khmer toe vóór cmap en GSUB-lookup
ApplyMyanmarReorderPast de syllable-reorder-pre-pass voor Myanmar toe vóór cmap en GSUB-lookup
GetDevanagariCategoryClassificeert Devanagari-codepoints voor lettergreep- en herschikkingsbeslissingen
GetBengaliCategoryClassificeert Bengali-codepoints voor Indic-herschikkingsbeslissingen
GetGujaratiCategoryClassificeert Gujarati-codepoints voor Indic-herschikkingsbeslissingen
GetTamilCategoryClassificeert Tamil-codepoints voor Indic-herschikkingsbeslissingen
GetTeluguCategoryClassificeert Telugu-codepoints voor Indic-herschikkingsbeslissingen
GetKannadaCategoryClassificeert Kannada-codepoints voor Indic-herschikkingsbeslissingen
GetMalayalamCategoryClassificeert Malayalam-codepoints voor Indic-herschikkingsbeslissingen
GetSinhalaCategoryClassificeert Sinhala-codepoints voor Indic-herschikkingsbeslissingen
GetKhmerCategoryClassificeert Khmer-codepoints voor het gedeelde complex-script-herschikpad
GetMyanmarCategoryClassificeert Myanmar-codepoints voor het gedeelde complex-script-herschikpad
sfIndicShapingDraait het conservatieve Indic-syllabeherordeningspad vóór tekstuitvoer zonder volledige GSUB-functietoepassing af te dwingen
sfIndicGSUBDraait de Indic-herordening en de GSUB-functieketen en geeft vervolgens gevormde glyph-ID's uit via synthetische codepoints

 

Gebruiksopmerkingen

sfIndicShaping doet alleen-herschik-uitvoer en blijft de conservatieve optie. sfIndicGSUB herschikt elke lettergreep, past de OpenType-Indic-functieketen toe, geeft gevormde GID's via synthetische codepoints uit en schakelt terug naar het herschikpad wanneer het font het relevante GSUB-script mist

Sinhala diga kombuva (U+0DDA) plaatst kombuva vóór de basis en zijn tweede component erna. Het GSUB-pad gebruikt de eigen post-basevorm van het lettertype als die beschikbaar is. Vooraf samengestelde en canoniek ontlede invoer volgen dezelfde plaatsingsregels

Bengaalse reph volgt klinkers onder de basis en staat vóór rechtse klinkers, inclusief de rechtercomponent van gesplitste klinkers. Gujarati-reph volgt klinkers boven de basis en staat vóór klinkers onder de basis en rechtse klinkers

Bij Telugu en Sinhala herkent het herordeningspad reph alleen wanneer op syllable-initiële Ra en halant een ZWJ en een medeklinker volgen. Het GSUB-pad vereist daarnaast een passende lettertypesubstitutie en behoudt de gewone conjunctvolgorde wanneer het lettertype die niet heeft

Het Indic-GSUB-pad beperkt reph-substitutie tot de initiële reph-reeks van de lettergreep, half forms tot geschikte pre-base-glyphs en post-base forms tot het post-base-gebied. Contextuele substituties respecteren dezelfde posities en ingevoegde glyphs erven de positie van de glyph die ze vervangen

 

Zie ook: International Script Shaping ShapingFeatures GSUB-opzoekmethoden