-
Notifications
You must be signed in to change notification settings - Fork 71
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
EDTF level 2 unspecified digit pattern displays nonsensical #1756
Comments
meta-issue: #1748 |
Looking at this again, depending on how you setup the formatter settings, anything we do here would be nonsensical. These examples rely on the formatting to be middle-endian with the full month displayed. However, the default resembles the ISO format (big-endian with hyphen separators), which results in results like: unspecified year in 1560-12-25 I started working on the suggested improvements, but with the default settings, they don't look much better: unspecified year in range 1560 to 1569-12-25 So, I'm not sure what would make sense with these varying configuration options. |
I thought I would also check how the Professional-Wiki EDTF library would handle this:
Using their humanizer would improve internationalization (as we could instantiate the humanizer for the currently enabled language) while losing all configurability; but at least we could shift finger pointing to them. 😉 |
The above are better than what it's currently doing, for sure.
I guess they decided that two zeros (century) was the limit for handling with I was not around for discussions of needs/use cases around all the flexible configurability of the EDTF field, so not sure what to say about that tradeoff. If we were handling it in the current EDTF field, I was imagining the algorithm would have to go something like the following for
Date stuff is SO FUN. :-D |
Currently:
156X-12-25 -> unspecified year in December 25, 1560
15XX-12-25 -> unspecified decade in December 25, 1500
XXXX-12-XX -> unspecified year and day in December , 0000
1XXX-XX -> unspecified century and month in 1000
1XXX-12 -> unspecified century in December , 1000
Possible improvements:
156X-12-25 -> December 25 of unspecified year in range 1560 to 1569
15XX-12-25 -> December 25 of unspecified year in range 1500 to 1599
XXXX-12-XX -> December of unspecified year
1XXX-XX -> Unspecified month of unspecified year in range 1000 to 1999
1XXX-12 -> December of unspecified year in range 1000 to 1999
The text was updated successfully, but these errors were encountered: