ANNOUNCE: citeproc-hs, a Haskell implementation of the Citation Style Language designed for Pandoc

Hello, I'm happy to announce the first release of citeproc-hs, a Haskell implementation of the Citation Style Language. citeproc-hs adds to Pandoc, the famous Haskell text processing tool, a Bibtex like citation and bibliographic formatting and generation facility. ABOUT The Citation Style Language (CSL) is an XML language for specifying citation and bibliographic formatting, similar in principle to BibTeX .bst files or the binary style files in commercial products like Endnote or Reference Manager. CSL is used by Zotero for bibliographic style formatting, and a huge number of CSL styles have been developed by the Zotero community. There are plans to use CSL in the future release of OpenOffice: http://bibliographic.openoffice.org/ citeproc-hs is a library that exports functions to parse CSL styles and MODS collections, to process lists of citation groups and to format the processed output. The output is a Haskell data type that can be further processed for conversion to any kind of formats (at the present time plain ASCII and the Pandoc native format) citeproc-hs was developed in order to add to Pandoc Bibtex like citations and automatic reference and bibliography generation. More information, with installation instructions, can be found here: http://code.haskell.org/citeproc-hs/ DOWNLOADS citeproc-hs can be downloaded from Hackage: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/citeproc-hs To get the darcs source run: darcs get http://code.haskell.org/citeproc-hs/ KNOWN ISSUES citeproc-hs is in an early stage of development and the CSL is not complete yet. Specifically, citation collapsing is not implemented, and some formatting options are not working neither. The MODS parser needs some refinement too. BUG REPORTS To submit bug reports you can you the Google code bug tracking system available at the following address: http://code.google.com/p/citeproc-hs/issues CREDITS Bruce D'Arcus, the author of CSL, has been very kind and patient with me when I was trying to understand the CSL schema, and provided me with ideas, comments and suggestions that made it possible to come to something usable. John MacFarlane, the author of Pandoc, has been very supportive of the project and provided a lot of useful feed back, comments and suggestions. Hope you'll enjoy, Andrea Rossato

On Sat, Sep 13, 2008 at 1:33 PM, Andrea Rossato
Hello,
I'm happy to announce the first release of citeproc-hs, a Haskell implementation of the Citation Style Language.
citeproc-hs adds to Pandoc, the famous Haskell text processing tool, a Bibtex like citation and bibliographic formatting and generation facility. ... John MacFarlane, the author of Pandoc, has been very supportive of the project and provided a lot of useful feed back, comments and suggestions.
Hope you'll enjoy, Andrea Rossato
Hi Andrea. So I was looking at the README. Does citeproc-hs only support adding refs from a .xml file when one's written in Pandoc markdown? That is, I don't see how I could take a .lhs file and a .bib file and produce one of the Pandoc-supported outputs. In particular, I'd really like to be able to go .lhs -> .wiki, with refs; this would let me convert The Monad Reader articles for haskell.org. -- gwern

Hi Gwern, On Fri, Sep 19, 2008 at 09:01:46PM -0400, Gwern Branwen wrote:
Hi Andrea. So I was looking at the README. Does citeproc-hs only support adding refs from a .xml file when one's written in Pandoc markdown? That is, I don't see how I could take a .lhs file and a .bib file and produce one of the Pandoc-supported outputs. In particular, I'd really like to be able to go .lhs -> .wiki, with refs; this would let me convert The Monad Reader articles for haskell.org.
as far as I remember Pandoc can deal with literate Haskell. Check here: http://groups.google.com/group/pandoc-discuss/t/aaaf768ab730192 for bibtex databases, you can use Bibutils (check the citeproc-hs homepage for a link): bibutils is a set of utilities for converting from/to MODS to/from many different bibliographic databases. As you know, Pandoc has a mediawiki writer, so, you should be able to use extended markdown with referecnes to produce articles for the wiki. Keep in mind that pandoc latex reader doesn't use citeproc-hs (yet, I'd like to add). Andrea
participants (2)
-
Andrea Rossato
-
Gwern Branwen