Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SCI\Bibtex\BibtexParser Class Reference

Public Member Functions

 parse ( $bibtex)
 

Detailed Description

Note
most of the parsing code has been copied from PARSEENTRIES therefore thanks goes to the authors of http://bibliophile.sourceforge.net

Comments to the source code can be found at http://sourceforge.net/projects/bibliophile/files/bibtexParse/ and is released under the GPL license.

Note
There might be a better parser out there but I didn't want to spend to much time reviewing code therefore PARSEENTRIES does the job well.

Any fancy macro stuff or other complicated string parsing isn't supported given that the bibtex format misses a proper specification. PARSEENTRIES surely allows to cover more edge cases but for what we want to achieve (to ease copy and paste of existing bibtex records) the current implementation is sufficient.

BibtexParserTest provides the test interface to verify edge cases.

GNU GPL v2+

Since
1.0

Member Function Documentation

◆ parse()

SCI\Bibtex\BibtexParser::parse (   $bibtex)
Since
1.0
Returns
array

The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy