Closed eroux closed 3 years ago
I suppose that might be caused by the non-ASCII characters, but since it's directly from the CSL repository it's weird that it breaks citeproc-js.
Nevermind, the problem is that citeproc replaces the underscore in zh_CN
with a hyphen (zh-CN
), and then tries to request it under that name. A workaround would be to do this instead:
config.locales.add("zh-CN", zh_CN_xml)
The next release of Citation.js will include a fix, however.
ah excellent, thanks a lot!
Thanks!
First, thanks a lot for this very needed library!
When I add the
zh_CN
locale from an xml file, I'm gettingciteproc-js error: unable to parse XML input
(in both latest Chrome and Firefox). I made a self contained demo of the bug on http://eroux.fr/demobugzh.html (the error appears in the console)here is the code for reference: