Skip to content

Commit

Permalink
chore(resources): ldml update out of techpreview 🙀
Browse files Browse the repository at this point in the history
- includes patch for bn
- pre-release ldml

chore(resources,developer): ldml out of techpreview #10900
  • Loading branch information
srl295 committed Mar 1, 2024
1 parent a39f5cb commit 780a858
Show file tree
Hide file tree
Showing 30 changed files with 64 additions and 144 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<keyboard3 xmlns="https://schemas.unicode.org/cldr/45/keyboard3" locale="bn" conformsTo="techpreview">
<keyboard3 xmlns="https://schemas.unicode.org/cldr/45/keyboard3" locale="bn" conformsTo="45">
<!--
History:
Based on
Expand All @@ -19,8 +19,8 @@
</displays>

<keys>
<import base="cldr" path="techpreview/keys-Zyyy-punctuation.xml" />
<import base="cldr" path="techpreview/keys-Zyyy-currency.xml" />
<import base="cldr" path="45/keys-Zyyy-punctuation.xml" />
<import base="cldr" path="45/keys-Zyyy-currency.xml" />

<key id="1" output="" />
<key id="2" output="" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
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
See CLDR-12026 for the real new azerty keyboard
-->
<keyboard3 xmlns="https://schemas.unicode.org/cldr/45/keyboard3" locale="fr-t-k0-azerty" conformsTo="techpreview">
<keyboard3 xmlns="https://schemas.unicode.org/cldr/45/keyboard3" locale="fr-t-k0-azerty" conformsTo="45">
<locales>
<locale id="br" /> <!-- example of including Breton -->
</locales>
Expand Down Expand Up @@ -36,8 +31,8 @@
</displays>

<keys>
<import base="cldr" path="techpreview/keys-Zyyy-punctuation.xml" />
<import base="cldr" path="techpreview/keys-Zyyy-currency.xml" />
<import base="cldr" path="45/keys-Zyyy-punctuation.xml" />
<import base="cldr" path="45/keys-Zyyy-currency.xml" />

<!-- switch keys -->
<key id="shift" layerId="shift" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<keyboard3 xmlns="https://schemas.unicode.org/cldr/45/keyboard3" locale="ja-Latn" conformsTo="techpreview">
<keyboard3 xmlns="https://schemas.unicode.org/cldr/45/keyboard3" locale="ja-Latn" conformsTo="45">
<locales>
<locale id="en" />
</locales>
<version number="0.0.0" />
<info name="Romaji (JIS)" />

<keys>
<import base="cldr" path="techpreview/keys-Zyyy-punctuation.xml" />
<import base="cldr" path="techpreview/keys-Zyyy-currency.xml" />
<import base="cldr" path="45/keys-Zyyy-punctuation.xml" />
<import base="cldr" path="45/keys-Zyyy-currency.xml" />
</keys>

<layers formId="jis">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<keyboard3 xmlns="https://schemas.unicode.org/cldr/45/keyboard3" locale="mt-t-k0-47key" conformsTo="techpreview">
<keyboard3 xmlns="https://schemas.unicode.org/cldr/45/keyboard3" locale="mt-t-k0-47key" conformsTo="45">
<locales>
<!-- English is also an official language in Malta.-->
<locale id="en" />
Expand All @@ -9,8 +9,8 @@

<keys>
<!-- imports -->
<import base="cldr" path="techpreview/keys-Zyyy-punctuation.xml" />
<import base="cldr" path="techpreview/keys-Zyyy-currency.xml" />
<import base="cldr" path="45/keys-Zyyy-punctuation.xml" />
<import base="cldr" path="45/keys-Zyyy-currency.xml" />

<!-- accent grave -->
<key id="a-grave" output="à" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
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.
Copyright © 1991-2024 Unicode, Inc.
SPDX-License-Identifier: Unicode-3.0
CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
-->
<keyboard3 xmlns="https://schemas.unicode.org/cldr/45/keyboard3" locale="mt" conformsTo="techpreview">
<keyboard3 xmlns="https://schemas.unicode.org/cldr/45/keyboard3" locale="mt" conformsTo="45">
<locales>
<!-- English is also an official language in Malta.-->
<locale id="en" />
Expand All @@ -15,8 +14,8 @@

<keys>
<!-- imports -->
<import base="cldr" path="techpreview/keys-Zyyy-punctuation.xml"/>
<import base="cldr" path="techpreview/keys-Zyyy-currency.xml"/>
<import base="cldr" path="45/keys-Zyyy-punctuation.xml"/>
<import base="cldr" path="45/keys-Zyyy-currency.xml"/>

<!-- accent grave -->
<key id="a-grave" output="à" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<keyboard3 xmlns="https://schemas.unicode.org/cldr/45/keyboard3" locale="pcm" conformsTo="techpreview">
<keyboard3 xmlns="https://schemas.unicode.org/cldr/45/keyboard3" locale="pcm" conformsTo="45">
<version number="1.0.0" />
<info name="Naijíriá Píjin" />
<keys>
<import base="cldr" path="techpreview/keys-Zyyy-punctuation.xml" />
<import base="cldr" path="techpreview/keys-Zyyy-currency.xml" />
<import base="cldr" path="45/keys-Zyyy-punctuation.xml" />
<import base="cldr" path="45/keys-Zyyy-currency.xml" />
<key id="grave" output="\u{300}" />
<key id="backquote" output="`" />
<key id="acute" output="\u{301}" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<keyboard3 xmlns="https://schemas.unicode.org/cldr/45/keyboard3" locale="pt-t-k0-abnt2" conformsTo="techpreview">
<keyboard3 xmlns="https://schemas.unicode.org/cldr/45/keyboard3" locale="pt-t-k0-abnt2" conformsTo="45">
<locales>
<locale id="pt" />
</locales>
Expand All @@ -14,8 +14,8 @@
</displays>

<keys>
<import base="cldr" path="techpreview/keys-Zyyy-punctuation.xml" />
<import base="cldr" path="techpreview/keys-Zyyy-currency.xml" />
<import base="cldr" path="45/keys-Zyyy-punctuation.xml" />
<import base="cldr" path="45/keys-Zyyy-currency.xml" />

<!-- TODO: using the proposed deadkey format -->
<key id="d-acute" output="\m{acute}"/>
Expand Down
5 changes: 5 additions & 0 deletions resources/standards-data/ldml-keyboards/45/cldr_info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"sha": "3cdc78664e1f5c133073a82ff3e0cd5543437853",
"description": "release-45-alpha1-88-g3cdc78664e",
"date": "Fri, 01 Mar 2024 04:57:59 +0000"
}
Original file line number Diff line number Diff line change
@@ -1,52 +1,45 @@
<!--
Copyright © 1991-2024 Unicode, Inc.
For terms of use, see http://www.unicode.org/copyright.html
SPDX-License-Identifier: Unicode-DFS-2016
SPDX-License-Identifier: Unicode-3.0
CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
-->
<!-- Important Note:

The CLDR Keyboard Subcommittee is currently developing major changes to the CLDR keyboard specification.
Please view the subcommittee page for the most recent information.
<https://cldr.unicode.org/index/keyboard-workgroup> -->
<!-- Note: This DTD is not compatible with prior versions of the keyboard data.
See ldmlKeyboard.dtd and CLDR v43 and prior. -->

<!ELEMENT keyboard3 ( import*, locales?, version?, info, settings?, displays?, keys?, flicks?, forms?, layers*, variables?, transforms*, special* ) >
<!--@TECHPREVIEW-->
<!ATTLIST keyboard3 locale CDATA #REQUIRED >
<!--@MATCH:validity/bcp47-wellformed-->
<!ATTLIST keyboard3 conformsTo (techpreview) #REQUIRED >
<!ATTLIST keyboard3 conformsTo (45) #REQUIRED >
<!--@MATCH:version-->
<!--@METADATA-->
<!ATTLIST keyboard3 xmlns CDATA #IMPLIED >
<!--@MATCH:any-->
<!--@METADATA-->
<!ATTLIST keyboard3 xmlns CDATA #IMPLIED >
<!--@MATCH:any-->
<!--@METADATA-->

<!ELEMENT import EMPTY >
<!--@TECHPREVIEW-->
<!ATTLIST import path CDATA #REQUIRED >
<!--@MATCH:any-->
<!ATTLIST import base (cldr) #IMPLIED >

<!ELEMENT locales ( locale* ) >
<!--@TECHPREVIEW-->

<!ELEMENT locale EMPTY >
<!--@TECHPREVIEW-->
<!ATTLIST locale id CDATA #REQUIRED >
<!--@MATCH:validity/bcp47-wellformed-->

<!ELEMENT version EMPTY >
<!--@TECHPREVIEW-->
<!ATTLIST version number CDATA #IMPLIED >
<!--@MATCH:semver-->
<!--@VALUE-->
<!ATTLIST version cldrVersion CDATA #FIXED "techpreview" >
<!-- Note: post techpreview, change cldrVersion to MATCH:version -->
<!--@MATCH:any-->
<!ATTLIST version cldrVersion CDATA #FIXED "45" >
<!--@MATCH:version-->
<!--@METADATA-->

<!ELEMENT info EMPTY >
<!--@TECHPREVIEW-->
<!ATTLIST info name CDATA #REQUIRED >
<!--@MATCH:any-->
<!--@VALUE-->
Expand All @@ -62,15 +55,12 @@ Please view the subcommittee page for the most recent information.

<!ELEMENT settings EMPTY >
<!--@ORDERED-->
<!--@TECHPREVIEW-->
<!ATTLIST settings normalization (disabled) #IMPLIED >
<!--@VALUE-->

<!ELEMENT displays ( import*, display*, displayOptions*, special* ) >
<!--@TECHPREVIEW-->

<!ELEMENT display EMPTY >
<!--@TECHPREVIEW-->
<!ATTLIST display keyId NMTOKEN #IMPLIED >
<!--@MATCH:any-->
<!ATTLIST display output CDATA #IMPLIED >
Expand All @@ -82,20 +72,16 @@ Please view the subcommittee page for the most recent information.
<!--@ALLOWS_UESC-->

<!ELEMENT displayOptions EMPTY >
<!--@TECHPREVIEW-->
<!ATTLIST displayOptions baseCharacter CDATA #IMPLIED >
<!--@MATCH:any-->
<!--@VALUE-->
<!--@ALLOWS_UESC-->

<!ELEMENT special ANY >
<!--@TECHPREVIEW-->

<!ELEMENT keys ( import*, key*, special* ) >
<!--@TECHPREVIEW-->

<!ELEMENT key EMPTY >
<!--@TECHPREVIEW-->
<!ATTLIST key id NMTOKEN #REQUIRED >
<!--@MATCH:any-->
<!ATTLIST key flickId NMTOKEN #IMPLIED >
Expand Down Expand Up @@ -127,55 +113,46 @@ Please view the subcommittee page for the most recent information.
<!ELEMENT flicks ( import*, flick*, special* ) >

<!ELEMENT flick ( flickSegment+, special* ) >
<!--@TECHPREVIEW-->
<!ATTLIST flick id NMTOKEN #REQUIRED >
<!--@MATCH:any-->

<!ELEMENT flickSegment EMPTY >
<!--@TECHPREVIEW-->
<!ATTLIST flickSegment directions NMTOKENS #REQUIRED >
<!--@MATCH:regex/(n|e|s|w|ne|nw|se|sw)([ ]+(n|e|s|w|ne|nw|se|sw))*-->
<!ATTLIST flickSegment keyId NMTOKEN #REQUIRED >
<!--@MATCH:any-->
<!--@VALUE-->

<!ELEMENT forms ( import*, form*, special* ) >
<!--@TECHPREVIEW-->

<!ELEMENT form ( scanCodes+, special* ) >
<!--@TECHPREVIEW-->
<!ATTLIST form id NMTOKEN #IMPLIED >
<!--@MATCH:any-->

<!ELEMENT scanCodes EMPTY >
<!--@TECHPREVIEW-->
<!ATTLIST scanCodes codes NMTOKENS #REQUIRED >
<!--@MATCH:regex/[0-9a-fA-F]{2}( [0-9a-fA-F]{2})*-->
<!--@VALUE-->

<!ELEMENT layers ( import*, layer*, special* ) >
<!--@TECHPREVIEW-->
<!ATTLIST layers formId NMTOKEN #REQUIRED >
<!--@MATCH:any-->
<!ATTLIST layers minDeviceWidth CDATA #IMPLIED >
<!--@MATCH:range/1~999-->

<!ELEMENT layer ( row+, special* ) >
<!--@TECHPREVIEW-->
<!ATTLIST layer id NMTOKEN #IMPLIED >
<!--@MATCH:any-->
<!ATTLIST layer modifiers NMTOKENS #IMPLIED >
<!--@MATCH:regex/(none|([A-Za-z0-9]+)( [A-Za-z0-9]+)*)-->

<!ELEMENT row EMPTY >
<!--@ORDERED-->
<!--@TECHPREVIEW-->
<!ATTLIST row keys NMTOKENS #REQUIRED >
<!--@MATCH:any-->
<!--@VALUE-->

<!ELEMENT variables ( import*, string*, set*, uset*, special* ) >
<!--@TECHPREVIEW-->

<!ELEMENT string EMPTY >
<!ATTLIST string id NMTOKEN #REQUIRED >
Expand All @@ -201,12 +178,10 @@ Please view the subcommittee page for the most recent information.
<!--@VALUE-->

<!ELEMENT transforms ( import*, transformGroup*, special* ) >
<!--@TECHPREVIEW-->
<!ATTLIST transforms type (simple | backspace) #REQUIRED >
<!--@MATCH:literal/simple, backspace-->

<!ELEMENT transformGroup ( import*, ( transform* | reorder* ), special* ) >
<!--@TECHPREVIEW-->

<!ELEMENT transform EMPTY >
<!--@ORDERED-->
Expand All @@ -221,7 +196,6 @@ Please view the subcommittee page for the most recent information.

<!ELEMENT reorder EMPTY >
<!--@ORDERED-->
<!--@TECHPREVIEW-->
<!ATTLIST reorder before CDATA #IMPLIED >
<!--@MATCH:any-->
<!--@VALUE-->
Expand Down
Loading

0 comments on commit 780a858

Please sign in to comment.