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.

35 lines (34 loc) 1.22 kB
import { type Affiliation, type Essence } from "../../generate/index.js"; /** * An object mapping from affiliation and essence to their corresponding * diacritics. */ export declare const AFFILIATION_ESSENCE_DIACRITICS: { readonly NRM: { readonly CSL: ""; readonly ASO: "DIAG_BAR"; readonly VAR: "VERT_BAR"; readonly COA: "HORIZ_BAR"; }; readonly RPV: { readonly CSL: "HORIZ_WITH_BOTTOM_LINE"; readonly ASO: "VERT_WITH_LEFT_LINE"; readonly VAR: "CURVE_TO_TOP"; readonly COA: "CURVE_TO_BOTTOM"; }; }; /** * Creates the top-right diacritic of a primary character as an SVG path. * * @param props Properties that modify the diacritic. * @returns An `SVGPathElement` containing the diacritic, or `undefined` if no * diacritic is needed. */ export declare function PrimaryTopRight({ handwritten, affiliation, essence, }: { /** Whether this item is handwritten. */ readonly handwritten?: boolean | undefined; /** The affiliation of this character. */ readonly affiliation?: Affiliation | undefined; /** The essence of this character. */ readonly essence?: Essence | undefined; }): SVGPathElement | undefined;