feat(developer): import KeylayoutXMLSourceFile

This commit is contained in:
Sabine 2025-08-19 17:35:03 +02:00
parent c505a5cf43
commit d8be6966f5
2 changed files with 7 additions and 1 deletions

View file

@ -57,4 +57,8 @@ export class ConverterMessages {
this.ERROR_UnsupportedCharactersDetected,
`Input file ${def(o.inputFilename)} contains unsupported character ('${def(o.output)}') on key ( ${def(o.key)}) at keyMap index ${def(o.keymap_index)}`,
);
static ERROR_InvalidFile = SevError | 0x0008;
static Error_InvalidFile = (o: { errorText: string; }) => m(
this.ERROR_InvalidFile, `The source file has an invalid structure: ${def(o.errorText)}`);
}

View file

@ -12,7 +12,9 @@ import { KmnFileWriter } from './kmn-file-writer.js';
import { KeylayoutFileReader } from './keylayout-file-reader.js';
import { ConverterMessages } from '../converter-messages.js';
import { ConverterArtifacts } from "../converter-artifacts.js";
import { ConverterToKmnArtifacts } from "../converter-artifacts.js";
import { ConverterToKmnArtifacts } from "../converter-artifacts.js"
import { KeylayoutXMLSourceFile } from '../../../common/web/utils/src/types/keylayout/keylayout-xml.js';
export interface ConverterResult extends KeymanCompilerResult {
/**