spiegel-keyman/resources/standards-data/keylayout
2025-07-02 14:51:18 +02:00
..
dtd feat(developer): validate: edit xsd-file-> validates files OK 2025-07-02 14:51:18 +02:00
create_keylayout_schema.sh feat(developer): first step for fixup-keylayout-schema.js 2025-05-26 18:44:11 +02:00
fixup-keylayout-schema.js feat(developer): validate: edit xsd-file-> validates files OK 2025-07-02 14:51:18 +02:00
keylayout.schema.json feat(developer): validate: edit xsd-file-> validates files OK 2025-07-02 14:51:18 +02:00
readme.md feat(developer): readme; add keylayout to schema-bundler.js; remove comments in create_keylayout_schema.sh 2025-05-21 11:20:25 +02:00

Keylayout

This is to get a keylayout.schema.json for validating keylayout files

  • We first need to have a .XSD file created from a .keylayout file (which is an xml-file type ) e.g. resources\standards-data\keylayout\dtd\keylayout.xsd

  • Then we need to run ./create_keylayout_schema.sh to obtain a .schema.json file e.g resources\standards-data\keylayout\create_keylayout_schema.sh

  • Then we need to run build.sh configure of common/web/types/ which will create a schema.validate.mjs file e.g. common/web/types/build.sh configure

  • The .mjs can then be used via SchemaValidators to validate keylayout files e.g. SchemaValidators.default.keylayout(source)