UNPKG

unicode-shaper

Version:

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

23 lines 962 B
/** * Check if a character is a "Javanese" unicode character * @param c - input unicode character * @returns - True if Javanese */ export declare function isJavanese(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 Javanese * character clusters are defined as follows: * * Cases: * 1) Simple non-compounding cluster: < IV | P | D | S | R | WS | O | WJ > * 2) Cluster terminating in Halant: < C | GB > [VS] [N] (H C [VS] [N])* H * 3) Complex cluster: < C | GB > [VS] [N] (H C [VS] [N]) [MCR] [MCY] (VPre) (VAbv) (VBlw) (M)* * * Ex. ꦧꦺꦲꦏ꧀ꦠꦸꦩꦿꦥ꧀ꦲ​ * @param input - input unicode buffer to shape in place */ export declare function shapeJavanese(input: number[]): void; //# sourceMappingURL=javanese.d.ts.map