Should yeartype be a distinguishing attribute?

Mark Davis ☕️ mark at macchiato.com
Thu May 15 18:25:28 CDT 2014


"yearType" is already a distinguishing element, in the internal tooling.

The problem is that the internal tooling (in CLDRFile.java) is more
complete than the supplementalMetadata.xml file, which only has a very
small subset of the real items.

Jon, I suggest that you file a bug to move the data for the distinguishing
elements from CLDRFile to supplementalMetadata.xml.


Mark <https://google.com/+MarkDavis>

 *— Il meglio è l’inimico del bene —*


On Thu, May 15, 2014 at 11:45 AM, Philippe Verdy <verdy_p at wanadoo.fr> wrote:

> The problem is that the "year type" is the same during the two distinct
> month Adar and Adar II because they occur in the *same year*:
> for me it should better be <month type="7.5"> or "7b" to exhivit that it
> is effectively a distinct month, if you don't want to change the month
> numbering after it
>
> The alternative being to only include "Adar" as a single month, and
> adjusting this in the day number. Or create a separate field between the
> month and the day number, for the occurence number (empty, 1, or 2): in
> most calendars and most months of calendars needing it, this field will
> have an empty value.
>
>
>
>
> 2014-05-15 19:49 GMT+02:00 Jon Skeet <skeet at pobox.com>:
>
>> I'm fairly new to CLDR and LDML in general, but I'm investigating the
>> Hebrew calendar for the sake of interest.
>>
>> My understanding is that any attribute not mentioned in any
>> distinguishingItems element is *not* distinguishing. Therefore, in
>> CLDRv25, yeartype is not a distinguishing attribute.
>>
>> However, given its *usage*, I'd expect it to be a distinguishing
>> attribute. For example, in root.xml, under
>> //ldml/dates/calendars/calendar[@type='hebrew']/months/monthContext[@type='format']/monthWidth[@type='wide']
>> we have:
>>
>> <month type="7">Adar</month>
>> <month type="7" yeartype="leap">Adar II</month>
>>
>> If yeartype is non-distinguishing, that would lead to two values with the
>> same element chain, which is forbidden.
>>
>> Please could someone enlighten me as to whether this is a data problem
>> (e.g. fixed by adding yeartype to the list of distinguishing attributes) or
>> a problem with my understanding of distinguishing attributes?
>>
>> Many thanks,
>> Jon Skeet
>>
>>
>> _______________________________________________
>> CLDR-Users mailing list
>> CLDR-Users at unicode.org
>> http://unicode.org/mailman/listinfo/cldr-users
>>
>>
>
> _______________________________________________
> CLDR-Users mailing list
> CLDR-Users at unicode.org
> http://unicode.org/mailman/listinfo/cldr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://unicode.org/pipermail/cldr-users/attachments/20140515/a816a906/attachment.html>


More information about the CLDR-Users mailing list