ocaml / ocaml.org

The official OCaml website.
https://ocaml.org
Other
161 stars 327 forks source link

Accept science paper data in bibtex format #648

Open cuihtlauac opened 2 years ago

cuihtlauac commented 2 years ago

@Octachron idea, see: https://github.com/ocaml/ocaml.org/pull/647#issuecomment-1332414522

bibtex is the academic standard; using it would streamline the process and reduce the risk of errors.

@Octachron wrote:

Idle thought: it could make sense to have the papers data in the bibtex format (or an extension), there are few OCaml libraries that can parse this format, and it is probably the easiest format for academics to submit update to the list of articles.

@cuihtlauac wrote:

Makes a lot of sense. Which library would you recommend?

@Octachron wrote:

There might be less libraries that handle bibtex that I thought. I had my own library in mind when I wrote the message, and there is bibtex2html which can handle transforming bibtex to html, but that would probably require to use that generated html as a data file. Both options could work but I am not sure which one would be lighter for ocaml.org .

avsm commented 1 year ago

@Octachron which is your library for parsing Bibtex? I only know about bibtex2html, and it would be nice to have something that just does the parsing and not the HTML rendering.

Octachron commented 1 year ago

My library is there: https://github.com/Octachron/talaria_bibtex. The parser was only tested to cover my own need (which is why the library is not (yet?) published on opam), but it should be easily extensible.

avsm commented 1 year ago

Thanks! I'll try that out for my own bibtex parsing needs as well and open PRs with any changes. Nice use of the open record syntax for accessing fields...