zotero / translators

Zotero Translators
http://www.zotero.org/support/dev/translators
1.29k stars 761 forks source link

BibTeX: \textasciicircum escape mapping #2154

Open larsgw opened 4 years ago

larsgw commented 4 years ago

\textasciicircum should not map to U+02C6 (MODIFIER LETTER CIRCUMFLEX ACCENT) but rather to U+005E (COMBINING CIRCUMFLEX ACCENT). That's how it is defined in LaTeX, anyway.

https://github.com/zotero/translators/blob/27742f287085b1b8694c6234b539d57174f141dc/BibTeX.js#L2577

https://github.com/latex3/latex3/blob/10f98264be903e936ba8d959829ea8f02717d32b/texmf/tex/latex/base/tuenc.def#L123

larsgw commented 4 years ago

Also with this one I think, perhaps some incorrectly-reversed mappings?

https://github.com/zotero/translators/blob/27742f287085b1b8694c6234b539d57174f141dc/BibTeX.js#L2628