bibtex-tidy
bibtex-tidy copied to clipboard
Option to un-escape characters
Right now, the following options are offered:
--escape, --no-escape
Escape special characters, such as umlaut. This ensures correct typesetting
with latex. Enabled by default.
Would it be possible to add a third option, "--unescape", that replaces e.g. {\"{u}}
with ü
?
As far as I can tell, incompatibilities in character encoding is a matter of the past (ish), so getting the other way around would be nice too.
As far as I can tell, incompatibilities in character encoding is a matter of the past (ish), so getting the other way around would be nice too.
Do you know any more about this? This answer on stack exchange suggests bibtex is not unicode aware, but the other answer suggests support can be added using \usepackage[utf8]{inputenc}
.
Thanks for your comment. The answer you are linking to dates from 2009. Most of the sources I can find dates back to ~2010 and highlight issues, but as no recent post that I could find list encoding as a problem, I suspect it "went away" thanks to better unicode support.
Further evidence:
- This answer,
- Overleaf uses UTF-8, (that being said, they escape some characters in this example),
- Section 2.4.2 of the Biblatex documentation:
biber handles us-ascii, 8-bit encodings such as Latin 1, and utf-8. It features true Unicode support and is capable of reencoding the bib data on the fly in a robust way.
Unfortunately, I could not find an authoritative answer…
Unfortunately, I could not find an authoritative answer… As is the way with bibtex!
Thanks for checking. I can certainly see unescape as a useful option (particularly for biber/biblatex). I will try to find some time to work on it or will be happy to accept a PR.
I just came here to suggest the same feature proposed by @aubertc. I am using the BibTeX files to generate csv data for later publishing, so my objectives are increasing the reading and searching capability of the resulting data, and not being compliant with latex. In this case an --unescape feature would be perfect for me!
Thank you @FlamingTempura for considering it.