chore(common): ldmlKeyboard3.dtd

This commit is contained in:
Marc Durdin 2023-11-08 05:48:24 +07:00
parent 857017f4ad
commit 1d3cb5eb4b
3 changed files with 4 additions and 4 deletions

View file

@ -37,7 +37,7 @@ export class KeymanDeveloperProject {
for(let filename of files) {
let fullPath = this.callbacks.path.join(sourcePath, filename);
if(KeymanFileTypes.filenameIs(filename, KeymanFileTypes.Source.LdmlKeyboard)) {
if(!this.callbacks.fs.readFileSync(fullPath, 'utf-8').match(/ldmlKeyboard\.dtd/)) {
if(!this.callbacks.fs.readFileSync(fullPath, 'utf-8').match(/ldmlKeyboard3\.dtd/)) {
// Skip this .xml because we assume it isn't really a keyboard .xml
continue;
}

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
DOCTYPE keyboard SYSTEM "../../../../../resources/standards-data/ldml-keyboards/techpreview/dtd/ldmlKeyboard.dtd"
DOCTYPE keyboard SYSTEM "../../../../../resources/standards-data/ldml-keyboards/techpreview/dtd/ldmlKeyboard3.dtd"
Disabling doctype for this invalid file, not used by compiler, and avoids complaints in IDEs etc.
-->
<keyboard3 locale="mt" conformsTo="nothing-anyone-ever-heard-of"> <!-- invalid -->

View file

@ -9,8 +9,8 @@ That will very roughly correspond to <https://github.com/unicode-org/cldr/tree/k
Each directory contains:
- `ldmlKeyboard.dtd` - the DTD file
- `ldmlKeyboard.xsd` - the XSD file, automatically converted from the DTD using
- `ldmlKeyboard3.dtd` - the DTD file
- `ldmlKeyboard3.xsd` - the XSD file, automatically converted from the DTD using
Visual Studio, hand tweaked as necessary
- `ldml-keyboard3.schema.json` - the JSON schema file, automatically converted
from the XSD using xsd2json (https://github.com/Mermade/jgeXml), hand tweaked