<br><br><div class="gmail_quote">On Tue, May 22, 2012 at 12:01 AM, Jay McCarthy <span dir="ltr"><<a href="mailto:jay.mccarthy@gmail.com" target="_blank">jay.mccarthy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'll get on it. As you know, BibTex is a very poorly described format.<br>
It can parse my humongous Bibtex file, but I haven't spent a ton of<br>
tiny searching for problematic ones in the wild.<br></blockquote><div><br>It parses mine too, except mostly for one thing: anything except @... outside bib entries should be treated as comments.<br>With that it would be sufficient for me (my file is generated by Mendeley which always adds some comments at the top).<br>
<br>Thanks!<br>Laurent<br><br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Jay<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, May 21, 2012 at 10:15 AM, Danny Yoo <<a href="mailto:dyoo@hashcollision.org">dyoo@hashcollision.org</a>> wrote:<br>
> On Mon, May 21, 2012 at 11:42 AM, Danny Yoo <<a href="mailto:dyoo@hashcollision.org">dyoo@hashcollision.org</a>> wrote:<br>
>> I think there's a bug in the library. There appears to be a missing<br>
>> call to (slurp-whitespace ip) in the parsing library. I'll send a bug<br>
>> report and a patch to the Racket developers. A diff follows below for<br>
>> those who like looking at patch files. :)<br>
><br>
> Until the library gets patched, here's a possible workaround: put the<br>
> trailing "}" on the same line, like this:<br>
><br>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>
> @article{hochreiter_long_1997,<br>
> author = {Hochreiter, S. and Schmidhuber, J.},<br>
> title = {Long {Short-Term} Memory},<br>
> volume = {9},<br>
> number = {8},<br>
> journal = {Neural Computation},<br>
> year = {1997},<br>
> pages = {1735--1780}}<br>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>
><br>
><br>
> The bug involves the parser not properly discarding the whitespace<br>
> right after reading the value "{1735--1780}".<br>
><br>
><br>
> I agree with you that the parser needs to be a bit better. It does<br>
> not currently follow the description in:<br>
><br>
> <a href="http://artis.imag.fr/%7EXavier.Decoret/resources/xdkbibtex/bibtex_summary.html" target="_blank">http://artis.imag.fr/~Xavier.Decoret/resources/xdkbibtex/bibtex_summary.html</a><br>
><br>
> so it will reject some bibtex files that it shouldn't.<br>
><br>
><br>
><br>
> I've submitted the bug report as:<br>
><br>
> <a href="http://bugs.racket-lang.org/query/?cmd=view&pr=12779" target="_blank">http://bugs.racket-lang.org/query/?cmd=view&pr=12779</a><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> ____________________<br>
> Racket Users list:<br>
> <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Jay McCarthy <<a href="mailto:jay@cs.byu.edu">jay@cs.byu.edu</a>><br>
Assistant Professor / Brigham Young University<br>
<a href="http://faculty.cs.byu.edu/%7Ejay" target="_blank">http://faculty.cs.byu.edu/~jay</a><br>
<br>
"The glory of God is Intelligence" - D&C 93<br>
</font></span></blockquote></div><br>