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.

32 lines (31 loc) 1.22 kB
import type { Perspective } from "../ca/index.js"; /** An object mapping from perspectives to letters used in referents. */ export declare const REFERENTIAL_PERSPECTIVE_TO_ITHKUIL_MAP: { readonly M: ""; readonly G: "ļ"; readonly N: "ç"; readonly A: "w"; }; /** An object mapping from perspectives to alternate letters used in referents. */ export declare const REFERENTIAL_PERSPECTIVE_TO_ITHKUIL_MAP_ALT: { readonly M: ""; readonly G: "tļ"; readonly N: "x"; readonly A: "y"; }; /** * Converts a perspective into a letter affixed onto a referential. This returns * the first perspective code (ļ, ç, or w). * * @param perspective The perspective to be converted. * @returns Romanized Ithkuilic text representing the perspective. */ export declare function referentialPerspectiveToIthkuil(perspective: Perspective): string; /** * Converts a perspective into a letter affixed onto a referential. This returns * the second perspective code (tļ, x, or y). * * @param perspective The perspective to be converted. * @returns Romanized Ithkuilic text representing the perspective. */ export declare function referentialPerspectiveToIthkuilAlt(perspective: Perspective): string;