UNPKG

@zsnout/ithkuil

Version:

A set of tools which can generate and parse romanized Ithkuil text and which can generate Ithkuil script from text and JSON data.

31 lines (30 loc) 1.18 kB
/** An extension. */ export type Extension = "DEL" | "PRX" | "ICP" | "ATV" | "GRA" | "DPL"; /** An array containing all extensions. */ export declare const ALL_EXTENSIONS: readonly Extension[]; /** An object mapping from extensions to their names. */ export declare const EXTENSION_TO_NAME_MAP: { readonly DEL: "Delimitive"; readonly PRX: "Proximal"; readonly ICP: "Inceptive"; readonly ATV: "Attenuative"; readonly GRA: "Graduative"; readonly DPL: "Depletive"; }; /** An object mapping from extensions to their Ithkuilic translations. */ export declare const EXTENSION_TO_ITHKUIL_MAP: { readonly DEL: readonly ["", ""]; readonly PRX: readonly ["t", "d"]; readonly ICP: readonly ["k", "g"]; readonly ATV: readonly ["p", "b"]; readonly GRA: readonly ["g", "gz"]; readonly DPL: readonly ["b", "bz"]; }; /** * Converts an extension into Ithkuil. * * @param extension The extension to be converted. * @param isCAUniplex Whether the Ca affix complex is marked Uniplex. * @returns Romanized Ithkuilic text representing the extension. */ export declare function extensionToIthkuil(extension: Extension, isCAUniplex: boolean): string;