[Unicode]   Common Locale Data Repository : Bug Tracking Home | Site Map | Search
 
Modify

CLDR Ticket #11289(new survey)

Opened 4 weeks ago

Adding code point scalar values in LDML

Reported by: Marcel Schneider <charupdate@…> Owned by: anybody
Component: annotations Data Locale:
Phase: dsub Review:
Weeks: Data Xpath:
Xref:

Description

Preparing votes off-line in a text editor is hard because the hexadecimal code points are missing in the LDML files, while the "cp" attribute’s value is a literal. Example:

http://www.unicode.org/repos/cldr/tags/release-33/common/annotations/fr.xml

Now like what I requested in ticket:10206, I’d suggest adding the hex code points. Default sorting is more straightforward using literals, so that these would stay first, but as value of a char attribute, that seems not yet to occur in the DTD. Next comes then the cp attribute, still with a CDATA value but the hexadecimal code point without the "U+" prefix. This is however present in:
https://unicode.org/emoji/charts/full-emoji-list.html#1f98d
but not in:
http://unicode.org/repos/cldr-aux/charts/33/annotations/romance.html

Anyway in the sources, "U+" is generally not present.

If cp must keep its literal value for backwards compatibility, the code point could be the value of a sv attribute, for "scalar value", or hcp for "hex code point".

Another good thing to add is the emoji number. As this is always unique, while a given emoji may have multiple code points that it is made up from, the latter may be omitted to avoid clutter.

The suggested DTD snippet is then (new in bold):

<!ELEMENT annotation ( #PCDATA ) >
<!ATTLIST annotation cp CDATA #REQUIRED >
<!ATTLIST annotation no CDATA #REQUIRED >
<!ATTLIST annotation hcp CDATA #IMPLIED >
<!ATTLIST annotation tts CDATA #IMPLIED >

<!--@VALUE-->
<!--@DEPRECATED-->

<!ATTLIST annotation type (tts) #IMPLIED >
<!ATTLIST annotation alt NMTOKENS #IMPLIED >
<!ATTLIST annotation draft (approved | contributed | provisional | unconfirmed) #IMPLIED >

<!--@METADATA-->

Attachments

View

Add a comment

Modify Ticket

Action
as new
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.