Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ldml's normalise() should put months and weekdays in order #1

Open
DavidLRowe opened this issue Jun 3, 2020 · 3 comments
Open

Ldml's normalise() should put months and weekdays in order #1

DavidLRowe opened this issue Jun 3, 2020 · 3 comments

Comments

@DavidLRowe
Copy link
Collaborator

No description provided.

@DavidLRowe
Copy link
Collaborator Author

Using normalise()

<month type="1">Jan</month>
<month type="10">Okt</month>
<month type="11">Nov</month>
<month type="12">Des</month>
<month type="2">Feb</month>
<month type="3">Mas</month>
<month type="4">Epr</month>
<month type="5">Me</month>
<month type="6">Jun</month>
<month type="7">Jul</month>
<month type="8">Oga</month>
<month type="9">Sep</month>

<day type="fri">Fra</day>
<day type="mon">Man</day>
<day type="sat">Sar</day>
<day type="sun">San</day>
<day type="thu">Fon</day>
<day type="tue">Tun</day>
<day type="wed">Tri</day>

whereas en.xml has:

<month type="1">J</month>
<month type="2">F</month>
<month type="3">M</month>
<month type="4">A</month>
<month type="5">M</month>
<month type="6">J</month>
<month type="7">J</month>
<month type="8">A</month>
<month type="9">S</month>
<month type="10">O</month>
<month type="11">N</month>
<month type="12">D</month>

<day type="sun">Sun</day>
<day type="mon">Mon</day>
<day type="tue">Tue</day>
<day type="wed">Wed</day>
<day type="thu">Thu</day>
<day type="fri">Fri</day>
<day type="sat">Sat</day>

@DavidLRowe
Copy link
Collaborator Author

DavidLRowe commented Jun 24, 2020

Also MR noted in nnh.xml that "yMd" moved to the end of the list in SLDR:

SLDR:

<availableFormats>
 <dateFormatItem id="yMEd">E , 'lyɛ'̌ʼ d 'na' M, y</dateFormatItem>
 <dateFormatItem id="yMMM">MMM y</dateFormatItem>
 <dateFormatItem id="yMMMEd">E , 'lyɛ'̌ʼ d 'na' MMM, y</dateFormatItem>
 <dateFormatItem id="yMMMd">'lyɛ'̌ʼ d 'na' MMMM, y</dateFormatItem>
 <dateFormatItem id="yMd">d/M/y</dateFormatItem>
</availableFormats>

CLDR:

<availableFormats>
 <dateFormatItem id="yMd">d/M/y</dateFormatItem>
 <dateFormatItem id="yMEd">E , 'lyɛ'̌ʼ d 'na' M, y</dateFormatItem>
 <dateFormatItem id="yMMM">MMM y</dateFormatItem>
 <dateFormatItem id="yMMMd">'lyɛ'̌ʼ d 'na' MMMM, y</dateFormatItem>
 <dateFormatItem id="yMMMEd">E , 'lyɛ'̌ʼ d 'na' MMM, y</dateFormatItem>
</availableFormats>

Could this be due to a case sensitive sort used in SLDR?

@DavidLRowe
Copy link
Collaborator Author

@mhosken Thanks for resolving the issue with sorting days of the week and numbered months. It seems, however, that the issue with sorting the dateFormatItem elements remains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant