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
BibTeX export: Output non-ascii characters wrapped in curly braces: {\AA} instead of \AA{} #620
Comments
@skjaeve a quick workaround would be to add a end of guarded area character just after the Are you using Better BibTeX or Better BibLaTeX BTW? Not that it will make much difference unless you're on a very new version of biblatex (biber 2.7+/biblatex 3.5+). If you are, you can enable @njbart, opinions? That |
This is the "Better BibTeX" exporter. It's not an issue with the "Better BibLaTeX" exporter, which exports without converting characters and understands Unicode. Unfortunately, switching to BibLaTeX is not an option as the journal wants BibTeX format. The "extended name format" seems to make no difference for BibTeX. I'm using biblatex 3.7/biber 2.6 from TeXLive 2016 when I'm using BibLaTeX, and bixtex8 3.71. (I've corrected confusion of bibtex/biblatex in the text.) |
@njbart sorry to bother you again but I really can't move forward on this without your input. |
So this is about bibtex, not biblatex? With all due caveats (I'm not using bibtex myself any longer, and I haven't done any testing at all): My guess is that accented characters do need to be wrapped in braces for bibtex to handle them properly. See Patashnik, Oren. 1988. ‘BibTeXing’. http://mirrors.ctan.org/biblio/bibtex/base/btxdoc.pdf, p. 3 f.:
|
OK, thanks. Technically it's not a big change to switch from BBT works on a char-by-char basis, so Changing the precedence rules to favor outer braces would give me Trying to find a way I could still safely do cleanup, but I don't currently see it. |
Can you try https://github.com/retorquere/zotero-better-bibtex/releases/download/builds/zotero-better-bibtex-1.6.91-br620-3484.xpi? It should do what you want at minimal damage to the cleanup process. |
This works as expected, problem appears to be solved from my point of view, |
OK, super. I have tests running on the merge but I don't see why they shouldn't just pass (famous last words). What this change does is that it uses |
OK, it's been merged to master and will be released somewhere before tomorrow evening. I'm trying to take a few more changes into the next release. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
BBT version 1.6.89, Firefox 50.1.0, Fedora Linux 25
When exporting from Zotero using the "Better BibTeX" exporter, non-ascii characters are converted to TeX codes, f.ex "Å" is converted to "\AA" and "æ" to "\ae". But these characters are not wrapped in curly braces, so bibtex/bibtex8 don't parse them properly. This is an issue when generating initials from first names.
Example: Exported entry in .bib file:
becomes this in .bbl file:
i.e. "\AA{}smund" is truncated to "A" and not to "\AA{}". If I manually edit the .bib file to change the author line:
author = {Skj\ae{}veland, {\AA}smund and Moen, J\o{}ran Idar and Carlson, Herbert C.},
the .bbl file has the correct initial:
Skj\ae{}veland, {\AA}., J.~I. Moen, and H.~C. Carlson (2011), On the
and the final bibliography looks correct.
(\ae{} and \o{} should probably also be wrapped in curly braces, but it doesn't cause any issues for me.)
References:
http://tex.stackexchange.com/questions/57743/how-to-write-%C3%A4-and-other-umlauts-and-accented-letters-in-bibliography
http://tex.stackexchange.com/questions/62522/capital-%C3%98-scandinavian-letter-in-bibtex
The text was updated successfully, but these errors were encountered: