Is there some sort of minimal example that shows how to hook into this interface. Ideally I'd like it to do something like this from a shell:
#!/bin/sh
echo bringing up Zotero integration dialog now ...
# some command so that the integration dialog comes up, ,and script waits while user selects some citation, supress author options prefix etc.
# script outputs some information, maybe json encoded about what was selected in the dialog
Is there some minimially simple way of making this happen? I really wouldn't know where to start looking. If there's not too much overhead in getting a development environment running, I'm happy to look slowly - I already have a development instance of zotero under a separate profile (runnning the github code), so all I really need is some pointers for getting started with the WP integration code.
> It's a long standing fantasy of mine to be able to write in Markdown in emacs using as seamless a process as the current word processor integration package. I got some of the way there over the xmas holidays ...
Can you elaborate more on this?
Also, just a reminder: pandoc supports citations and CSL too, and
therefore allow you to write in markdown, and get output to all manner
of formats: docx, html, latex, epub, etc.
Bruce
On 14/02/2012, at 7:42 AM, Bruce D'Arcus wrote:
> On Mon, Feb 13, 2012 at 5:10 AM, Kieren Diment <dim...@gmail.com> wrote:
>
>> It's a long standing fantasy of mine to be able to write in Markdown in emacs using as seamless a process as the current word processor integration package. I got some of the way there over the xmas holidays ...
>
> Can you elaborate more on this?
Well what I did in the holidays was rig something together to make a request to the integration server (custom code that I wrote) that would return some text/plain containing information about the currently selected zotero items, with the view that post-processing the text file could extract the identifiers in the text file and dump some formatted references into the end of the document.
However then the new Word integration dialog came out, where the worlflow is fast and seamless (rather than menu/multiselect driven it's autocomplete driven). It would be really nice to be able to make use of this interface for plain text based workflows.
>
> Also, just a reminder: pandoc supports citations and CSL too, and
> therefore allow you to write in markdown, and get output to all manner
> of formats: docx, html, latex, epub, etc.
>
Yes, I am aware of that. My understanding is that it uses an intermediary file containing the required citations, and I need to type in my citations in a particular way by hand, and otherwise I haven't found documentation describing a seamless workflow to achieve this either. I'm also unsure that tightly coupling the citations into the parser is the best idea. It is probably better to stick to a format, and process the citations at the end of the document preparation then use pandoc to shuttle between document formats once the citations are no longer changing.
Yeah, there'd need to be some sort of glue code to create and maintain
that input file to be ideal.
> I'm also unsure that tightly coupling the citations into the parser is the best idea. It is probably better to stick to a format, and process the citations at the end of the document preparation then use pandoc to shuttle between document formats once the citations are no longer changing.
Not following here. Pandoc does allow you to output the results back
to markdown if you want a kind of "cooked" document (if that's what
you mean).
Bruce
On 14/02/2012, at 8:33 AM, Bruce D'Arcus wrote:
>
>> I'm also unsure that tightly coupling the citations into the parser is the best idea. It is probably better to stick to a format, and process the citations at the end of the document preparation then use pandoc to shuttle between document formats once the citations are no longer changing.
>
> Not following here. Pandoc does allow you to output the results back
> to markdown if you want a kind of "cooked" document (if that's what
> you mean).
You're right, these are the half formed incoherent thoughts about a partly considered workflow :)
Fundamentally I think replacing the mozrepl requirement (mozrepl is fragile in my experience, although I've used it for long-running operations) in zotero-plain with something firefox/dialog box based, with a bit of glue scripting to handle some of the pandoc fun might work.
Hi Kieren,
This would be great. Coming up with a better solution for
vi/emacs/lyx/etc. users would be great. I won’t be able to work on
this at the moment, but I’d love to see it!
best, Erik