mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 17:05:34 +00:00
11 KiB
11 KiB
API Report File for "@keymanapp/kmc-ldml"
Do not edit this file. It is a report generated by API Extractor.
import { CompilerCallbacks } from '@keymanapp/common-types';
import { CompilerEvent } from '@keymanapp/common-types';
import { CompilerOptions } from '@keymanapp/common-types';
import { KeymanCompiler } from '@keymanapp/common-types';
import { KeymanCompilerArtifactOptional } from '@keymanapp/common-types';
import { KeymanCompilerArtifacts } from '@keymanapp/common-types';
import { KeymanCompilerResult } from '@keymanapp/common-types';
import { KMXBuilder } from '@keymanapp/common-types';
import { KMXPlus } from '@keymanapp/common-types';
import { LDMLKeyboard } from '@keymanapp/common-types';
import { LDMLKeyboardTestDataXMLSourceFile } from '@keymanapp/common-types';
import { LDMLKeyboardXMLSourceFileReaderOptions } from '@keymanapp/common-types';
import { SectionIdent } from '@keymanapp/ldml-keyboard-constants';
import { TouchLayout } from '@keymanapp/common-types';
import { UnicodeSet } from '@keymanapp/common-types';
import { UnicodeSetParser } from '@keymanapp/common-types';
import { VisualKeyboard } from '@keymanapp/common-types';
export { KMXBuilder }
// @public (undocumented)
export class KMXPlusMetadataCompiler {
// Warning: (ae-forgotten-export) The symbol "KMXPlusData" needs to be exported by the entry point main.d.ts
// Warning: (ae-forgotten-export) The symbol "KEYBOARD" needs to be exported by the entry point main.d.ts
static addKmxMetadata(kmxplus: KMXPlusData, keyboard: KEYBOARD, options: LdmlCompilerOptions): void;
}
// @public (undocumented)
export interface LdmlCompilerOptions extends CompilerOptions {
readerOptions: LDMLKeyboardXMLSourceFileReaderOptions;
}
// @public (undocumented)
export class LdmlKeyboardCompiler implements KeymanCompiler {
compile(source: LDMLKeyboardXMLSourceFile, postValidate?: boolean): Promise<KMXPlus.KMXPlusFile>;
getUsetParser(): Promise<UnicodeSetParser>;
// (undocumented)
init(callbacks: CompilerCallbacks, options: LdmlCompilerOptions): Promise<boolean>;
// Warning: (ae-forgotten-export) The symbol "LDMLKeyboardXMLSourceFile" needs to be exported by the entry point main.d.ts
load(filename: string): LDMLKeyboardXMLSourceFile | null;
loadTestData(filename: string): LDMLKeyboardTestDataXMLSourceFile | null;
// Warning: (ae-forgotten-export) The symbol "LdmlKeyboardCompilerResult" needs to be exported by the entry point main.d.ts
//
// (undocumented)
run(inputFilename: string, outputFilename?: string): Promise<LdmlKeyboardCompilerResult>;
validate(source: LDMLKeyboardXMLSourceFile): Promise<boolean>;
// Warning: (ae-forgotten-export) The symbol "LdmlKeyboardCompilerArtifacts" needs to be exported by the entry point main.d.ts
//
// (undocumented)
write(artifacts: LdmlKeyboardCompilerArtifacts): Promise<boolean>;
}
// @public (undocumented)
export class LdmlKeyboardCompilerMessages {
// (undocumented)
static ERROR_CantReferenceSetFromUnicodeSet: number;
// (undocumented)
static Error_CantReferenceSetFromUnicodeSet: (o: {
id: string;
}) => CompilerEvent;
// (undocumented)
static ERROR_DisplayIsRepeated: number;
// (undocumented)
static Error_DisplayIsRepeated: (o: {
output?: string;
keyId?: string;
}) => CompilerEvent;
// (undocumented)
static ERROR_DisplayNeedsToOrId: number;
// (undocumented)
static Error_DisplayNeedsToOrId: (o: {
output?: string;
keyId?: string;
}) => CompilerEvent;
// (undocumented)
static ERROR_DuplicateTransformsType: number;
// (undocumented)
static Error_DuplicateTransformsType: (o: {
types: string[];
}) => CompilerEvent;
// (undocumented)
static ERROR_DuplicateVariable: number;
// (undocumented)
static Error_DuplicateVariable: (o: {
ids: string;
}) => CompilerEvent;
// (undocumented)
static ERROR_EmptyTransformGroup: number;
// (undocumented)
static Error_EmptyTransformGroup: () => CompilerEvent;
// (undocumented)
static ERROR_ExcessHardware: number;
// (undocumented)
static Error_ExcessHardware: (o: {
formId: string;
}) => CompilerEvent;
// (undocumented)
static ERROR_GestureKeyNotFoundInKeyBag: number;
// (undocumented)
static Error_GestureKeyNotFoundInKeyBag: (o: {
keyId: string;
parentKeyId: string;
attribute: string;
}) => CompilerEvent;
// (undocumented)
static ERROR_HardwareLayerHasTooManyRows: number;
// (undocumented)
static Error_HardwareLayerHasTooManyRows: () => CompilerEvent;
// (undocumented)
static ERROR_IllegalCharacters: number;
// (undocumented)
static Error_IllegalCharacters: (o: {
count: number;
lowestCh: number;
}) => CompilerEvent;
// (undocumented)
static ERROR_InvalidFile: number;
// (undocumented)
static Error_InvalidFile: (o: {
errorText: string;
}) => CompilerEvent;
// (undocumented)
static ERROR_InvalidHardware: number;
// (undocumented)
static Error_InvalidHardware: (o: {
formId: string;
}) => CompilerEvent;
// (undocumented)
static ERROR_InvalidLocale: number;
// (undocumented)
static Error_InvalidLocale: (o: {
tag: string;
}) => CompilerEvent;
// (undocumented)
static ERROR_InvalidModifier: number;
// (undocumented)
static Error_InvalidModifier: (o: {
layer: string;
modifiers: string;
}) => CompilerEvent;
// (undocumented)
static ERROR_InvalidQuadEscape: number;
// (undocumented)
static Error_InvalidQuadEscape: (o: {
cp: number;
}) => CompilerEvent;
// (undocumented)
static ERROR_InvalidScanCode: number;
// (undocumented)
static Error_InvalidScanCode: (o: {
form?: string;
codes?: string[];
}) => CompilerEvent;
// (undocumented)
static ERROR_InvalidTransformsType: number;
// (undocumented)
static Error_InvalidTransformsType: (o: {
types: string[];
}) => CompilerEvent;
// (undocumented)
static ERROR_InvalidVersion: number;
// (undocumented)
static Error_InvalidVersion: (o: {
version: string;
}) => CompilerEvent;
// (undocumented)
static ERROR_KeyMissingToGapOrSwitch: number;
// (undocumented)
static Error_KeyMissingToGapOrSwitch: (o: {
keyId: string;
}) => CompilerEvent;
// (undocumented)
static ERROR_KeyNotFoundInKeyBag: number;
// (undocumented)
static Error_KeyNotFoundInKeyBag: (o: {
keyId: string;
col: number;
row: number;
layer: string;
form: string;
}) => CompilerEvent;
// (undocumented)
static ERROR_MissingFlicks: number;
// (undocumented)
static Error_MissingFlicks: (o: {
flickId: string;
id: string;
}) => CompilerEvent;
// (undocumented)
static ERROR_MissingMarkers: number;
// (undocumented)
static Error_MissingMarkers: (o: {
ids: string[];
}) => CompilerEvent;
// (undocumented)
static ERROR_MissingSetVariable: number;
// (undocumented)
static Error_MissingSetVariable: (o: {
id: string;
}) => CompilerEvent;
// (undocumented)
static ERROR_MissingStringVariable: number;
// (undocumented)
static Error_MissingStringVariable: (o: {
id: string;
}) => CompilerEvent;
// (undocumented)
static ERROR_MissingUnicodeSetVariable: number;
// (undocumented)
static Error_MissingUnicodeSetVariable: (o: {
id: string;
}) => CompilerEvent;
// (undocumented)
static ERROR_MixedTransformGroup: number;
// (undocumented)
static Error_MixedTransformGroup: () => CompilerEvent;
// (undocumented)
static ERROR_MustBeAtLeastOneLayerElement: number;
// (undocumented)
static Error_MustBeAtLeastOneLayerElement: () => CompilerEvent;
// (undocumented)
static ERROR_NeedSpacesBetweenSetVariables: number;
// (undocumented)
static Error_NeedSpacesBetweenSetVariables: (o: {
item: string;
}) => CompilerEvent;
// (undocumented)
static ERROR_RowOnHardwareLayerHasTooManyKeys: number;
// (undocumented)
static Error_RowOnHardwareLayerHasTooManyKeys: (o: {
row: number;
hardware: string;
modifiers: string;
}) => CompilerEvent;
// (undocumented)
static ERROR_UnparseableReorderSet: number;
// (undocumented)
static Error_UnparseableReorderSet: (o: {
from: string;
set: string;
}) => CompilerEvent;
// (undocumented)
static ERROR_UnparseableTransformFrom: number;
// (undocumented)
static Error_UnparseableTransformFrom: (o: {
from: string;
message: string;
}) => CompilerEvent;
// (undocumented)
static FATAL_SectionCompilerFailed: number;
// (undocumented)
static Fatal_SectionCompilerFailed: (o: {
sect: string;
}) => CompilerEvent;
// (undocumented)
static HINT_CharClassImplicitDenorm: number;
// (undocumented)
static Hint_CharClassImplicitDenorm: (o: {
lowestCh: number;
}) => CompilerEvent;
// (undocumented)
static HINT_LocaleIsNotMinimalAndClean: number;
// (undocumented)
static Hint_LocaleIsNotMinimalAndClean: (o: {
sourceLocale: string;
locale: string;
}) => CompilerEvent;
// (undocumented)
static HINT_NormalizationDisabled: number;
// (undocumented)
static Hint_NormalizationDisabled: () => CompilerEvent;
// (undocumented)
static HINT_OneOrMoreRepeatedLocales: number;
// (undocumented)
static Hint_OneOrMoreRepeatedLocales: () => CompilerEvent;
// (undocumented)
static HINT_PUACharacters: number;
// (undocumented)
static Hint_PUACharacters: (o: {
count: number;
lowestCh: number;
}) => CompilerEvent;
// (undocumented)
static WARN_CharClassExplicitDenorm: number;
// (undocumented)
static Warn_CharClassExplicitDenorm: (o: {
lowestCh: number;
}) => CompilerEvent;
// (undocumented)
static WARN_CustomForm: number;
// (undocumented)
static Warn_CustomForm: (o: {
id: string;
}) => CompilerEvent;
// (undocumented)
static WARN_UnassignedCharacters: number;
// (undocumented)
static Warn_UnassignedCharacters: (o: {
count: number;
lowestCh: number;
}) => CompilerEvent;
}
// @public (undocumented)
export class LdmlKeyboardKeymanWebCompiler {
constructor(callbacks: CompilerCallbacks, options?: LdmlCompilerOptions);
// (undocumented)
compile(name: string, source: LDMLKeyboard.LDMLKeyboardXMLSourceFile): string;
// (undocumented)
compileTouchLayout(source: LDMLKeyboard.LDMLKeyboardXMLSourceFile): string;
// (undocumented)
compileVisualKeyboard(source: LDMLKeyboard.LDMLKeyboardXMLSourceFile): string;
}
// @public (undocumented)
export class LdmlKeyboardVisualKeyboardCompiler {
constructor(callbacks: CompilerCallbacks);
// (undocumented)
compile(source: LDMLKeyboard.LDMLKeyboardXMLSourceFile): VisualKeyboard.VisualKeyboard;
}
// @public (undocumented)
export class TouchLayoutCompiler {
// (undocumented)
compileToJavascript(source: LDMLKeyboard.LDMLKeyboardXMLSourceFile): TouchLayout.TouchLayoutFile;
}
// (No @packageDocumentation comment for this package)