-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLDR-15034 kbd: Keyboard 3.0 DTD and Data Files (#3114)
* CLDR-15034 kbd: Keyboard 3.0 Data Files - originally many, many commits and PRs Co-authored-by: Marc Durdin <[email protected]> (cherry picked from commit 1716d10929d39b19cc8f03f6feba8d4f789bacd3) * CLDR-15034 fix fr-azerty test file - the 'extra' key is questionable, but it should at least be defined. * CLDR-15034 remove old (pre-v44) Keyboard files - these files aren't compatible with the new Keyboard DTD - these files remain available in the CLDR download archives * CLDR-15034 kbd data: skip keyboards in PathHeader test * CLDR-15034 kbd data: reinstate DTD match for bcp47 and semver * CLDR-15034 kbd data: fix for test case - TestPaths: fix verbosity and a test skip logic err - maven.yml: schema (xsd) tests are advisory and won't fail a build
- Loading branch information
Showing
640 changed files
with
1,795 additions
and
193,389 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,210 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE keyboard SYSTEM "../dtd/ldmlKeyboard.dtd"> | ||
<!-- | ||
This file is part of the CLDR Keyboard Technical Preview. | ||
This is a sample data file. | ||
This file is subject to change. | ||
Please see https://cldr.unicode.org/index/keyboard-workgroup for the latest information. | ||
Also NOTE: this is really a test keyboard. CLDR-12026 will be for the real new azerty keyboard | ||
--> | ||
<keyboard locale="fr-t-k0-azerty" conformsTo="techpreview"> | ||
<locales> | ||
<locale id="br" /> <!-- example of including Breton --> | ||
</locales> | ||
<!-- 'conformsTo' gives CLDR spec conformance. Distinguishes from prior | ||
keyboard formats --> | ||
<!-- 'version' element is now optional --> | ||
<version number="1.0.0" /> | ||
<info author="Team Keyboard" normalization="NFC" layout="AZERTY" indicator="FR" /> | ||
<names> | ||
<name value="French Test" /> | ||
<name value="French Test AZERTY" /> | ||
</names> | ||
<settings fallback="omit" /> | ||
|
||
<vkeys> | ||
<vkey from="Q" to="A" /> | ||
<vkey from="W" to="Z" /> | ||
<vkey from="A" to="Q" /> | ||
<vkey from="Z" to="W" /> | ||
<vkey from="BKQUOTE" to="QUOTE" /> <!-- i.e., OEM_3 >>> OEM_7 --> | ||
<vkey from="MINUS" to="LBRKT" /> | ||
<vkey from="LBRKT" to="RBRKT" /> | ||
<vkey from="COLON" to="M" /> | ||
<vkey from="QUOTE" to="BKQUOTE" /> | ||
<vkey from="M" to="COMMA" /> | ||
<vkey from="COMMA" to="PERIOD" /> | ||
<vkey from="PERIOD" to="SLASH" /> | ||
<vkey from="SLASH" to="EXCLAMATION" /> <!-- i.e., OEM_2 >>> OEM_8 --> | ||
</vkeys> | ||
|
||
<displays> | ||
<!-- Note: displays is only used for keycap presentation --> | ||
<!-- this example is not required for this keyboard as we use the spacing | ||
modifiers --> | ||
<display to="\u0300" display="${grave}" /> <!-- display combining grave as modifier letter grave ˋ --> | ||
<!-- Note: We discussed why the existing displayMap was used for display. | ||
rather than adding something closer to the key layout. 1. This way we can | ||
tell the renderer what to do. Could be double diacritics, spacing issues, | ||
etc. 2. We expect that keys have output. Otherwise the input content is malformed. | ||
3. Don't Repeat Yourself : multiple keys (i.e. on different symbol layers) | ||
may have the same display. --> | ||
<displayOptions baseCharacter="x" /> | ||
</displays> | ||
|
||
<keys> | ||
<import base="cldr" path="techpreview/keys-Zyyy-punctuation.xml" /> | ||
<import base="cldr" path="techpreview/keys-Zyyy-currency.xml" /> | ||
|
||
<!-- switch keys --> | ||
<key id="shift" switch="shift" /> | ||
<key id="numeric" switch="numeric" /> | ||
<key id="symbol" switch="symbol" /> | ||
<key id="base" switch="base" /> | ||
|
||
<!-- | ||
TODO: need discussion | ||
<key id="bksp" gap="true" /> --> | ||
<key id="extra" gap="true" /> | ||
<!-- | ||
TODO: need discussion | ||
<key id="enter" to="\u{000A}" /> | ||
--> | ||
|
||
<!-- extra keys --> | ||
<key id="u-grave" to="ü" /> | ||
<key id="e-grave" to="é" /> <!-- 2 --> | ||
<key id="e-acute" to="è" /> <!-- 7 --> | ||
<key id="c-cedilla" to="ç" /> <!-- 9 --> | ||
<key id="a-acute" to="à" /> <!-- 0 --> | ||
|
||
<!-- extra symbols --> | ||
<key id="bullet" to="•" /> | ||
<key id="umlaut" to="¨" /> | ||
<key id="super-2" to="²" longPress="₂" /> | ||
|
||
<!-- test key --> | ||
<key id="a" flicks="a" to="a" longPress="à â á ä ã å ā" /> | ||
<flicks id="a"> | ||
<flick directions="nw" to="\u1234" /> | ||
<flick directions="nw se" to="\uFFFF" /> | ||
<flick directions="e" to="\uFFF0" /> | ||
</flicks> | ||
|
||
<!-- test key --> | ||
<key id="A" flicks="b" to="A" longPress="À Á Ä Ã Å Ā" /> | ||
|
||
<!-- test flick --> | ||
<flicks id="b"> | ||
<flick directions="nw" to="\u4567" /> | ||
<flick directions="nw se" to="\uFFFF" /> | ||
<flick directions="e" to="\uFFF0" /> | ||
</flicks> | ||
|
||
<!-- TODO: all additional maps, hardware and touch --> | ||
</keys> | ||
|
||
<layers form="iso"> | ||
<!-- in DTD: required if conformsTo ≥ 41 --> | ||
<layer modifier="none"> | ||
<row | ||
keys="super-2 amp e-grave double-quote apos open-paren hyphen e-acute underscore c-cedilla a-acute close-paren equal" /> | ||
<row keys="a z e r t y u i o p caret dollar" /> | ||
<row keys="q s d f g h j k l m u-grave asterisk" /> | ||
<row keys="open-angle w x c v b n comma semi-colon colon bang" /> | ||
<row keys="space" /> | ||
</layer> | ||
|
||
<layer modifier="shift"> | ||
<row keys="1 2 3 4 5 6 7 8 9 0 degree plus" /> | ||
<row keys="A Z E R T Y U I O P umlaut pound" /> | ||
<row keys="Q S D F G H J K L M percent micro" /> | ||
<row keys="close-angle W X C V B N question period slash section" /> | ||
<row keys="space" /> | ||
</layer> | ||
</layers> | ||
|
||
<layers form="touch" minDeviceWidth="150"> | ||
<!-- optional attribute for min physical device size --> | ||
<layer id="base"> | ||
<row keys="a z e r t y u i o p" /> | ||
<row keys="q s d f g h j k l m" /> | ||
<row keys="shift gap w x c v b n gap" /> <!--TODO: + bksp --> | ||
<row keys="numeric extra space enter" /> | ||
</layer> | ||
|
||
<layer id="shift"> | ||
<row keys="A Z E R T Y U I O P" /> | ||
<row keys="Q S D F G H J K L M" /> | ||
<row keys="base W X C V B N" /> <!--TODO: + bksp --> | ||
<row keys="numeric extra space enter" /> | ||
</layer> | ||
|
||
<layer id="numeric"> | ||
<row keys="1 2 3 4 5 6 7 8 9 0" /> | ||
<row | ||
keys="hyphen slash colon semi-colon open-paren close-paren dollar amp at double-quote" /> | ||
<row keys="symbol period comma question bang double-quote" /> <!--TODO: + bksp --> | ||
<row keys="base extra space enter" /> | ||
</layer> | ||
|
||
<layer id="symbol"> | ||
<row | ||
keys="open-square close-square open-curly close-curly hash percent caret asterisk plus equal" /> | ||
<row keys="underscore backslash pipe tilde open-angle close-angle euro pound yen bullet" /> | ||
<row keys="numeric period comma question bang double-quote" /> <!--TODO: + bksp --> | ||
<row keys="base extra space enter" /> | ||
</layer> | ||
</layers> | ||
|
||
<variables> | ||
<!-- spacing accents as string variables --> | ||
<string id="grave" value="`" /> | ||
<string id="caret" value="^" /> | ||
<string id="umlaut" value="¨" /> | ||
<string id="tilde" value="~" /> | ||
|
||
<!-- sets representing vowels and accented vowels. --> | ||
<!-- There's an extra space between the lower and upper case for visual separation --> | ||
<!-- but, there are only 10 items in the following four sets --> | ||
<set id="vowel" value="a e i o u A E I O U" /> | ||
<set id="graveVowel" value="à è ì ò ù À È Ì Ò Ù" /> | ||
<set id="caretVowel" value="â ê î ô û Â Ê Î Ô Û" /> | ||
<set id="umlautVowel" value="ä ë ï ö ü Ä Ë Ï Ö Ü" /> | ||
|
||
<!-- a set containing all spacing accents --> | ||
<set id="spacing_accent" value="${grave} ${caret} ${umlaut} ${tilde}" /> | ||
</variables> | ||
|
||
<transforms type="simple"> | ||
<transformGroup> | ||
<!-- use sets for those that fit neatly into sets --> | ||
<transform from="${grave}($[vowel])" to="$[1:graveVowel]" /> | ||
<transform from="${caret}($[vowel])" to="$[1:caretVowel]" /> | ||
<transform from="${umlaut}($[vowel])" to="$[1:umlautVowel]" /> | ||
|
||
<!-- y also takes umlaut (in this sample) --> | ||
<transform from="${umlaut}y" to="ÿ" /> | ||
|
||
<!-- tilde is on a subset, not all vowels, + n --> | ||
<transform from="${tilde}a" to="ã" /> | ||
<transform from="${tilde}A" to="Ã" /> | ||
<transform from="${tilde}n" to="ñ" /> | ||
<transform from="${tilde}N" to="Ñ" /> | ||
<transform from="${tilde}o" to="õ" /> | ||
<transform from="${tilde}O" to="Õ" /> | ||
|
||
<!-- accent + space = spacing accent --> | ||
<transform from="($[spacing_accent]) " to="$1" /> | ||
</transformGroup> | ||
<transformGroup> | ||
<!-- this is a reorder group --> | ||
<!-- nod-Lana partial example --> | ||
<reorder from="\u1A60" order="127" /> | ||
<reorder from="\u1A6B" order="42" /> | ||
<reorder from="[\u1A75-\u1A79]" order="55" /> | ||
<!-- ... partial example ... --> | ||
</transformGroup> | ||
</transforms> | ||
</keyboard> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE keyboard SYSTEM "../dtd/ldmlKeyboard.dtd"> | ||
<keyboard locale="ja-Latn" conformsTo="techpreview"> | ||
<locales> | ||
<locale id="en" /> | ||
</locales> | ||
<version number="0.0.0" /> | ||
<names> | ||
<!-- this is the Romaji (English) layer of the JIS keyboard --> | ||
<name value="Romaji (JIS)" /> | ||
</names> | ||
|
||
<keys> | ||
<import base="cldr" path="techpreview/keys-Zyyy-punctuation.xml" /> | ||
<import base="cldr" path="techpreview/keys-Zyyy-currency.xml" /> | ||
</keys> | ||
|
||
<layers form="jis"> | ||
<layer modifier="none"> | ||
<row keys="1 2 3 4 5 6 7 8 9 0 hyphen caret yen" /> | ||
<row keys="q w e r t y u i o p at open-square" /> | ||
<row keys="a s d f g h j k l semi-colon colon close-square" /> | ||
<row keys="z x c v b n m comma period slash underscore" /> | ||
<row keys="space"/> | ||
</layer> | ||
<layer modifier="shift"> | ||
<row keys="bang double-quote hash dollar percent amp apos open-paren close-paren 0 equal tilde pipe" /> <!-- 0 is repeated from "none" --> | ||
<row keys="Q W E R T Y U I O P grave open-curly" /> | ||
<row keys="A S D F G H J K L plus asterisk close-curly" /> | ||
<row keys="Z X C V B N M open-angle close-angle question underscore" /> <!-- underscore is repeated from "none" --> | ||
<row keys="space"/> | ||
</layer> | ||
</layers> | ||
</keyboard> |
Oops, something went wrong.