import type { BidiClass, Category, CharacterSetType } from "./enums.js"; /** * Character data */ export type Character = { /** Numeric character code (a non-negative integer) */ code: number; /** Character name (ASCII only) */ name: string; /** * General Category * * See [General Category Values](https://www.unicode.org/reports/tr44/tr44-36.html#General_Category_Values) for more information. */ cat: Category; /** Canonical combining class (missing if == 0 "not reordered") */ comb?: number; /** * Bidirectional Class Values * * See [Bidi Category Values](https://www.unicode.org/reports/tr44/tr44-36.html#Bidi_Class_Values) for more information. */ bidi: BidiClass; /** * Decomposition Mapping Type * * See [Character Decomposition Mapping](https://www.unicode.org/reports/tr44/tr44-36.html#Character_Decomposition_Mappings) for more information. */ decompType?: string; /** * Decomposition Mapping * * (Combined with `decompType`) * * See [Character Decomposition Mapping](https://www.unicode.org/reports/tr44/tr44-36.html#Character_Decomposition_Mappings) for more information. */ decomp?: number[]; /** Numeric value of character (may be a fraction, so it not unevaluated) */ num?: string; /** True if character is mirrored in bidirectional text (missing otherwise) */ bidiMirror?: boolean; /** Simple mirror code mapping */ mirrorCode?: number; /** * Old name as published in Unicode 1.0 or ISO 6429 names for control functions. * * > (Obsolete as of 6.2.0) */ oldName?: string; /** Simple uppercase mapping */ upper?: number; /** Simple lowercase mapping */ lower?: number; /** Simple titlecase mapping */ title?: number; /** * Character Age * * The Age property indicates the first version in which a particular Unicode character was assigned. * * See [Character Age](https://www.unicode.org/reports/tr44/tr44-36.html#Character_Age) for more information. */ age: string; }; /** * Character base data */ export type CharacterBaseSet = { /** Block name */ blockName: CharacterSetType; /** Start code */ startCode: number; /** End code */ endCode: number; /** Characters */ characters: Character[]; }; /** * Character set data */ export type CharacterSet = CharacterBaseSet & { /** Characters */ characters: Character[]; }; //# sourceMappingURL=types.d.ts.map