UNPKG

unicode-shaper

Version:

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

22 lines 882 B
/** * Check if a character is a "buginese" unicode character * @param c - input unicode character * @returns - True if buginese */ export declare function isBuginese(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 Buginese * character clusters are defined as follows: * * Cases: * 1) Simple non-compounding cluster: < S | Rsv | WS | O | J | WJ > * 2) Clusters: < C | GB > [VS] (VPre)* (VAbv)* (VBlv)* (VPst)* [J] * * Ex. ᨔᨗᨔᨗᨊᨗᨊ * @param input - array of unicode characters to be shaped in place if the input contains buginese */ export declare function shapeBuginese(input: number[]): void; //# sourceMappingURL=buginese.d.ts.map