-
Notifications
You must be signed in to change notification settings - Fork 7
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
More issues with escaped unicode #85
Comments
I’ll look into this at some point. It seems like the zotero-better-bibtex plugin has an option to keep Unicode. You should absolutely 100% enable that. I’m actually really confused about the statement in their README
I have all my |
Good point, if I untick the checkbox "Export unicode as plain-text..." then I get rid of the errors. I also tried BibLaTeX export but I got an error, see Humans-of-Julia/BibInternal.jl#33 |
I got similar errors with Thank you! |
The reason things might have worked in v1.3.4 stopped working in v1.3.5 was that the solution to #78 was to try to convert latex to unicode before obtaining the initials for first names. That means first names are now processed, while they weren't before, and if there was anything in a first name that trips up the conversion, it breaks. I actually ran into that myself. Ultimately, the bottom line is that DocumenterCitations requires Unicode. Any handling of LaTeX commands will always be an incomplete and heuristic fallback, and not officially supported. |
This particular case seems to be a bug in I also think that
which works fine.
No, that's actually an issue with the raw string: Raw strings in Julia aren't quite as raw as one might think: quotes still have to be escaped, and then the escape has to be escaped. You'd have to write that as
which works. |
The only entry I can reproduce as failing is Unfortunately, your "fix" of removing the braces is actually not correct: it changes the last name "Dal Maso" to "Maso" with "Dal" as a middle name. The correct way to handle this is to use the "Last, First" format.
I strongly recommend always using that format (and to make sure that any automatic exporter uses it) |
So this doesn't really seem actionable on my side, but I'll keep this issue open until Humans-of-Julia/BibParser.jl#39 is resolved. Meanwhile, there's some additional testing in b8c5de3. |
Follow up from #78
With the script
For
I get
When I try
DocumenterCitations.tex_to_markdown(raw"{\"U}nl{\"u}, {\c C}a{\u g}lar")
, I get"\"Unl\"u, Çağlar"
, which seems indeed weird because\"u"
is not replaced by the unicode character.With
I get
but when I do
DocumenterCitations.tex_to_markdown(raw"Mikolov, Tom{\'a}{\v s}")
I get correctly"Mikolov, Tomáš"
.The text was updated successfully, but these errors were encountered: