zepinglee / citeproc-lua

A Lua implementation of the Citation Style Language (CSL)
MIT License
62 stars 7 forks source link

Zotero integration #8

Open simifilm opened 2 years ago

simifilm commented 2 years ago

I understand that CSL is not constrained to Zotero, still I wonder whether some kind of integration is planned. I am merely thinking of two areas:

zepinglee commented 2 years ago
  1. Do you mean accessing the sqlite database of Zotero? The internal types and fields in Zotero are different from CSL-JSON (see https://aurimasv.github.io/z2csl/typeMap.xml) and a conversion is needed before feeding the data to a citeproc engine.
  2. It's a good idea and I'll add it. The style files of Zotero are stored in the "Zotero Data Directory" which is ~/Zotero by default and the user may set a custom path (e.g., \cslsetup{zotero-path = /somewhere/else).
simifilm commented 2 years ago

Yes, I mean the sqlite database.

zepinglee commented 2 years ago

Yes, I mean the sqlite database.

It sounds great but it may take some time to implement.

bdarcus commented 2 years ago

I wonder if that would be better as a separate project?

EmmanuelCharpentier commented 1 year ago

FWIW : Eric Hetzner has already implemented a common base allowing various tools to interact with Zotero from emacs, and pandoc so far...

There is no common framework for using these tools, that seriously lack end-user (=idiot-) level documentation. Some thought is needed to integrate them in, say, emacs' AUCTeX, Org or pandoc-mode (as well as other editors...).

The interaction via the Zotero database envisioned by simifilm should probably use zotxt, thus avoiding touching the (non-documented) sqlite base and using the (published) API. Better safe than sorry...

I like the idea to be able to use Zotero data and CSL styles in other tools than the damn "word processors" that the corporate world afflicts us with...