@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.
40 lines (39 loc) • 1.22 kB
TypeScript
import { type CAShortcutType } from "./ca-shortcut-type.js";
import { type ConcatenationType } from "./concatenation-type.js";
export * from "./ca-shortcut-type.js";
export * from "./concatenation-type.js";
/** Information directly pertaining to Slot I. */
export type SlotI = {
/** The concatenation type of the formative. */
readonly concatenationType: ConcatenationType;
/** The Ca shortcut type of the formative. */
readonly caShortcutType: CAShortcutType;
};
/**
* An object mapping from concatenation types and Ca shortcut types to their
* Ithkuilic translations.
*/
export declare const SLOT_I_MAP: {
readonly none: {
readonly none: "";
readonly w: "w";
readonly y: "y";
};
readonly 1: {
readonly none: "h";
readonly w: "hl";
readonly y: "hm";
};
readonly 2: {
readonly none: "hw";
readonly w: "hr";
readonly y: "hn";
};
};
/**
* Converts Slot I of a formative into Ithkuil.
*
* @param slot The concatenation type and Ca shortcut type of the formative.
* @returns Romanized Ithkuilic text representing Slot I of the formative.
*/
export declare function slotIToIthkuil(slot: SlotI): string;