-
Notifications
You must be signed in to change notification settings - Fork 114
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
Spaces in short dates (German) #891
Comments
Thank you for the suggestion. Date formats are indeed a bit of a pain to modify for end users and this seems something like this might be useful. The question is if we can find a useful interface that (ideally) generalises across languages and date formats. That seems very tricky.
|
What about using datetime2 or allowing the user to specify a custom command to print dates (and one for date ranges)? |
That is an interesting thought. And it is very attractive to externalise certain things to other packages. As #863 shows, the date handling currently leaves a few things to be desired. As far as I can see The user can already define a custom command, but that has to be done within the framework of |
I can see the problem with ranges and I wonder why this feature is not implemented in I could not see any interface in the documentation to be honest, but maybe you can help me out? Im writing an application that now has inconsistent date formats and it would be a pleasure if I could fix that :) |
The manual mainly documents the user interface You may want to browse https://tex.stackexchange.com/tags/biblatex/ for some examples of date modifications in |
@moewew - revisiting this, I think we need to go through the shortdate formats and clean them up a bit, replacing all these hard-coded things with |
I've regularised the short date formats and now it should be enough to modify |
It would be useful to make the date formats a bit easier to customise. At the moment the definitions are quite full-on and fairly cryptic, which can make it tricky to understand what is going on. I'm not sure, however, if this is as easy as using a single macro like |
In general, true but |
As for the "/" in the German short date format: AFAICT it is only used for month-year dates. I don't think I've ever seen short month-year dates (as in "6/2020" or "6. 2020" for June 2020) and I would always write them in long form as "June 2020", but if I had to choose "6/2020" looks more natural than "6. 2020" |
I see. I didn't realise |
Looking at some of the changes, I'm wondering if the definitions were semantically sensible to start with. For Bulgarian for example we now set 9c30ed8#diff-c54fe5e538a9797b24c35d87bcad063caa0679df251e7be3a637640ad1d9c134 |
I think a lot of them were not right anyway - they were copy/pasted from other formats, clearly. The german one with the slash seems off to me - I think it's so rare anyway to have such month-only short dates, I just opted for a default that is consistent and people can change it if they want. |
Yeah, I just realised scrolling down the diff that the German dates have the same definition as the Bulgarian. For German I'm pretty sure that logically the month and day should be ordinals if both are present. But for June 2020 "06.2020" will look odd and I think "06/2020" would be more acceptable. @jspitz can I ask you (as on of our |
If month and day are present, they should be ordinals, yes (if numerals are used).
Yes, definitely. I have never seen the former, but occasionally use the latter. I supposed the more common short date format is with abbreviated month name, e.g. "Jun. 2020" |
Can we go with "Jun. 2020" as the default then at least the separator is the same. |
Fine with me, but note that the separator with (ordinal) day and month is |
Then we need to so something with context delims because that means the separator is different ... |
Done in 3.20 DEV. I added a new context sensitive delimiter |
I reverted this and added |
Dates in German documents, when using the
short
orterse
format, are written with thin spaces between the numbers (13. 05. 2019 instead of 13.05.2019). I was very surprised by this, because I've never seen it anywhere, but well, it was the author's choice.However, I seem not to be the only one who does not like this (1, 2) , and removing them seems not to be possible easily but requires copying lots of code from the
.lbx
file (or by patching it).I am wishing for an easier way. Maybe you could do something like
\let\germanshortdatespace\thinspace
(which could then be redefined to be empty), maybe a package option (but that seems a little overkill). Maybe the same thing exists in other languages, too, so a general solution would be great – that's for you to decide, I just wanted to inform you about the need :)The text was updated successfully, but these errors were encountered: