Jesus M. Castagnetto [2006-04-26 16:12 UTC] The parsing still needs some work. It can parse the example you put in your discussion about BibTex parsing, but it fails with sample files that come with the Latex/BibTex distribution (the TeTex package in most Linux distributions).
Using the files listed below your parser gives errors of unbalanced parenthesis (do you mean braces?):
/usr/share/doc/texmf/bibtex/base/btxdoc.bib
/usr/share/texmf/bibtex/bib/base/test.bib
/usr/share/texmf/bibtex/bib/base/xampl.bib
/usr/share/texmf/bibtex/bib/ams/mrabbrev.bib
The latter is a BibTex file with only abbreviations, so it is a good test for that bit.
The xampl.bib contains crossreferences (among other things).
With other files, it does work fine (for example one from an R extension: /usr/lib/R/site-library/mvtnorm/doc/litdb.bib)
Overall it is shaping well, but it still needs things like, mentioning the line or entry where a fatal error happens in the error message, and better parsing.
Lorenzo Alberton [2006-04-27 21:05 UTC] I tried your package and while I think it would be very useful, it still needs some work, as Jesus already said.
I encountered the already mentioned "unbalanced parenthesis" error, plus a lot of notices in LINE 295 of BibTex.php when $value == '{}'.
Please try and fix these errors and post a newer package version, I'll give you some more feedback. Do you need some failing .bib sample files?
Elmar Pitschke [2006-05-28 11:15 UTC] Thanks for the comments
I added all bib files i found on my system plus one from the internet. With these it works. The String entry is not yet supported, this will take a lot of time to do.
Besides that please send me any bib files you have where the parser does not work!
Lorenzo Alberton [2006-05-28 20:18 UTC] I still get tons of:
Notice: Uninitialized string offset: 0 in /pear/Structures/BibTex.php on line 316
and the script ends with: "Unbalenced parenthesis".
One of the failing documents:
http://www.cs.technion.ac.il/~gabr/resources/atc/ATCbibliography.bib
Lorenzo Alberton [2006-05-28 20:19 UTC] BTW: it's "Unbalanced" not "Unbalenced"
Lorenzo Alberton [2006-05-30 11:13 UTC] Using the new version:
================================
Notice: Uninitialized string offset: 1123 in /pear/Structures/BibTex.php on line 387
Notice: Uninitialized string offset: 690 in /pear/Structures/BibTex.php on line 387
Notice: Uninitialized string offset: 628 in /pear/Structures/BibTex.php on line 387
Notice: Uninitialized string offset: 599 in /pear/Structures/BibTex.php on line 387
Notice: Uninitialized string offset: 573 in /pear/Structures/BibTex.php on line 387
Notice: Uninitialized string offset: 540 in /pear/Structures/BibTex.php on line 387
Notice: Uninitialized string offset: 495 in /pear/Structures/BibTex.php on line 387
Notice: Uninitialized string offset: 364 in /pear/Structures/BibTex.php on line 387
Notice: Uninitialized string offset: 193 in /pear/Structures/BibTex.php on line 387
Notice: Uninitialized string offset: 87 in /pear/Structures/BibTex.php on line 387
[long list of NOTICEs omitted]
Unbalanced parenthesis
================================
Same .bib test file.
Lorenzo Alberton [2006-06-03 10:01 UTC] It works like a charm, now, thanks.
|