THotPDF Indic Reorder and GSUB Shaping Methods

THotPDF API 참조

 

THotPDF 메서드  자동 shaping  GSUB

script별 재정렬 헬퍼, dispatcher, v2.167 Indic GSUB 생산자 경로를 포함한 Indic 재정렬·GSUB shaping 표면을 문서화합니다

 

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

API사용 참고 사항
ApplyIndicReorderGSUB 셰이핑이나 텍스트 출력 전에 스크립트별 Indic 재배열 헬퍼를 호출합니다. 매개변수가 없는 형식은 모든 스크립트를 대상으로 하고, THPDFShapingFeatures 집합을 받는 오버로드는 셰이핑 플래그가 지정된 스크립트만 재배열하여, 텍스트 출력 중에 적용되는 플래그별 격리와 동일하게 동작합니다
ApplyIndicShaping재정렬과 Indic GSUB feature 체인을 적용하고 출력용 합성 codepoint 텍스트를 반환합니다
IndicShapeToGIDsIndic 문자열의 shaped glyph-ID 시퀀스를 PDF 텍스트 출력 없이 반환합니다
ApplyDevanagariReordercmap과 GSUB 조회 전에 데바나가리 음절 재정렬 사전 단계를 적용합니다
ApplyBengaliReordercmap과 GSUB 조회 전에 벵골어 음절 재정렬 사전 단계를 적용합니다
ApplyGujaratiReordercmap과 GSUB 조회 전에 구자라트어 음절 재정렬 사전 단계를 적용합니다
ApplyTamilReordercmap과 GSUB 조회 전에 타밀어 음절 재정렬 사전 단계를 적용합니다
ApplyTeluguReordercmap과 GSUB 조회 전에 텔루구어 음절 재정렬 사전 단계를 적용합니다
ApplyKannadaReordercmap과 GSUB 조회 전에 칸나다어 음절 재정렬 사전 단계를 적용합니다
ApplyMalayalamReordercmap과 GSUB 조회 전에 말라얄람어 음절 재정렬 사전 단계를 적용합니다
ApplySinhalaReordercmap과 GSUB 조회 전에 싱할라어 음절 재정렬 사전 단계를 적용합니다
ApplyKhmerReordercmap과 GSUB 조회 전에 크메르어 음절 재정렬 사전 단계를 적용합니다
ApplyMyanmarReordercmap과 GSUB 조회 전에 미얀마어 음절 재정렬 사전 단계를 적용합니다
GetDevanagariCategory음절·재정렬 판단을 위해 데바나가리 codepoint를 분류합니다
GetBengaliCategoryIndic 재정렬 판단을 위해 벵골어 codepoint를 분류합니다
GetGujaratiCategoryIndic 재정렬 판단을 위해 구자라트어 codepoint를 분류합니다
GetTamilCategoryIndic 재정렬 판단을 위해 타밀어 codepoint를 분류합니다
GetTeluguCategoryIndic 재정렬 판단을 위해 텔루구어 codepoint를 분류합니다
GetKannadaCategoryIndic 재정렬 판단을 위해 칸나다어 codepoint를 분류합니다
GetMalayalamCategoryIndic 재정렬 판단을 위해 말라얄람어 codepoint를 분류합니다
GetSinhalaCategoryIndic 재정렬 판단을 위해 싱할라어 codepoint를 분류합니다
GetKhmerCategory공용 complex-script 재정렬 경로용으로 크메르어 codepoint를 분류합니다
GetMyanmarCategory공용 complex-script 재정렬 경로용으로 미얀마어 codepoint를 분류합니다
sfIndicShaping전체 GSUB feature 적용을 강요하지 않으면서 텍스트 출력 전에 보수적인 Indic 음절 재정렬 경로를 실행합니다
sfIndicGSUBIndic 재정렬과 GSUB feature 체인을 실행한 뒤 shaped glyph ID를 합성 codepoint로 출력합니다

 

사용 참고 사항

sfIndicShaping은 재정렬 전용 출력으로 남아 있는 보수적 옵션입니다. sfIndicGSUB는 각 음절을 재정렬하고 OpenType Indic feature 체인을 적용하며 shaped GID를 합성 codepoint로 출력하고, 폰트에 해당 GSUB script이 없으면 재정렬 경로로 격하됩니다

싱할라어 diga kombuva(U+0DDA)는 kombuva를 기저 앞에, 두 번째 구성 요소를 기저 뒤에 배치합니다. GSUB 경로는 글꼴에 전용 기저 뒤 형태가 있으면 그것을 사용합니다. 미리 조합된 입력과 정규 분해된 입력은 같은 배치 규칙을 따릅니다

벵골어 reph는 기저 아래 모음 뒤를 따르고, 오른쪽 모음(분리 모음의 오른쪽 구성 요소 포함) 앞에 놓입니다. 구자라트어 reph는 기저 위 모음 뒤를 따르고, 기저 아래 및 오른쪽 모음 앞에 놓입니다

텔루구어와 싱할라어에서 재정렬 경로는 음절 첫머리의 Ra와 halant 뒤에 ZWJ와 자음이 이어질 때만 reph를 인식합니다. GSUB 경로는 일치하는 글꼴 치환도 요구하며, 글꼴에 그것이 없으면 일반 연결자 순서를 유지합니다

Indic GSUB 경로는 reph 치환을 음절 첫머리의 reph 시퀀스로, half form을 자격 있는 pre-base glyph로, post-base form을 post-base 영역으로 한정합니다. 문맥 치환도 같은 위치를 따르며, 삽입된 glyph는 대체하는 glyph의 위치를 물려받습니다

 

참고: International Script Shaping ShapingFeatures GSUB lookup methods