mayanklahiri / bib2json

Javascript Bibtex to JSON for nodejs and the browser
65 stars 9 forks source link

Unable to convert some characters to unicode #5

Open duff92 opened 8 years ago

duff92 commented 8 years ago

Great parser which is very useful! I don't know if I am the only one with this problem, but found a problem when converting some characters from latex to unicode.

In Parser.js there is a list (CHARCONV_) with all the different possibilities, however I found a space in the regular expression which made the parser skip these. For example:

... [ /\\aa /g, '\u00E5' ] ...

should be:

... [ /\\aa/g, '\u00E5' ] ..

Best, Joakim