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

differentiate human readability between uncertain month and day #78

Open
mzeinstra opened this issue Aug 19, 2022 · 5 comments
Open

differentiate human readability between uncertain month and day #78

mzeinstra opened this issue Aug 19, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@mzeinstra
Copy link
Collaborator

Currently all uncertainty is being used as a catch all so the human readable version of an uncertain month translated to the same string as the uncertainty of a day.

@mzeinstra mzeinstra added the enhancement New feature or request label Aug 19, 2022
@mzeinstra
Copy link
Collaborator Author

"1904-06-?11" means "June 11th, 1904 (day uncertain) "
"1904-%06-11" means "June 11th, 1904 (month uncertain)"

Screenshot 2022-08-19 at 13 28 13

@thomas-topway-it
Copy link
Collaborator

is the expression "June 11th, 1904 (day uncertain) " and "June 11th, 1904 (month uncertain)" the desired output ? Also, in this case, where the human readable date is surrounded by parentheses by the interface or outer script, you would have double parentheses -- like "(June 11th, 1904 (day uncertain))" -- which is perhaps undesirable, so in this case to use a dash is the only viable typographical solution?

@thomas-topway-it
Copy link
Collaborator

by the way we can work on a solution like the following (taking French as reference)

"edtf-maybe": "$1 (incertain)",

becomes:
"edtf-maybe": "$1 (month incertain)", or "edtf-maybe": "$1 (year incertain)", or "edtf-maybe": "$1 (day incertain)" or any combination, like "edtf-maybe": "$1 (day and year incertains)"

where the content of the parenthesis is probably given by another message $2

@mzeinstra
Copy link
Collaborator Author

Hi Thomas,

I can't speak to the code, that is not my task here. I think that thinking wise you are on the right track. See also https://www.loc.gov/standards/datetime/ for some additional guidance

Each Y,M,D can three types of qualifiers: ? ~ and %
? = uncertain
~ = approximate
% = uncertain and approximate

Depending on where the qualifier is added the humanisation differs
?YYYY = year uncertain
YYYY-?MM = month uncertain

but you can also have the qualifier on the right side
YYYY-MM? = Year and Month Uncertain

I think we need a new translation string for each of the possible cases

@thomas-topway-it
Copy link
Collaborator

ok, for now we are covering some of them, hope to cover all the combinations soon

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

No branches or pull requests

2 participants