-
Notifications
You must be signed in to change notification settings - Fork 44
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
Formatting JSON with Cyrillic characters into Bibtex #177
Comments
Thank you, that's a good point, I hadn't thought of that. I'm pretty sure you cannot easily include non-ASCII characters in normal BibTeX and I haven't implemented how to escape Cyrillic characters yet so it removes them to ensure the output is at least parseable, even if incorrect. I'll look into a solution. |
It seems that the problem is a bit wider.
However, if I store Bibtex in JSON via Citation.js and then retrieve back as Bibtex, I get:
This escaping is bad for user experience and actually is not needed for today's environment. It would be great to have an option to process Unicode text in Citation.js as is (like The question is this - how deep this Latex-alike conversion is hidden inside Citation.js? Is it possible to "just drop it", when some flag is provided, or that would ruin all the logic of the tool? |
I think BibLaTeX (with the |
Maybe I've used wrong word, I didn't mean dropping the characters. I was asking whether it is possible to omit the non-ASCII escaping operation from the pipeline. |
I understand what you meant, I just meant that in addition to adding that flag, I would ideally like to find a default behavior that does not silently drop Cyrillic characters, which is what happens now. |
In the v0.7.8 release, there's an option to keep all unicode. This might become the default in the future. const { plugins } = require('@citation-js/core')
const config = plugins.config.get('@bibtex')
config.format.asciiOnly = false |
The cases are tested via RunKit at the Citation.js main page. However, I write code for browser (Vue3).
Different browsers are used (Firefox and Chrome-based).
Actually, I didn't expect the difference between processing of English and Cyrillic texts, but that what I am faced with.
There is an example (Ukrainian):
Result:
The same is got via the interface to Zenodo.
Thus, the example from the documentation:
Result:
Let's replace the link with that to a Ukrainian article:
Result:
Maybe, some additional options should be passed? I'd appreciate any suggestions.
The text was updated successfully, but these errors were encountered: