Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upCapitalization of abbreviation starting with a number for biblatex export. #1949
Comments
This comment has been minimized.
This comment has been minimized.
The extra spaces for preserving the uppercase letters in such cases comes from: var protectCaps = new ZU.XRegExp("\\b\\p{Letter}+\\p{Uppercase_Letter}\\p{Letter}*", 'g');
if (field != "pages") {
value = ZU.XRegExp.replace(value, protectCaps, "{$0}");
} which does not yet handle the cases with numbers as the var protectCaps = new ZU.XRegExp("\\b[\\p{Letter}\\d]+\\p{Uppercase_Letter}[\\p{Letter}\\d]*", 'g'); However, this would still leave the H2O case unchanged. But I am not sure, what is the desired output for this case anyway? |
This comment has been minimized.
This comment has been minimized.
But this should be then combined with the issue #1667. |
zuphilip
added a commit
to zuphilip/translators
that referenced
this issue
Dec 15, 2019
For example 3D will then become {3D} in BibTeX export. This fixes zotero#1949 for BibTeX.
adam3smith
added a commit
that referenced
this issue
Jan 20, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
knusch commentedMay 29, 2019
Auto capitilization of capitalized words for biblatex export (i.e. insserting curly braces around the word), does not appear to work when the capitalized word starts with a number. My example was an article named
3D intensity and phase imaging from light field measurements in an LED array microscope,
which turns up in the .bib file as
{3D intensity and phase imaging from light field measurements in an {LED} array microscope},
with no braces around the '3D' part.
I have tested other abbreviations starting with a number, and it appears to behave the same in all my tests.