@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.
21 lines (20 loc) • 1.14 kB
TypeScript
import type { NumericAdjunct } from "../../generate/adjunct/numeric.js";
import { type ConstructableCharacter, type SecondaryCharacter } from "../index.js";
import { type NumeralCharacter } from "./index.js";
/**
* Converts a numeric adjunct into numeral characters.
*
* @param number The number to be converted.
* @param handwritten Whether the outputted characters should be handwritten.
* @returns A series of constructable characters.
*/
export declare function numericAdjunctToNumerals(number: NumericAdjunct, handwritten?: boolean | undefined): ConstructableCharacter<NumeralCharacter>[];
/**
* Converts a numeric Cs or Cr form into secondary characters.
*
* @param value The numeric value to write.
* @param getCx Gets the Cs or Cr form corresponding to a given numeric value.
* @param handwritten Whether or not to use the handwritten script.
* @returns An array of secondary characters, or undefined if impossible.
*/
export declare function numericCxToSecondaries(value: bigint, getCx: (x: bigint) => string | undefined, handwritten: boolean | undefined): ConstructableCharacter<SecondaryCharacter>[] | undefined;