UNPKG

unicode-shaper

Version:

Shape unicode text so that renderers like WebGL and WebGPU can properly display the glyphs.

21 lines 814 B
/** * Check if a character is a "Khmer" unicode character * @param c - input unicode character * @returns - True if Khmer */ export declare function isKhmer(c: number): boolean; /** * Shape/Reordering characters * The shaping engine inserts a placeholder glyph (U+25CC) wherever * combining marks occur without a valid base. The character U+25CC * belongs to the class of generic bases (GB). Well-formed Khmer * character clusters are defined as follows: * * Cases: * 1) Consonant based syllables: Cons + {COENG + (Cons | IndV)} + [PreV | BlwV] + [RegShift] + [AbvV] + {AbvS} + [PstV] + [PstS] * * Ex. រាជធានីភ្នំពេញ * @param input - input unicode buffer to shape in place */ export declare function shapeKhmer(input: number[]): void; //# sourceMappingURL=khmer.d.ts.map