mathy-unicode-characters
Version:
JavaScript / TypeScript utility to translate mathy Unicode characters to and from LaTeX, Mathematica, Wolfram, Elsevier Grid, etc.
52 lines (51 loc) • 1.46 kB
TypeScript
import { UnicodeIdentification } from "./characters/unicodeIdentification";
export interface Surrogate {
mathvariant: string;
ref: string;
}
export interface Entity {
id: string;
set: string;
desc?: string;
multipleShapesExcluded?: boolean;
xref?: string;
}
export interface Font {
name: string;
pos: number | "40)";
}
export declare const startingU: RegExp;
export declare function determineHex(u: UnicodeCharacter, withPrefix?: boolean): string;
export declare function prettyPrintCodePoint(u: UnicodeCharacter): string;
export interface UnicodeCharacter {
_id: string;
description: string;
dec: [number] | [number, number] | [number, number, number];
descriptionUnicodeVersion?: string;
mode?: string;
type?: string;
image?: string;
afii?: string;
latex?: string;
varlatex?: string;
mathlatex?: string;
ams?: string;
aps?: string;
acs?: string;
aip?: string;
ieee?: string;
springer?: string;
wolfram?: string;
wolframId?: string;
elsevierGrid?: string;
elsevierElsrender?: string;
elsevierEnt?: string;
elsevierDesc?: string;
comment?: string;
bmp?: string;
entity?: Entity[];
font?: Font[];
surrogate?: Surrogate;
}
export declare function normalizeStrings(c: UnicodeCharacter): string[];
export declare function getUnicodeIdentifierFromDecimal(...codepoints: number[]): UnicodeIdentification | undefined;