chore(resources): update to latest CLDR preview 🙀#7477
Conversation
User Test ResultsTest specification and instructions User tests are not required |
For: chore(developer): update kmc to latest LDML keyboard DTD version 🙀 #7411
jq -S . > ldml-keyboard.schema.json sort the keys, so that subsequent changes can be reviewed For: chore(developer): update kmc to latest LDML keyboard DTD version 🙀 #7411
CLDR commit: b3c0702a837c4e11193483b85253b11e148fb06b For: chore(developer): update kmc to latest LDML keyboard DTD version 🙀 #7411
- update tooling in common and kmc - update spec - update test files
61b946a to
66a5cdb
Compare
- dtd is in a subdirectory to match CLDR layout
- backspace is now a transform type. Keep the same test.
CLDR data update from unicode-org/cldr#2469 - displays is not an array #7411
With this change, fr-t-k0-azerty.xml and mt.xml can load without any ERROR 300007: The source file has an invalid structure errors. Other errs show up, but it is progress. Fixes #7411
What is it pulling in? |
I think you'll find your branch is out of date with master, and 16.0.82 has the touch alias element code removed (#7343). The file size check is suboptimal because it compares against latest release version rather than BASE of branch (because we often don't have a build for base of branch, so this is harder to do). tl;dr: you can ignore it in this instance 😁 |
|
#7479 adds on to this to support some standard CLDR files |
mcdurdin
left a comment
There was a problem hiding this comment.
Looking good, some polish suggestiosn for the fetch-latest-cldr-techpreview.sh
| if(!source) { | ||
| return null; | ||
| return [null, null]; | ||
| } | ||
| if(!k.validate(source)) { | ||
| return null; | ||
| return [null, null]; | ||
| } | ||
| let kmx = k.compile(source); | ||
| if(!kmx) { | ||
| return null; | ||
| return [null, null]; | ||
| } |
resources/standards-data/ldml-keyboards/techpreview/dtd/ldmlKeyboard.dtd
Outdated
Show resolved
Hide resolved
resources/standards-data/ldml-keyboards/techpreview/dtd/ldmlKeyboard.xsd
Outdated
Show resolved
Hide resolved
resources/standards-data/ldml-keyboards/techpreview/fetch-latest-cldr-techpreview.sh
Show resolved
Hide resolved
resources/standards-data/ldml-keyboards/techpreview/fetch-latest-cldr-techpreview.sh
Outdated
Show resolved
Hide resolved
resources/standards-data/ldml-keyboards/techpreview/fetch-latest-cldr-techpreview.sh
Outdated
Show resolved
Hide resolved
resources/standards-data/ldml-keyboards/techpreview/fetch-latest-cldr-techpreview.sh
Outdated
Show resolved
Hide resolved
resources/standards-data/ldml-keyboards/techpreview/fetch-latest-cldr-techpreview.sh
Show resolved
Hide resolved
| echo >&2 "$0: error: ${CHECK_1} did not exist" | ||
| echo >&2 "$0: error: Is ${CLDR_DIR} a valid cldr keyboard directory?" | ||
| exit 1 |
There was a problem hiding this comment.
Could use die() from build-utils.sh instead with a two-line message?
There was a problem hiding this comment.
using die, but how do I get a two line message to die()?
| echo >&2 "$0: error: ${CHECK_2} did not exist" | ||
| echo >&2 "$0: error: Is ${CLDR_DIR} a valid cldr keyboard directory?" | ||
| exit 1 |
There was a problem hiding this comment.
Could use die() from build-utils.sh instead with a two-line message?
There was a problem hiding this comment.
using die, but how do I get a two line message to die()?
There was a problem hiding this comment.
Let's improve die() to support multi-line messages: each parameter will be a new line.
…dr-epic-ldml fix(developer): support CLDR sample keyboards 🙀
- also use cp instead of rsync
Co-authored-by: Marc Durdin <marc@durdin.net>
b09b63b to
b5f6ff9
Compare
- also fix ${JQ} from $(JQ)
b5f6ff9 to
b30af3f
Compare
update from 425f591aaa2abbd0016d33a09b967ae7f4847414 PR: unicode-org/cldr#2469
resources/standards-data/ldml-keyboards/techpreview/fetch-latest-cldr-techpreview.sh
Outdated
Show resolved
Hide resolved
resources/standards-data/ldml-keyboards/techpreview/fetch-latest-cldr-techpreview.sh
Outdated
Show resolved
Hide resolved
| echo "${xsd} -> ${json}" | ||
| (cd .. ; npx -p jgexml xsd2json techpreview/"${xsd}" techpreview/"${json}") || exit | ||
| echo 'fixup-schema.js' "${json}" | ||
| node fixup-schema.js "${json}" || die "failed to fixup schema ${json}" |
There was a problem hiding this comment.
Technically we don't need die here because of set -e, but LGTM anyway
Co-authored-by: Marc Durdin <marc@durdin.net>
Note: there's a commit that does nothing other than sort the existing schema, this is to allow comparison in the later commit.
dtd/subdir - left the schema where they were3.0,testsubdirs. Now each subdir matches CLDR.Fixes: #7411
reopen of #7471 in the head fork
@keymanapp-test-bot skip