plk / biblatex-apa

APA style for BibLaTeX
88 stars 48 forks source link

Grammatical error in Finnish bibliography urldate #206

Open 0x464e opened 1 year ago

0x464e commented 1 year ago

Hi,

I've noticed a grammatical error when using the Finnish language and specifying an urldate.
Take this example:

@online{test,
  author = {An Author},
  title = {This is the title},
  url = {https://www.url.com/},
  year = {2023},
  urldate = {2023-04-15}
}

It comes out to my bibliography as:
Author, A. (2023). This is the title. Haettu huhtikuuta 15, 2023, osoitteesta https://www.url.com/

However, Haettu huhtikuuta 15, 2023, is grammatically incorrect.
For it to be grammatically correct, it would need to be Haettu 15. huhtikuuta, 2023, (don't quote me on the usage of the commas (,) though)
However, as the sources here state, it seems that the correct APA Finnish urldate should come out as
Haettu 15.4.2023 osoitteesta

I might also add that I'm very new to LaTeX and I'm just using a template that handles everything for me, so I guess it's also possible that something is misconfigured in that template.

0x464e commented 1 year ago

Ok, I also posted on Stack Exchange and got help there.
It seems that the issue can be partly fixed by specifying urldate=short when BibLaTeX is required. However this came with the issue that for whatever reason the dots (.) had a weird spacing issue and numbers shouldn't be prefixed with a zero: image
It could however be fixed by doing this:

\DeclareFieldFormat{urldate}{%
  \thefield{urlday}.%
  \thefield{urlmonth}.%
  \thefield{urlyear}
}

image

Now the only issue left is that there shouldn't be a comma (,) after the date. It's grammatically incorrect.

plk commented 10 months ago

This will all be fixed in the next release, both long and short date format. If you want to fix these for now, add this to your document and also use the package option datezeros=false if using short dates.

  \renewrobustcmd*{\bibdatesep}{\adddot}%