Skip to content

Commit b8c65c4

Browse files
authored
CLDR-17971 kbd: (dtd/spec) add <info attribution=…> attribute (#4360)
1 parent aeaf60b commit b8c65c4

File tree

5 files changed

+57
-14
lines changed

5 files changed

+57
-14
lines changed

docs/ldml/tr35-keyboards.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,8 @@ Element containing informative properties about the layout, for displaying in us
872872
name="…name"
873873
author="…author"
874874
layout="…hint of the layout"
875-
indicator="…short identifier" />
875+
indicator="…short identifier"
876+
attribution="…attribution" />
876877
```
877878

878879
> <small>
@@ -901,17 +902,21 @@ _Attribute:_ `name` (required)
901902

902903
* * *
903904

904-
905905
_Attribute:_ `author`
906906

907907
> The `author` attribute value contains the name of the author of the layout file.
908+
> There is no requirement that an implementation display, store, or otherwise process this informative attribute.
909+
910+
* * *
908911

909912
_Attribute:_ `layout`
910913

911914
> The `layout` attribute describes the layout pattern, such as QWERTY, DVORAK, INSCRIPT, etc. typically used to distinguish various layouts for the same language.
912915
>
913916
> This attribute is not localized, but is an informative identifier for implementation use.
914917
918+
* * *
919+
915920
_Attribute:_ `indicator`
916921

917922
> The `indicator` attribute describes a short string to be used in currently selected layout indicator, such as `US`, `SI9` etc.
@@ -921,6 +926,21 @@ _Attribute:_ `indicator`
921926
922927
* * *
923928

929+
_Attribute:_ `attribution`
930+
931+
> The `attribution` attribute describes a short string which gives some indication of the originating entity of the keyboard design, if different from the author of the layout file.
932+
> For example, an external standards body or other entity may have originated the layout used in the document.
933+
> This attribute does not imply endorsement by the named entity.
934+
>
935+
> This attribute is not localized.
936+
> There is no requirement that an implementation display, store, or otherwise process this attribute.
937+
938+
```xml
939+
<info attribution="Malta Standards Authority"/>
940+
```
941+
942+
* * *
943+
924944
### Element: settings
925945

926946
An element used to keep track of layout-specific settings by implementations. This element may or may not show up on a layout. These settings reflect the normal practice by the implementation. However, an implementation using the data may customize the behavior.

keyboards/3.0/mt-t-k0-47key.xml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
Note: conformsTo= references a previous release here,
4-
because this keyboard does not depend on schema or data from later CLDR versions.
3+
Note: conformsTo= may reference a previous release,
4+
if this keyboard does not depend on schema or data from later CLDR versions.
55
-->
6-
<keyboard3 xmlns="https://schemas.unicode.org/cldr/45/keyboard3" locale="mt-t-k0-47key" conformsTo="45">
6+
<keyboard3
7+
xmlns="https://schemas.unicode.org/cldr/47/keyboard3"
8+
locale="mt-t-k0-47key"
9+
conformsTo="47">
10+
711
<locales>
812
<!-- English is also an official language in Malta.-->
913
<locale id="en" />
1014
</locales>
11-
<info name="Maltese 47-key" author="Steven R. Loomis" layout="QWERTY" indicator="MT" />
12-
<!-- MSA 100:2002 -->
15+
16+
<info
17+
name="Malti (47-key, MSA 100-2002)"
18+
author="Steven R. Loomis"
19+
layout="QWERTY"
20+
indicator="MT"
21+
attribution="Malta Standards Authority"
22+
/>
1323

1424
<keys>
1525
<!-- imports -->

keyboards/3.0/mt.xml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,27 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
Copyright © 1991-2024 Unicode, Inc.
3+
Copyright © 1991-2025 Unicode, Inc.
44
SPDX-License-Identifier: Unicode-3.0
55
CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
66
-->
77
<!--
8-
Note: conformsTo= references a previous release here,
9-
because this keyboard does not depend on schema or data from later CLDR versions.
8+
Note: conformsTo= may reference a previous release,
9+
if this keyboard does not depend on schema or data from later CLDR versions.
1010
-->
11-
<keyboard3 xmlns="https://schemas.unicode.org/cldr/45/keyboard3" locale="mt" conformsTo="45">
11+
<keyboard3 xmlns="https://schemas.unicode.org/cldr/47/keyboard3" locale="mt" conformsTo="47">
12+
1213
<locales>
1314
<!-- English is also an official language in Malta.-->
1415
<locale id="en" />
1516
</locales>
16-
<info name="Maltese" author="Steven R. Loomis" layout="QWERTY" indicator="MT" />
17-
<!-- MSA 100:2002 -->
17+
18+
<info
19+
name="Malti (48-key, MSA 100:2002)"
20+
author="Steven R. Loomis"
21+
layout="QWERTY"
22+
indicator="MT"
23+
attribution="Malta Standards Authority"
24+
/>
1825

1926
<keys>
2027
<!-- imports -->
@@ -47,7 +54,7 @@ CLDR data files are interpreted according to the LDML specification (http://unic
4754
<key id="c-cedilla" output="ç" />
4855
</keys>
4956

50-
<!-- 48-key -->
57+
<!-- 48-key -->
5158
<layers formId="iso">
5259
<layer modifiers="none">
5360
<row keys="c-tikka 1 2 3 4 5 6 7 8 9 0 hyphen equal" />

keyboards/dtd/ldmlKeyboard3.dtd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ CLDR data files are interpreted according to the LDML specification (http://unic
5151
<!ATTLIST info indicator CDATA #IMPLIED >
5252
<!--@MATCH:any-->
5353
<!--@VALUE-->
54+
<!ATTLIST info attribution CDATA #IMPLIED >
55+
<!--@MATCH:any-->
56+
<!--@VALUE-->
5457

5558
<!ELEMENT settings EMPTY >
5659
<!--@ORDERED-->

keyboards/dtd/ldmlKeyboard3.xsd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ Note: DTD @-annotations are not currently converted to .xsd. For full CLDR file
106106
<xs:attribute name="author"/>
107107
<xs:attribute name="layout"/>
108108
<xs:attribute name="indicator"/>
109+
<xs:attribute name="attribution"/>
109110
</xs:complexType>
110111
</xs:element>
111112

@@ -116,6 +117,8 @@ Note: DTD @-annotations are not currently converted to .xsd. For full CLDR file
116117

117118

118119

120+
121+
119122
<xs:element name="settings">
120123
<xs:complexType>
121124
<xs:attribute name="normalization">

0 commit comments

Comments
 (0)