-
Notifications
You must be signed in to change notification settings - Fork 117
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
Localised url/urlfrom ignored as field format url hardcodes \mkbibacro{url} #1358
Comments
At the moment Unfortunately, the only trace of the history I could find is #71, which links back to a SourceForge page that no longer exists. But I think it is fair to assume the change to make The biblatex/tex/latex/biblatex/lbx/marathi.lbx Lines 207 to 208 in ac2456c
in the Marathi localisation module and https://github.com/josephwright/biblatex-ieee/blob/7f67eea42f55ee0c27c8358dd7cd64bf47ad4a4c/ieee.bbx#L52. As far as \DeclareFieldFormat{url}{\bibstring{urlfrom}\addcolon\space\url{#1}} (e.g. https://github.com/alex-ball/bathbib/blob/1ca4973eb0732d78709291fcca8123716cb172f2/biblatex/biblatex-bath.dtx#L5400, https://github.com/abntex/biblatex-abnt/blob/26ea8d415679e1b740815b6519181961697d81b9/latex/bbx/abnt.bbx#L1023). |
Ideally, I think the string used to label the field should be sensitive to localisation strings and user-modifiable without overwriting the formatter. But I don't know (obviously) what the complications are. So I understand there may be reasons not to do this. However, I think the setup could be made less confusing for people who do look at the documentation. If it is intended the field format be insensitive to localisations in the standard styles, could the documentation be amended to make this clear? For example, in section 4.9.2.15 (Labels), A similar comment in the Isn't it a bit odd that an |
I don't think we can change any of the default field formats here without breaking backwards compatibility really badly (as #71 already suggests), so I think the next best thing I can offer is a short note along the lines you suggested for the two "unused" strings. See f494b02. Just a note about the documentation with regard to the standard styles: If you want to know exactly how the standard styles behave it is usually better to look at the code directly rather than to look in the documentation. The documentation has to document all of |
Sounds good to me. Thank you. [I do wonder what happens if one needs multilingual support which includes Marthi, though. Presumably things behave differently in that case.]
I understand it would be a huge task, especially given that the targets are not entirely static, but this does mean that, in order to understand how the standard styles work, I have to be able to understand the source code. That's a far from trivial requirement. The code is rather sparsely commented and split across multiple files which interact in ways which are not always at all obvious. I should say that I greatly appreciate the effort which has gone into developing and maintaining Biblatex/Biber. It's really fantastic work and I don't want to sound ungrateful. I am extremely grateful. I'm aware that I don't know the reasoning behind some of the decisions made and that it is easy to think an element of software design is not sensible when I don't understand the reasons for it. |
Well, technically the comment I added is not quite correct. As I said above, the string is used for Marathi (but only for entries in that language, even if you use multiple languages in your document). |
Ah, OK. That makes sense. |
Please excuse me if I've misunderstood how this is meant to work.
As I understand it,
url
and/orurlfrom
are localisable strings which are used to label URLs in e.g. bibliography entries.However, the default format for field
url
hardcodesURL
rather than using such a string.So setting
urlfrom
andurl
in the following has no influence over the result.This also means that the localised strings defined for this field in Biblatex's own
.lbx
files have no effect. For example, changing the document language to Dutch modifiesvisited on
but notURL
. To override the default, it therefore seems one has to redefine the field format:According to the change history in the documentation, the original
url
format was restored in 2.6 and theurlfrom
localisation key was added. This followed a change in 2.5 which localisedurl
rather than hard-coding it. I take it this means thaturl
is not a string which can be localised (though it briefly was), but thaturlfrom
is intended to provide the means to localise this field's label. So the failure ofurl
is expected (though I'm surprised not to get an error), but the failure ofurlfrom
is not.But many of Biblatex's own
.lbx
files seem to define not onlyurlfrom
, but alsourl
, so perhaps my interpretation of the revision history is mistaken. For example,dutch.lbx
includesSo this seems to be a bug, but I'm not entirely certain which species.
The text was updated successfully, but these errors were encountered: