From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: zotero plain, org-odt, and citations in general Date: Tue, 8 Nov 2011 21:06:37 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f646a4febd30804b143bc73 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNxYm-0004Ui-6m for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 21:06:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNxYl-0006P9-1M for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 21:06:40 -0500 Received: from mail-yw0-f41.google.com ([209.85.213.41]:60398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNxYk-0006P1-V8 for emacs-orgmode@gnu.org; Tue, 08 Nov 2011 21:06:39 -0500 Received: by ywa17 with SMTP id 17so1473141ywa.0 for ; Tue, 08 Nov 2011 18:06:37 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode , Jambunathan K , Erik Hetzner --e89a8f646a4febd30804b143bc73 Content-Type: text/plain; charset=ISO-8859-1 Hi everyone, I am about to start experimenting with Erik Hetzner's zotero-plain, which allows the use of zotero as a bibliographic manager in emacs & especially org-mode (https://bitbucket.org/egh/zotero-plain as well as a couple of threads on this list, I think). I'm wonderinghow other people have used it, and in particular whether there's any way to preserve the zotero markup across exports to odt especially. That is, I'd like to keep the original citations embedded in the final odt, so that I can continue to use zotero in an odt or doc file after it's been exported from org. This would take me very , very close to a complete org-centric workflow that still lets me produce documents for consumption by my MS-using colleagues. I really hope it's possible to do! If anyone has done it, I would really love to hear about it. Thanks, Matt --e89a8f646a4febd30804b143bc73 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi everyone,

I am about to start experimenting with Erik Hetzner'= ;s zotero-plain, which allows the use of zotero as a bibliographic manager = in emacs & especially org-mode (https://bitbucket.org/egh/zotero-plain as well as a couple = of threads on this list, I think).=A0 I'm wonderinghow other people hav= e used it, and in particular whether there's any way to preserve the zo= tero markup across exports to odt especially. That is, I'd like to keep= the original citations embedded in the final odt, so that I can continue t= o use zotero in an odt or doc file after it's been exported from org.= =A0

This would take me very , very close to a complete org-centric workflow= that still lets me produce documents for consumption by my MS-using collea= gues.=A0 I really hope it's possible to do! If anyone has done it, I wo= uld really love to hear about it.=A0

Thanks,
Matt
--e89a8f646a4febd30804b143bc73-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: zotero plain, org-odt, and citations in general Date: Wed, 09 Nov 2011 10:56:17 +0530 Message-ID: <81hb2drhmu.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO0gK-0002f7-DT for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 00:26:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RO0gI-0006es-Qy for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 00:26:40 -0500 Received: from mail-pz0-f47.google.com ([209.85.210.47]:51955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO0gI-0006en-GG for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 00:26:38 -0500 Received: by pzk6 with SMTP id 6so755717pzk.6 for ; Tue, 08 Nov 2011 21:26:37 -0800 (PST) In-Reply-To: (Matt Price's message of "Tue, 8 Nov 2011 21:06:37 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Price Cc: Erik Hetzner , Org Mode > Hi everyone, > > I am about to start experimenting with Erik Hetzner's zotero-plain, > which allows the use of zotero as a bibliographic manager in emacs & > especially org-mode (https://bitbucket.org/egh/zotero-plain as well > as a couple of threads on this list, I think). For Erik's benefit: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D org-mode has a native ODT exporter implemented by org-odt.el. The documentation - org-odt.pdf - can be seen *attached* to this mailing list post:=20 http://article.gmane.org/gmane.emacs.orgmode/48468 The following section - sec. no. 1.1.4 Applying Custom Styles - talks about where the ODT exporter picks the style from. Notes to self: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 1. styles.odt is here. - https://bitbucket.org/egh/zotero-plain/src/66353860ebdd/python =20=20=20 Styles seem to have rststyle as a prefix. 2. example.odt is here. - https://bitbucket.org/egh/zotero-plain/src/66353860ebdd/example Contains a bibiliographic content presumably created by zrst2odt 3. zrst2odt is here. - https://bitbucket.org/egh/zotero-plain/src/66353860ebdd/python/bin 4. Elisp code is here. - https://bitbucket.org/egh/zotero-plain/src/66353860ebdd/elisp 1. org-zotero.el This permits insertion of zotero reference links *only* and opening them with a browser.=20 Specifically I don't see the translator of these links to individual backends like latex, html or more importantly ODT. #+begin_src emacs-lisp (org-add-link-type TYPE &optional FOLLOW EXPORT) #+end_src 2. zotero.el This (apparently) permits download of data from firefox and importing it within Emacs. I have an impression that I have is this: org->rst->odt I am not able to make up my mind quickly about whether there is support for translating org-style zotero links to rst-stlye . Notes to Matt Price or other users of zotero + libreoffice =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D I see a post from you - titled "zoteroOpenOfficeIntegration doesn't open port?" - in the zotero forums a few hours ago. Here is a link to libreoffice related posts on zotero's forums. http://forums.zotero.org/search/?PostBackAction=3DSearch&Keywords=3Dlibreof= fice&Type=3DComments&btnSubmit=3DSearch So I believe if you or someone could post a OpenOffice document - created through zotero - which uses zotero-style citation and references - to this mailing list or this very thread - these could be used as a primer to export zotero links to ODT. (Similarly for other Org supported backends). It would be wonderful if the example uses as many of the zotero fields - (as in database fields) - in as many usage contexts as possible. General comments =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 1. Zotero supports many citation stlyes. So Org/Zotero integration could choose one citation style that is widely agreeable for one-off colloboration needs. 2. I don't know if importing Zotero stylenames verbatim in to org-odt's style file would "pollute" it - thereby preventing org-odt from getting in to Emacs proper. I am not competent to judge what the copyright and license terms of the stylenames used by zotero plugin are. I am seeing that zotero itself is AGPL so I believe it is Free as in "Free Software". 3. Even if zotero's ODT style cannot be used by the ODT exporter due (2), I can cook up Org's own stlyenames for various citation fields and allow the user to remap Org* stlyenames to say Zotero* stlynames. I see Org already has some(?) support for bibtex. Can anyone comment on bibtex vs zotero? They seem to serve same purpose - citation management. Can bibtex be used instead of zotero. I am not a researcher or academic. So I would need help from potential users for this to move forward. > =C2=A0 I'm wonderinghow other people have used it, and in particular > whether there's any way to preserve the zotero markup across exports > to odt especially. That is, I'd like to keep the original citations > embedded in the final odt, so that I can continue to use zotero in an > odt or doc file after it's been exported from org.=C2=A0 > > This would take me very , very close to a complete org-centric > workflow that still lets me produce documents for consumption by my > MS-using colleagues.=C2=A0 I really hope it's possible to do! If anyone > has done it, I would really love to hear about it.=C2=A0 > > Thanks, > Matt > > --=20 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Hetzner Subject: Re: zotero plain, org-odt, and citations in general Date: Tue, 08 Nov 2011 23:03:15 -0800 Message-ID: <8762itvkuk.wl%egh@e6h.org> References: Reply-To: Erik Hetzner Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Tue_Nov__8_23:03:15_2011-1" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO2Bu-0000hL-Lf for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 02:03:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RO2Bt-0004rA-DK for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 02:03:22 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:50823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO2Bt-0004r4-7l for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 02:03:21 -0500 Received: by iaae16 with SMTP id e16so1730271iaa.0 for ; Tue, 08 Nov 2011 23:03:19 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Price Cc: Org Mode , Jambunathan K --Multipart_Tue_Nov__8_23:03:15_2011-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable At Tue, 8 Nov 2011 21:06:37 -0500, Matt Price wrote: >=20 > Hi everyone, >=20 > I am about to start experimenting with Erik Hetzner's zotero-plain, which > allows the use of zotero as a bibliographic manager in emacs & especially > org-mode (https://bitbucket.org/egh/zotero-plain as well as a couple of > threads on this list, I think). I'm wonderinghow other people have used > it, and in particular whether there's any way to preserve the zotero mark= up > across exports to odt especially. That is, I'd like to keep the original > citations embedded in the final odt, so that I can continue to use zotero > in an odt or doc file after it's been exported from org. >=20 > This would take me very , very close to a complete org-centric workflow > that still lets me produce documents for consumption by my MS-using > colleagues. I really hope it's possible to do! If anyone has done it, I > would really love to hear about it. Hi Matt, org-mode support in Zotero plain has not received as much work recently as the docutils (reStructuredText) support. Basically all that one can do in org-mode at the moment is insert & update citations, and following citation links to the entry in Zotero. zot4rst (docutils) support can transform rst documents into odt documents with citations generated by Zotero. [1] It might be possible to implement something similar in the org-mode Zotero, but I don=E2=80=99t know how, and it might be difficult. best, Erik 1. However, it should be noted that this support is different from that provided by the OpenOffice plugin, and one cannot edit a document generated from a rst file using the Zotero/OpenOffice plugin. --Multipart_Tue_Nov__8_23:03:15_2011-1 Content-Type: text/plain; charset=US-ASCII Sent from my free software system . --Multipart_Tue_Nov__8_23:03:15_2011-1-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: zotero plain, org-odt, and citations in general Date: Wed, 09 Nov 2011 12:55:53 +0530 Message-ID: <81aa85daf2.fsf@gmail.com> References: <8762itvkuk.wl%egh@e6h.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO2Y7-0005HT-P1 for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 02:26:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RO2Y5-0000h4-57 for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 02:26:19 -0500 Received: from mail-yx0-f169.google.com ([209.85.213.169]:64689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO2Y5-0000h0-1k for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 02:26:17 -0500 Received: by yenm7 with SMTP id m7so452194yen.0 for ; Tue, 08 Nov 2011 23:26:16 -0800 (PST) In-Reply-To: <8762itvkuk.wl%egh@e6h.org> (Erik Hetzner's message of "Tue, 08 Nov 2011 23:03:15 -0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Erik Hetzner Cc: Org Mode > Basically all that one can do in org-mode at the moment is insert & > update citations, and following citation links to the entry in Zotero. Can you or someone provide me how such an Org file with citation definition and reference looks like? > It might be possible to implement something similar in the org-mode > Zotero, but I don=E2=80=99t know how, and it might be difficult. Do you know who the author of zotero.el? The file header in zotero.el has no author info. https://bitbucket.org/egh/zotero-plain/src/66353860ebdd/elisp/zotero.el Assuming that prior work in zotero.el is reasonably complete and usable - in so far as retrieving all fields associated with a zotero reference - getting citation sections and references in ODT export shouldn't be a difficult issue. I am making these comments as the author of org-odt.el. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: zotero plain, org-odt, and citations in general Date: Wed, 9 Nov 2011 10:28:21 -0500 Message-ID: References: <8762itvkuk.wl%egh@e6h.org> <81aa85daf2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=f46d044472bb2411ba04b14ef022 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROA4i-00075q-QD for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 10:28:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROA4c-0005am-Jf for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 10:28:28 -0500 Received: from mail-qw0-f41.google.com ([209.85.216.41]:61968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROA4b-0005aY-W1 for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 10:28:22 -0500 Received: by qadc11 with SMTP id c11so1863225qad.0 for ; Wed, 09 Nov 2011 07:28:21 -0800 (PST) In-Reply-To: <81aa85daf2.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Erik Hetzner , Matt Price , Org Mode --f46d044472bb2411ba04b14ef022 Content-Type: multipart/alternative; boundary=f46d044472bb2411b704b14ef020 --f46d044472bb2411b704b14ef020 Content-Type: text/plain; charset=ISO-8859-1 attached is a sample odt file with Zotero citations included. It's very simple, actually, because I think the key to making something like this work would be to offload as much work as possible to zotero itself -- Erik, correct me if I'm wrong (quite likely). Both Erik and Jambunathan have raised questions which I'm not al lthat competent to answer, but doing my best (and sorry for the lack of quotation markup, not sure how to paste-as-quote in gmail): 1. Zotero supports many citation stlyes. So Org/Zotero integration could > choose one citation style that is widely agreeable for one-off > colloboration needs. > If that's easier, then sure. Since the Openoffice plugin allows you to reformat citations easily, then if the import result in active zotero fields that zotero can work with, it shouldn't be hard for the user to change the citation format easily. 2. I don't know if importing Zotero stylenames verbatim in to org-odt's > style file would "pollute" it - thereby preventing org-odt from > getting in to Emacs proper. > I think what really matters is getting the zotero id's into the ODT in a way that allows Zotero to see them later on. Then the user can reformat in whatever manner she needs to. I am not competent to judge what the copyright and license terms of the stylenames used by zotero plugin are. I am seeing that zotero itself is AGPL so I believe it is Free as in "Free Software". I think so -- shouldn't be a license problem w/ emacs. 3. Even if zotero's ODT style cannot be used by the ODT exporter due > (2), I can cook up Org's own stlyenames for various citation fields > and allow the user to remap Org* stlyenames to say Zotero* stlynames. > > I see Org already has some(?) support for bibtex. Can anyone comment on > bibtex vs zotero? They seem to serve same purpose - citation > management. Can bibtex be used instead of zotero. > For me that wouldn't work, becaue bibtex isn't widely used by humanities scholars and social scientists. Zotero is, right now, by far the best tool for us. Also bibtex has, or at least used to have, significant limitations on styles that make (made?) it unsuitable for humanities scholars. I wish I could provide an example org-mode file with zotero references in it -- erik, I'm having trouble making contact with mozrepl from emacs. given recent developments in Zotero, it would probably be better to have zotero.el speak directly to the Zotero server instead of working through firefox -- do you agree, Erik? But I imagine that is a significant undertaking. thanks everyone, Matt --f46d044472bb2411b704b14ef020 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable attached is a sample odt file with Zotero citations included. It's very= simple, actually, because I think the key to making something like this wo= rk would be to offload as much work as possible to zotero itself -- Erik, c= orrect me if I'm wrong (quite likely).

Both Erik and Jambunathan have raised questions which I'm not al lt= hat competent to answer, but doing my best (and sorry for the lack of quota= tion markup, not sure how to paste-as-quote in gmail):


1. Zo= tero supports many citation stlyes. So Org/Zotero integration could
=A0 = choose one citation style that is widely agreeable for one-off
=A0 colloboration needs.

If that'= ;s easier, then sure. Since the Openoffice plugin allows you to reformat ci= tations easily, then if the import result in active zotero fields that zote= ro can work with, it shouldn't be hard for the user to change the citat= ion format easily.

2. I don'= t know if importing Zotero stylenames verbatim in to org-odt's
=A0 s= tyle file would "pollute" it - thereby preventing org-odt from =A0 getting in to Emacs proper.

I think what really mat= ters is getting the zotero id's into the ODT in a way that allows Zoter= o to see them later on.=A0 Then the user can reformat in whatever manner sh= e needs to.

=A0 I am not competent to judge what the copyright and lice= nse terms of
=A0 the stylenames used by zotero plugin are. I am seeing t= hat zotero
=A0 itself is AGPL so I believe it is Free as in "Free S= oftware".

I think so -- shouldn't be a license problem w/ emacs.=

3. Even i= f zotero's ODT style cannot be used by the ODT exporter due
=A0 (2), I can cook up Org's own stlyenames for various citation fields=
=A0 and allow the user to remap Org* stlyenames to say Zotero* stlyname= s.

I see Org already has some(?) support for bibtex. Can anyone comm= ent on
bibtex vs zotero? They seem to serve same purpose - citation
management.= Can bibtex be used instead of zotero.

For me that woul= dn't work, becaue bibtex isn't widely used by humanities scholars a= nd social scientists. Zotero is, right now, by far the best tool for us.=A0= Also bibtex has, or at least used to have, significant limitations on styl= es that make (made?) it unsuitable for humanities scholars.=A0

I wish I could provide an example org-mode file with zotero references = in it -- erik, I'm having trouble making contact with mozrepl from emac= s.=A0 given recent developments in Zotero, it would probably be better to h= ave zotero.el speak directly to the Zotero server instead of working throug= h firefox -- do you agree, Erik? But I imagine that is a significant undert= aking.

thanks everyone,
Matt
--f46d044472bb2411b704b14ef020-- --f46d044472bb2411ba04b14ef022 Content-Type: application/vnd.oasis.opendocument.text; name="zotero-demo-file.odt" Content-Disposition: attachment; filename="zotero-demo-file.odt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gusgwakm0 UEsDBBQAAAgAANJ4aT9exjIMJwAAACcAAAAIAAAAbWltZXR5cGVhcHBsaWNhdGlvbi92bmQub2Fz aXMub3BlbmRvY3VtZW50LnRleHRQSwMEFAAACAAA0nhpP1lZTuRMBwAATAcAAAgAAABtZXRhLnht bDw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04Ij8+CjxvZmZpY2U6ZG9jdW1lbnQt bWV0YSB4bWxuczpvZmZpY2U9InVybjpvYXNpczpuYW1lczp0YzpvcGVuZG9jdW1lbnQ6eG1sbnM6 b2ZmaWNlOjEuMCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHht bG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6bWV0YT0idXJu Om9hc2lzOm5hbWVzOnRjOm9wZW5kb2N1bWVudDp4bWxuczptZXRhOjEuMCIgeG1sbnM6b29vPSJo dHRwOi8vb3Blbm9mZmljZS5vcmcvMjAwNC9vZmZpY2UiIHhtbG5zOmdyZGRsPSJodHRwOi8vd3d3 LnczLm9yZy8yMDAzL2cvZGF0YS12aWV3IyIgb2ZmaWNlOnZlcnNpb249IjEuMiI+PG9mZmljZTpt ZXRhPjxtZXRhOmluaXRpYWwtY3JlYXRvcj5NYXR0IFByaWNlPC9tZXRhOmluaXRpYWwtY3JlYXRv cj48bWV0YTpjcmVhdGlvbi1kYXRlPjIwM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ZpZ3VyYXRpb25zMi9wcm9ncmVzc2Jhci9QSwEC FAAUAAAIAADSeGk/AAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAqHQAAQ29uZmlndXJhdGlvbnMy L3Rvb2xiYXIvUEsBAhQAFAAACAAA0nhpPwAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAYB0AAENv bmZpZ3VyYXRpb25zMi9mbG9hdGVyL1BLAQIUABQAAAgAANJ4aT8AAAAAAAAAAAAAAAAYAAAAAAAA AAAAAAAAAJYdAABDb25maWd1cmF0aW9uczIvbWVudWJhci9QSwECFAAUAAAICADSeGk/AAAAAAIA AAAAAAAAJwAAAAAAAAAAAAAAAADMHQAAQ29uZmlndXJhdGlvbnMyL2FjY2VsZXJhdG9yL2N1cnJl bnQueG1sUEsBAhQAFAAICAgA0nhpP7QRxjyxCAAAtS8AAAoAAAAAAAAAAAAAAAAAEx4AAHN0eWxl cy54bWxQSwECFAAUAAgICADSeGk/o/sFEiEBAAA+BAAAFQAAAAAAAAAAAAAAAAD8JgAATUVUQS1J TkYvbWFuaWZlc3QueG1sUEsFBgAAAAARABEAcAQAAGAoAAAAAA== --f46d044472bb2411ba04b14ef022-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Williams Subject: Re: zotero plain, org-odt, and citations in general Date: Wed, 9 Nov 2011 14:13:26 +0000 (UTC) Message-ID: References: <8762itvkuk.wl%egh@e6h.org> <81aa85daf2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROAPo-0000M3-RN for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 10:50:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROAPj-0002Ds-5q for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 10:50:16 -0500 Received: from lo.gmane.org ([80.91.229.12]:36249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROAPi-0002Di-Ry for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 10:50:11 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1ROAPg-0005Vk-Bn for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 16:50:09 +0100 Received: from shrimp.windlogics.com ([216.245.170.164]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Nov 2011 16:50:08 +0100 Received: from kenahoo by shrimp.windlogics.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Nov 2011 16:50:08 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Jambunathan K gmail.com> writes: > > > Basically all that one can do in org-mode at the moment is insert & > > update citations, and following citation links to the entry in Zotero. > > Can you or someone provide me how such an Org file with citation > definition and reference looks like? I'd be very interested in this too. I've just started to work with Zotero and I'd assumed that to interface with org-mode I'd have to export as BiBTeX first, but if I can connect them directly that would be awesome. -Ken From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: zotero plain, org-odt, and citations in general Date: Wed, 09 Nov 2011 20:39:18 +0100 Message-ID: <4EBAD6E6.1080408@christianmoe.com> References: <8762itvkuk.wl%egh@e6h.org> <81aa85daf2.fsf@gmail.com> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RODvh-00072v-7W for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 14:35:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RODvg-000781-0u for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 14:35:25 -0500 Received: from b1.hitrost.net ([91.185.211.67]:40329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RODvf-00077n-SD for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 14:35:23 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Price Cc: emacs-orgmode@gnu.org Hi, Is zotero-plain working for others? I test drove zotero-plain back when it was just developed. Looked promising, but I had uneven success with the MozRepl communication, possibly something to do with being on an older and slower machine. Trying it again today (with the most recent zotero-plain, MozRepl and moz.el I could find), I press `C-c z i' to insert a citation and nothing happens. Well, the Org buffer hangs until I press C-g, and except that the *MozRepl* buffer says "Process MozRepl deleted". Yours, Christian From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Hetzner Subject: Re: zotero plain, org-odt, and citations in general Date: Wed, 09 Nov 2011 20:40:16 -0800 Message-ID: <87vcqstwsv.wl%egh@e6h.org> References: <8762itvkuk.wl%egh@e6h.org> <81aa85daf2.fsf@gmail.com> Reply-To: Erik Hetzner Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Wed_Nov__9_20:40:14_2011-1" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROMR8-0000Vt-Ia for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 23:40:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROMR7-0006ne-6f for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 23:40:26 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:47015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROMR7-0006nZ-2B for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 23:40:25 -0500 Received: by iaae16 with SMTP id e16so3028014iaa.0 for ; Wed, 09 Nov 2011 20:40:24 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Price Cc: Org Mode --Multipart_Wed_Nov__9_20:40:14_2011-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable At Wed, 9 Nov 2011 10:28:21 -0500, Matt Price wrote: >=20 > attached is a sample odt file with Zotero citations included. It's very > simple, actually, because I think the key to making something like this > work would be to offload as much work as possible to zotero itself -- Eri= k, > correct me if I'm wrong (quite likely). Hi, Thanks for the sample ODT file. I would like to clarify a few issues that have been raised: zotero-plain consists of 2 very separate parts: emacs/zotero integration and docutils/zotero integration (zot4rst). zot4rst is far more advanced. zot4rst provides extensions for docutils that allow a user to include zotero citations in reStructuredText documents. For example: :xcite:`[@item1, p. 30]` says blah. When the user employs the zrst2{pdf,odt,...} tools, docutils connects to a running Firefox instance (using jsbride & a custom zot4rst Firefox plugin) and uses Zotero to format citations & bibliographies (in this case, for @item1, p. 30). When generating an ODT file, this does *not* use the standard OpenOffice/Zotero integration, but rather uses Zotero to generate HTML citations, transforms the HTML citations into docutils internal format, and then uses the rst2odt code to transform that into an ODT document. So while it might be possible to include the necessary information that make the standard OpenOffice/Zotero plugin work, it would probably be difficult. The Emacs/Zotero integration is far less advanced. It uses MozRepl, which is flaky, and includes code to insert & update & follow links, & generate citations into org docs. Here is an example link: [[zotero://select//0_83KCW6AU][Rediker, Marcus. The Slave Ship: A Human H= istory. Viking Adult, 2007.]] This link can be automatically inserted, and can be followed using C-c C-o, which selects the item in Zotero. This is *all* the org-mode integration does at present. This serves my needs (note-taking) and I probably won=E2=80=99t do any enhancements (patch= es are welcome!) Keep in mind that citations are tricky: if you want to transform org citations into publishable documents you want to be able to handle footnote & in-text citations (it depends on the style) and bibliographies. Have a look at the python zot4rst code to get an idea of what is required. If people want org -> odt transformations, it is going to be difficult. I hope that helps! best, Erik PS:=20 > erik, I'm having trouble making contact with mozrepl from emacs. > given recent developments in Zotero, it would probably be better to have > zotero.el speak directly to the Zotero server instead of working through > firefox -- do you agree, Erik? But I imagine that is a significant > undertaking. There really is no Zotero server at the moment. The API at zotero.org does not support bibliography generation, and the internal server that Zotero provides locally is not documented. --Multipart_Wed_Nov__9_20:40:14_2011-1 Content-Type: text/plain; charset=US-ASCII Sent from my free software system . --Multipart_Wed_Nov__9_20:40:14_2011-1-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Hetzner Subject: Re: zotero plain, org-odt, and citations in general Date: Wed, 09 Nov 2011 20:53:21 -0800 Message-ID: <87ty6ctw72.wl%egh@e6h.org> References: <8762itvkuk.wl%egh@e6h.org> <81aa85daf2.fsf@gmail.com> <4EBAD6E6.1080408@christianmoe.com> Reply-To: Erik Hetzner Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Wed_Nov__9_20:53:19_2011-1" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:32864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROMdn-0001iI-3s for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 23:53:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROMdl-0000g4-TT for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 23:53:31 -0500 Received: from mail-yw0-f41.google.com ([209.85.213.41]:53955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROMdl-0000g0-Pp for emacs-orgmode@gnu.org; Wed, 09 Nov 2011 23:53:29 -0500 Received: by ywa17 with SMTP id 17so2981164ywa.0 for ; Wed, 09 Nov 2011 20:53:29 -0800 (PST) In-Reply-To: <4EBAD6E6.1080408@christianmoe.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: mail@christianmoe.com Cc: emacs-orgmode@gnu.org --Multipart_Wed_Nov__9_20:53:19_2011-1 Content-Type: text/plain; charset=US-ASCII At Wed, 09 Nov 2011 20:39:18 +0100, Christian Moe wrote: > > Hi, > > Is zotero-plain working for others? > > I test drove zotero-plain back when it was just developed. Looked > promising, but I had uneven success with the MozRepl communication, > possibly something to do with being on an older and slower machine. > > Trying it again today (with the most recent zotero-plain, MozRepl and > moz.el I could find), I press `C-c z i' to insert a citation and > nothing happens. Well, the Org buffer hangs until I press C-g, and > except that the *MozRepl* buffer says "Process MozRepl deleted". Hi Christian, It works for me, with MozRepl 1.1beta2, and the latest Zotero plain. MozRepl communication *is* not very good. best, Erik --Multipart_Wed_Nov__9_20:53:19_2011-1 Content-Type: text/plain; charset=US-ASCII Sent from my free software system . --Multipart_Wed_Nov__9_20:53:19_2011-1-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: zotero plain, org-odt, and citations in general Date: Thu, 10 Nov 2011 10:01:24 +0100 Message-ID: <4EBB92E4.8050304@christianmoe.com> References: <8762itvkuk.wl%egh@e6h.org> <81aa85daf2.fsf@gmail.com> <4EBAD6E6.1080408@christianmoe.com> <87ty6ctw72.wl%egh@e6h.org> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROQRu-00078y-3v for emacs-orgmode@gnu.org; Thu, 10 Nov 2011 03:57:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROQRt-0008Ei-BC for emacs-orgmode@gnu.org; Thu, 10 Nov 2011 03:57:30 -0500 Received: from b1.hitrost.net ([91.185.211.67]:34924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROQRt-0008Eb-40 for emacs-orgmode@gnu.org; Thu, 10 Nov 2011 03:57:29 -0500 In-Reply-To: <87ty6ctw72.wl%egh@e6h.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Erik Hetzner Cc: emacs-orgmode@gnu.org On 11/10/11 5:53 AM, Erik Hetzner wrote: > It works for me, with MozRepl 1.1beta2, and the latest Zotero plain. Thanks. If that's with the latest Firefox too (apparently I'm on 8.0, Mozilla's new approach versioning makes me dizzy), there must be some problem with my setup. I'll try to figure it out. Yours, Christian From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: zotero plain, org-odt, and citations in general Date: Thu, 10 Nov 2011 20:47:30 +0530 Message-ID: <81mxc4ovlh.fsf@gmail.com> References: <81hb2drhmu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROWOB-0007hI-9T for emacs-orgmode@gnu.org; Thu, 10 Nov 2011 10:18:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROWO9-0002qp-OG for emacs-orgmode@gnu.org; Thu, 10 Nov 2011 10:18:03 -0500 Received: from mail-yw0-f41.google.com ([209.85.213.41]:41567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROWO9-0002qg-Eh for emacs-orgmode@gnu.org; Thu, 10 Nov 2011 10:18:01 -0500 Received: by ywa17 with SMTP id 17so3647229ywa.0 for ; Thu, 10 Nov 2011 07:18:00 -0800 (PST) In-Reply-To: <81hb2drhmu.fsf@gmail.com> (Jambunathan K.'s message of "Wed, 09 Nov 2011 10:56:17 +0530") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Price Cc: Erik Hetzner , Org Mode , mail@christianmoe.com --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > 1. org-zotero.el > > This permits insertion of zotero reference links *only* and > opening them with a browser.=20 > > Specifically I don't see the translator of these links to > individual backends like latex, html or more importantly ODT. > > #+begin_src emacs-lisp > (org-add-link-type TYPE &optional FOLLOW EXPORT) > #+end_src > > 2. zotero.el > > This (apparently) permits download of data from firefox and > importing it within Emacs. I think I now have some understanding of what Erik's library does[1].=20 It creates a bibliographic entry (as in Footnotes) using Quick Copy. It doesn not create a footnote reference. One can use the Firefox Zotero and see how Quick Copy works with both RTF and HTML formats[2]. [Question to Erik: Can one not use "Copy from Clipboard" from elisp instead of going the mozrepl route to create a biblio.text] Instead of working with JS libraries, I think the right starting point would be to work with the underlying zotero.sqlite database itself. It is not difficult to get a key of the selected item in Zotero pane[3]. Once this is done the underlying zotero.sqlite database could be queried for the item properties[4]. Fortunately there is already a GUI/Command line tool - Gnotero[5] -for accessing the sqlite database. As for exploiting the power of using zotero within libreoffice - which is to have the same citation presented in different citation styles - one need to look at how the reference marks are produced within OpenDocument XML. Here is a typical reference mark for an item with local zotero URL[6]: zotero://report/items/579241_E7232HE2/html/report.html LIBRARY=3D>579241 KEY=3D>E7232HE2 #+begin_src nxml Crew, =E2=80=9CAlltagsgeschichte.=E2=80=9D #+end_src nxml One can see the following components: 1. ZOTERO_ITEM=20 2. citationID and citationItems - The citationItem has the following Zotero URI: http://zotero.org/groups/51961/items/E7232HE2 =20=20=20=20=20 GROUP=3D>51961 KEY=3D>E7232HE2 Note that the keys for the entry are the same on both the local zotero store and the global zotero URI. 3. RNDB7mi3QiueI - This is a cookie entered by Zotero which maps the citation entry to an entry in the zotero database. Note that it starts with RND. This is what is called as a "FieldCode" in zotero parlance. Note: Have you seen the "Remove Field Codes" in Zotero menu within ODT document. Once you remove the field codes the document becomes a simple ODT document and one would no longer be able to move between different citation styles. In essence, "Field Code" is the MAGIC WAND that zotero uses. >From my little research, I can say with confidence that global zotero URIs and the above mentioned reference marks are *very* recent developments. Exercising the MAGIC WAND within ODT exporter requires diving in to zotero server inner workings - which is non-trivial as Erik notes - but would also be futile (as in chasing a shifting sand) I believe the best course would be to do convention/static footnoting with the simplest of Chicago styles using a choice of entry types like Article, Journal, Book or a Website. Proposal for Org+Zotero integration =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D An org document like this --8<---------------cut here---------------start------------->8--- #+begin_src org * Headline This is a footnote reference[1] Footnotes: [1] zotero://report/items/579241_E7232HE2/html/report.html #+end_src org --8<---------------cut here---------------end--------------->8--- will be transformed to this on ODT export --8<---------------cut here---------------start------------->8--- #+begin_odt * Headline This is a footnote reference[1]=20=20=20=20=20 Bibliography: 1. David F. Crew, =E2=80=9CAlltagsgeschichte: A New Social History =E2=80= =98From below=E2=80=99?,=E2=80=9D Central European History 22, no. 3/4 (1989): 394-= 407. #+end_odt --8<---------------cut here---------------end--------------->8--- Note that the footnote link is an org stlye link captured with org-protocol and has both a LIBRARY_ID and KEY_ID. The bibliography entry will be generated by "exporting" zotero link to the required format using a variation of gnotero. The "following/opening" of zotero link will be done by mapping the local zotero link to http://zotero.org-based URI (again) using gnotero. I see that there is a need for bib2odt in much the same way as there is a bib2html. Can someone post an example of Org file which would use BibTex for post-processing (either to HTML or LaTeX) The ODT exporter can also emulate what other backend does. ps: This mail is more of a note to self or a note to any future hackers. I am not certain I will be able to hack gnotero and have it integrate with Emacs - but for a whimsical and a bored hacker like nothing can be said with certainty. Btw, gnotero is good. Not sure how usable it is though ... Jambunathan K. Footnotes:=20 [1] With Mozrepl 1.1 beta2 on Firefox 3.6.23, I am unable to make org-zotero.el work. It hangs and I have to C-g out (Christian! you are not alone). I am able to get as far as creating the LIBRARY_KEY for the selected item in the zotero pane and not further. [2] Quick Copy: http://www.zotero.org/support/creating_bibliographies [3] For producing ITEM keys: One could use zotero.el or simply "Right Click" on an item and do a "Generate Report from Selected Item". The resulting url in firefox could be captured using org-protocol and imported in to the org buffer. A typical URL looks like this: zotero://report/items/0_6EETTDBE/html/report.html 0 =3D> My Library 6EETTDBE =3D> Key of the selected item or=20 zotero://report/items/579241_E7232HE2/html/report.html 579241 =3D> The local library key for "Digital Humanities UofT group" E7232HE2 =3D> Key of the selected item. [4] For locating zotero.sqlite and querying it with Sqlite Manager see - https://www.zotero.org/utils/dbfix/ - http://kimmonsdesign.com/node/24 [5] http://cogsci.nl/software/qnotero http://www.cogsci.nl/blog/tutorials/97-writing-a-command-line-zotero-client= -in-9-lines-of-code http://files.cogsci.nl/software/gnotero/extras/gnotero_cmdline.py [6] See the attached zotero-libreoffice.odt --=-=-= Content-Type: application/vnd.oasis.opendocument.text Content-Disposition: attachment; filename=zotero-libreoffice.odt Content-Transfer-Encoding: base64 Content-Description: zotero-libreoffice.odt UEsDBBQAAAgAAHVzaj9exjIMJwAAACcAAAAIAAAAbWltZXR5cGVhcHBsaWNhdGlvbi92bmQub2Fz aXMub3BlbmRvY3VtZW50LnRleHRQSwMEFAAACAAAdXNqP/ybwqbEBgAAxAYAA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AAAICAB1c2o/ dqSLeBAJAACBMgAACgAAAAAAAAAAAAAAAAAAJwAAc3R5bGVzLnhtbFBLAQIUABQAAAgIAHVzaj+j +wUSIQEAAD4EAAAVAAAAAAAAAAAAAAAAADgwAABNRVRBLUlORi9tYW5pZmVzdC54bWxQSwUGAAAA ABEAEQCIBAAAjDEAAAAA --=-=-= Content-Type: text/plain -- --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: zotero plain, org-odt, and citations in general Date: Thu, 10 Nov 2011 05:50:00 -1000 Message-ID: References: <81hb2drhmu.fsf@gmail.com> <81mxc4ovlh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROWtR-0004gg-Di for emacs-orgmode@gnu.org; Thu, 10 Nov 2011 10:50:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROWtN-0000ui-RU for emacs-orgmode@gnu.org; Thu, 10 Nov 2011 10:50:21 -0500 Received: from oproxy5-pub.bluehost.com ([67.222.38.55]:50772) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ROWtN-0000uA-6w for emacs-orgmode@gnu.org; Thu, 10 Nov 2011 10:50:17 -0500 In-Reply-To: <81mxc4ovlh.fsf@gmail.com> (Jambunathan K.'s message of "Thu, 10 Nov 2011 20:47:30 +0530") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jambunathan K Cc: Erik Hetzner , Org Mode , mail@christianmoe.com Jambunathan K writes: >> 1. org-zotero.el >> >> This permits insertion of zotero reference links *only* and >> opening them with a browser.=20 >> >> Specifically I don't see the translator of these links to >> individual backends like latex, html or more importantly ODT. >> >> #+begin_src emacs-lisp >> (org-add-link-type TYPE &optional FOLLOW EXPORT) >> #+end_src >> >> 2. zotero.el >> >> This (apparently) permits download of data from firefox and >> importing it within Emacs. > > > I think I now have some understanding of what Erik's library does[1].=20 > > It creates a bibliographic entry (as in Footnotes) using Quick Copy. It > doesn not create a footnote reference. One can use the Firefox Zotero > and see how Quick Copy works with both RTF and HTML formats[2]. > > [Question to Erik: Can one not use "Copy from Clipboard" from elisp > instead of going the mozrepl route to create a biblio.text] > > Instead of working with JS libraries, I think the right starting point > would be to work with the underlying zotero.sqlite database itself. It > is not difficult to get a key of the selected item in Zotero > pane[3]. Once this is done the underlying zotero.sqlite database could > be queried for the item properties[4]. > > Fortunately there is already a GUI/Command line tool - Gnotero[5] -for > accessing the sqlite database. > > As for exploiting the power of using zotero within libreoffice - which > is to have the same citation presented in different citation styles - > one need to look at how the reference marks are produced within > OpenDocument XML. > > Here is a typical reference mark for an item with local zotero URL[6]: > zotero://report/items/579241_E7232HE2/html/report.html > > LIBRARY=3D>579241 > KEY=3D>E7232HE2 > > > #+begin_src nxml > > > > #+end_src nxml > > One can see the following components: > 1. ZOTERO_ITEM=20 > 2. citationID and citationItems > - The citationItem has the following Zotero URI: > http://zotero.org/groups/51961/items/E7232HE2 >=20=20=20=20=20=20 > GROUP=3D>51961 > KEY=3D>E7232HE2 > > Note that the keys for the entry are the same on both the local > zotero store and the global zotero URI. > 3. RNDB7mi3QiueI > - This is a cookie entered by Zotero which maps the citation entry to > an entry in the zotero database. Note that it starts with RND. > > This is what is called as a "FieldCode" in zotero parlance. > > Note: Have you seen the "Remove Field Codes" in Zotero menu within > ODT document. Once you remove the field codes the document becomes > a simple ODT document and one would no longer be able to move > between different citation styles. > > In essence, "Field Code" is the MAGIC WAND that zotero uses. > > From my little research, I can say with confidence that global zotero > URIs and the above mentioned reference marks are *very* recent > developments. > > Exercising the MAGIC WAND within ODT exporter requires diving in to > zotero server inner workings - which is non-trivial as Erik notes - but > would also be futile (as in chasing a shifting sand) > > I believe the best course would be to do convention/static footnoting > with the simplest of Chicago styles using a choice of entry types like > Article, Journal, Book or a Website. > > Proposal for Org+Zotero integration > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > An org document like this > > #+begin_src org > * Headline > This is a footnote reference[1] > > Footnotes: > [1] zotero://report/items/579241_E7232HE2/html/report.html > #+end_src org > > will be transformed to this on ODT export > > #+begin_odt > * Headline > This is a footnote reference[1]=20=20=20=20=20 > > Bibliography: > > 1. David F. Crew, =E2=80=9CAlltagsgeschichte: A New Social History =E2=80= =98From > below=E2=80=99?,=E2=80=9D Central European History 22, no. 3/4 (1989): 39= 4-407. > #+end_odt > > Note that the footnote link is an org stlye link captured with > org-protocol and has both a LIBRARY_ID and KEY_ID. The bibliography > entry will be generated by "exporting" zotero link to the required > format using a variation of gnotero. The "following/opening" of zotero > link will be done by mapping the local zotero link to > http://zotero.org-based URI (again) using gnotero. > > > I see that there is a need for bib2odt in much the same way as there is > a bib2html. Can someone post an example of Org file which would use > BibTex for post-processing (either to HTML or LaTeX) The ODT exporter > can also emulate what other backend does. > > ps: This mail is more of a note to self or a note to any future > hackers. I am not certain I will be able to hack gnotero and have it > integrate with Emacs - but for a whimsical and a bored hacker like > nothing can be said with certainty. > > Btw, gnotero is good. Not sure how usable it is though ... > > Jambunathan K. > > Footnotes:=20 > > [1] With Mozrepl 1.1 beta2 on Firefox 3.6.23, I am unable to make > org-zotero.el work. It hangs and I have to C-g out (Christian! you are > not alone). I am able to get as far as creating the LIBRARY_KEY for the > selected item in the zotero pane and not further. > > [2] Quick Copy: http://www.zotero.org/support/creating_bibliographies > > [3] For producing ITEM keys: One could use zotero.el or simply "Right > Click" on an item and do a "Generate Report from Selected Item". The > resulting url in firefox could be captured using org-protocol and > imported in to the org buffer. A typical URL looks like this: > > zotero://report/items/0_6EETTDBE/html/report.html > 0 =3D> My Library > 6EETTDBE =3D> Key of the selected item > > or=20 > zotero://report/items/579241_E7232HE2/html/report.html > 579241 =3D> The local library key for "Digital Humanities UofT group" > E7232HE2 =3D> Key of the selected item. > > [4] For locating zotero.sqlite and querying it with Sqlite Manager see > - https://www.zotero.org/utils/dbfix/ > - http://kimmonsdesign.com/node/24 > > [5] http://cogsci.nl/software/qnotero > http://www.cogsci.nl/blog/tutorials/97-writing-a-command-line-zotero-clie= nt-in-9-lines-of-code > http://files.cogsci.nl/software/gnotero/extras/gnotero_cmdline.py > > [6] See the attached zotero-libreoffice.odt Aloha Jambunathan, For examples of Org-mode files that use bibtex, the following might be helpful. A tutorial of sorts: http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-17 A piece of reproducible research: https://github.com/tsdye/LKFS hth, Tom --=20 Thomas S. Dye http://www.tsdye.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Hetzner Subject: Re: zotero plain, org-odt, and citations in general Date: Thu, 10 Nov 2011 09:48:53 -0800 Message-ID: <87k477hnqy.wl%egh@e6h.org> References: <81hb2drhmu.fsf@gmail.com> <81mxc4ovlh.fsf@gmail.com> Reply-To: Erik Hetzner Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Thu_Nov_10_09:48:53_2011-1" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROYkf-0007qb-HO for emacs-orgmode@gnu.org; Thu, 10 Nov 2011 12:49:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROYkd-0006Q5-UO for emacs-orgmode@gnu.org; Thu, 10 Nov 2011 12:49:25 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:42282) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROYkd-0006Px-PT for emacs-orgmode@gnu.org; Thu, 10 Nov 2011 12:49:23 -0500 Received: by eye4 with SMTP id 4so3028428eye.0 for ; Thu, 10 Nov 2011 09:49:22 -0800 (PST) In-Reply-To: <81mxc4ovlh.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jambunathan K Cc: Org Mode --Multipart_Thu_Nov_10_09:48:53_2011-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Jambunathan, Thanks for the very detailed reply. Some responses below. In your previous message, you asked who the author of zotero.el is. I am. I will add author info. At Thu, 10 Nov 2011 20:47:30 +0530, Jambunathan K wrote: >=20 > I think I now have some understanding of what Erik's library does[1].=20 >=20 > It creates a bibliographic entry (as in Footnotes) using Quick Copy. It > doesn not create a footnote reference. One can use the Firefox Zotero > and see how Quick Copy works with both RTF and HTML formats[2]. This is correct. I should note that this method is totally inadequate, as Frank Bennett showed me, for the generation of documents formatting according to the various style guides. It cannot handle in-text citations, bibliographies, or cross references. To get some idea of how this happens in zot4rst (part of zotero-plain), see [1]. I should also note that this process is complicated, involving a number of steps. Have a look at the python dir in zotero-plain to get an idea. > [Question to Erik: Can one not use "Copy from Clipboard" from elisp > instead of going the mozrepl route to create a biblio.text] Yes, but then one cannot select an item in Zotero and insert a link into an org doc from org itself. I should note that while the org/zotero integration in zotero-plain =E2=80=9Cworks for me=E2=80=9D, I would welcome changes to make it more rob= ust and feature-full. But I use org for notes and todo lists, not for document production. > Instead of working with JS libraries, I think the right starting point > would be to work with the underlying zotero.sqlite database itself. It > is not difficult to get a key of the selected item in Zotero > pane[3]. Once this is done the underlying zotero.sqlite database could > be queried for the item properties[4]. >=20 > Fortunately there is already a GUI/Command line tool - Gnotero[5] -for > accessing the sqlite database. This would certainly work. However, one problem would be that gnotero cannot generate formatted citations from a reference, that is, it cannot use CSL [2] style rules to generate arbitrary citation formats. This might be fine; some simple c =20 > As for exploiting the power of using zotero within libreoffice - which > is to have the same citation presented in different citation styles - > one need to look at how the reference marks are produced within > OpenDocument XML. Not only that, but how the LibreOffice plugin communicates with Zotero, specifically the citeproc-js [1] part of Zotero, to generate in-text citations, bibliographies, etc. > [=E2=80=A6] > > Footnotes:=20 >=20 > [1] With Mozrepl 1.1 beta2 on Firefox 3.6.23, I am unable to make > org-zotero.el work. It hangs and I have to C-g out (Christian! you are > not alone). I am able to get as far as creating the LIBRARY_KEY for the > selected item in the zotero pane and not further. > > [=E2=80=A6] Have you started MozRepl from Firefox? I re-installed mozrepl, checked that I am using the latest (and unmodified) versions of moz.el and zotero-plain. Everything seems fine. This is with Emacs 23 - perhaps Emacs 24 changes things? best, Erik 1. http://gsl-nagoya-u.net/http/pub/citeproc-doc.html 2. http://www.zotero.org/styles --Multipart_Thu_Nov_10_09:48:53_2011-1 Content-Type: text/plain; charset=US-ASCII Sent from my free software system . --Multipart_Thu_Nov_10_09:48:53_2011-1-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: zotero plain, org-odt, and citations in general Date: Fri, 11 Nov 2011 10:37:03 -0500 Message-ID: References: <8762itvkuk.wl%egh@e6h.org> <81aa85daf2.fsf@gmail.com> <4EBAD6E6.1080408@christianmoe.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f646a4f06b9ad04b1774b1e Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROtAC-0003gl-9j for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 10:37:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROtAB-0004D6-1v for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 10:37:08 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:33104) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROtAA-0004Ct-Tf for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 10:37:07 -0500 Received: by eye4 with SMTP id 4so3922706eye.0 for ; Fri, 11 Nov 2011 07:37:05 -0800 (PST) In-Reply-To: <4EBAD6E6.1080408@christianmoe.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: mail@christianmoe.com Cc: emacs-orgmode@gnu.org --e89a8f646a4f06b9ad04b1774b1e Content-Type: text/plain; charset=ISO-8859-1 On Wed, Nov 9, 2011 at 2:39 PM, Christian Moe wrote: > Hi, > > Is zotero-plain working for others? > > I test drove zotero-plain back when it was just developed. Looked > promising, but I had uneven success with the MozRepl communication, > possibly something to do with being on an older and slower machine. > > Trying it again today (with the most recent zotero-plain, MozRepl and > moz.el I could find), I press `C-c z i' to insert a citation and nothing > happens. Well, the Org buffer hangs until I press C-g, and except that the > *MozRepl* buffer says "Process MozRepl deleted". > Similar for me -- the Org buffer hangs, and MozRepl looks like it's just been sitting there idly. also on the most recent MozRepl, emacs 24, fairly recent org-mode, firefox 8, ubuntu 10.10. --e89a8f646a4f06b9ad04b1774b1e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Wed, Nov 9, 2011 at 2:39 PM, Christia= n Moe <mail@c= hristianmoe.com> wrote:
Hi,

Is zotero-plain working for others?

I test drove zotero-plain back when it was just developed. Looked promising= , but I had uneven success with the MozRepl communication, possibly somethi= ng to do with being on an older and slower machine.

Trying it again today (with the most recent zotero-plain, MozRepl and moz.e= l I could find), I press `C-c z i' to insert a citation and nothing hap= pens. Well, the Org buffer hangs until I press C-g, and except that the *Mo= zRepl* buffer says "Process MozRepl deleted".
=A0Similar for me -- the Org buffer hangs, and MozRepl looks like it's just been sitting there idly.=A0 =

also on the most recent MozRepl, emacs 24, fairly recent org-mode, = firefox 8, ubuntu 10.10.

--e89a8f646a4f06b9ad04b1774b1e-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: zotero plain, org-odt, and citations in general Date: Fri, 11 Nov 2011 10:51:22 -0500 Message-ID: References: <81hb2drhmu.fsf@gmail.com> <81mxc4ovlh.fsf@gmail.com> <87k477hnqy.wl%egh@e6h.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d044470d3314fc204b1777ed2 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROtO2-0007QV-Ri for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 10:51:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROtO1-0007O8-9y for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 10:51:26 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:44497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROtO1-0007O3-2G for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 10:51:25 -0500 Received: by faas10 with SMTP id s10so1899440faa.0 for ; Fri, 11 Nov 2011 07:51:24 -0800 (PST) In-Reply-To: <87k477hnqy.wl%egh@e6h.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Erik Hetzner Cc: Org Mode , Jambunathan K --f46d044470d3314fc204b1777ed2 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Responding to just a few of the excellent points raised by J 7 E On Thu, Nov 10, 2011 at 12:48 PM, Erik Hetzner wrote: > At Thu, 10 Nov 2011 20:47:30 +0530, > Jambunathan K wrote: > > > > > I should note that while the org/zotero integration in zotero-plain > =93works for me=94, I would welcome changes to make it more robust and > feature-full. But I use org for notes and todo lists, not for document > production. > I'm trying to switch to using org for most of my writing; among other things, I now use it for posting to wordpress and (hopefully soon) drupal, where most of my teaching work takes place. So I htink there's a case to make for org as a person's main workspace. > > > Instead of working with JS libraries, I think the right starting point > > would be to work with the underlying zotero.sqlite database itself. It > > is not difficult to get a key of the selected item in Zotero > > pane[3]. Once this is done the underlying zotero.sqlite database could > > be queried for the item properties[4]. > Wouldn't the rigt target be, not the sqlite db, but the Zoteor *service* that runs on port 50001 when Zotero is running? Aren't there some higher-level tools for working through that interface -- e.g., erik, your rst tool uses a python library, does it talk to Zotero that way? > > > > Fortunately there is already a GUI/Command line tool - Gnotero[5] -for > > accessing the sqlite database. > > This would certainly work. However, one problem would be that gnotero > cannot generate formatted citations from a reference, that is, it > cannot use CSL [2] style rules to generate arbitrary citation > formats. This might be fine; some simple c > > > As for exploiting the power of using zotero within libreoffice - which > > is to have the same citation presented in different citation styles - > > one need to look at how the reference marks are produced within > > OpenDocument XML. > > Not only that, but how the LibreOffice plugin communicates with > Zotero, specifically the citeproc-js [1] part of Zotero, to generate > in-text citations, bibliographies, etc. > so, couldn't one think of the problem as having three parts: (1) get emacs to talk to the zotero server; and (2) figure out how org/emacs should interact with citeproc (3) translate the org zotero links into a syntax that LibreOffice recognizes and can successfully manipulate and am I further right that, as an interim measure, solving (1) and (3) properly and throwing together a quick hack for (2) -- in which org supports exactly one, very simple citation style -- would make a workflow possible in which a person could compose in Org, and translate to ODT for the final processing of a document, and/or export to HTML using only the one citaqtion style that is supported by the aforementioned hack? thanks again for all the help, folks, matt --f46d044470d3314fc204b1777ed2 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Responding to just a few of the excellent points raised by J 7 E

On Thu, Nov 10, 2011 at 12:48 PM, Erik Hetzner <egh@e6h.org>= wrote:
At Thu, 10 Nov 2011 20:47:30 +0530,
Jambunathan K wrote:
>
>
I should note that while the org/zotero integration in zotero-plain
=93works for me=94, I would welcome changes to make it more robust and
feature-full. But I use org for notes and todo lists, not for document
production.
I'm trying to switch to using org for = most of my writing; among other things, I now use it for posting to wordpre= ss and (hopefully soon) drupal, where most of my teaching work takes place.= So I htink there's a case to make for org as a person's main works= pace.

> Instead of working with JS libraries, I think the right starting point=
> would be to work with the underlying zotero.sqlite database itself. It=
> is not difficult to get a key of the selected item in Zotero
> pane[3]. Once this is done the underlying zotero.sqlite database could=
> be queried for the item properties[4].

= Wouldn't the rigt target be, not the sqlite db, but the Zoteor *service= * that runs on port 50001 when Zotero is running?=A0 Aren't there some = higher-level tools for working through that interface -- e.g., erik, your r= st tool uses a python library, does it talk to Zotero that way?
=A0
>
> Fortunately there is already a GUI/Command line tool - Gnotero[5] -for=
> accessing the sqlite database.

This would certainly work. However, one problem would be that gnotero=
cannot generate formatted citations from a reference, that is, it
cannot use CSL [2] style rules to generate arbitrary citation
formats. This might be fine; some simple c

> As for exploiting the power of using zotero within libreoffice - which=
> is to have the same citation presented in different citation styles -<= br> > one need to look at how the reference marks are produced within
> OpenDocument XML.

Not only that, but how the LibreOffice plugin communicates with
Zotero, specifically the citeproc-js [1] part of Zotero, to generate
in-text citations, bibliographies, etc.

so, couldn= 't one think of the problem as having three parts:=A0
(1) get emacs= to talk to the zotero server; and
(2) figure out how org/emacs should i= nteract with citeproc
(3) translate the org zotero links into a syntax that LibreOffice recognize= s and can successfully manipulate

and am I further right that, as an= interim measure, solving (1) and (3) properly and throwing together a quic= k hack for (2)=A0 -- in which org supports exactly one, very simple citatio= n style -- would make a workflow possible in which a person could compose i= n Org, and translate to ODT for the final processing of a document, and/or = export to HTML using only the one citaqtion style that is supported by the = aforementioned hack?=A0

thanks again for all the help, folks,
matt


--f46d044470d3314fc204b1777ed2-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Hetzner Subject: Re: zotero plain, org-odt, and citations in general Date: Fri, 11 Nov 2011 08:12:12 -0800 Message-ID: <87r51eprj7.wl%egh@e6h.org> References: <81hb2drhmu.fsf@gmail.com> <81mxc4ovlh.fsf@gmail.com> <87k477hnqy.wl%egh@e6h.org> Reply-To: Erik Hetzner Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Fri_Nov_11_08:12:11_2011-1" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROtiJ-0004D1-Ls for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 11:12:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROtiI-0002tr-4m for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 11:12:23 -0500 Received: from mail-yw0-f41.google.com ([209.85.213.41]:64259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROtiI-0002tl-1W for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 11:12:22 -0500 Received: by ywp17 with SMTP id 17so1033881ywp.0 for ; Fri, 11 Nov 2011 08:12:21 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Price Cc: Org Mode , Jambunathan K --Multipart_Fri_Nov_11_08:12:11_2011-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable At Fri, 11 Nov 2011 10:51:22 -0500, Matt Price wrote: >=20 > Responding to just a few of the excellent points raised by J 7 E > > On Thu, Nov 10, 2011 at 12:48 PM, Erik Hetzner wrote: >=20 > > At Thu, 10 Nov 2011 20:47:30 +0530, > > Jambunathan K wrote: > > > > > > > > I should note that while the org/zotero integration in zotero-plain > > =E2=80=9Cworks for me=E2=80=9D, I would welcome changes to make it more= robust and > > feature-full. But I use org for notes and todo lists, not for document > > production. This is me you are quoting, for the record. > I'm trying to switch to using org for most of my writing; among other > things, I now use it for posting to wordpress and (hopefully soon) drupal, > where most of my teaching work takes place. So I htink there's a case to > make for org as a person's main workspace. Definitely! Whatever works for you. I prefer the reStructuredText syntax for longer documents, so getting real citations working in org-mode is not a real priority for me. That=E2=80=99s all. > Wouldn't the rigt target be, not the sqlite db, but the Zoteor *service* > that runs on port 50001 when Zotero is running? Aren't there some > higher-level tools for working through that interface -- e.g., erik, your > rst tool uses a python library, does it talk to Zotero that way? the server that runs on port 50001 is undocumented, last I checked. And there are no tools to connect to it. Frank Bennett put together a hack of the jsbridge Firefox extension which works quite well. [1] But that is python only, as far as I can tell. > [=E2=80=A6] >=20 > so, couldn't one think of the problem as having three parts: > (1) get emacs to talk to the zotero server; and > (2) figure out how org/emacs should interact with citeproc > (3) translate the org zotero links into a syntax that LibreOffice > recognizes and can successfully manipulate I think that is a good summary of what needs to be done. (3) is what zot4rst does not bother to do. The task of weaving together the HTML output from citeproc and your export document can be tricky. > and am I further right that, as an interim measure, solving (1) and (3) > properly and throwing together a quick hack for (2) -- in which org > supports exactly one, very simple citation style -- would make a workflow > possible in which a person could compose in Org, and translate to ODT for > the final processing of a document, and/or export to HTML using only the > one citaqtion style that is supported by the aforementioned hack? > > [=E2=80=A6] Yeah, that makes sense. I think (3) is optional as well, depending on what your workflow looks like, and what your needs are for doing final edit= s. best, Erik 1. https://github.com/mozautomation/mozmill --Multipart_Fri_Nov_11_08:12:11_2011-1 Content-Type: text/plain; charset=US-ASCII Sent from my free software system . --Multipart_Fri_Nov_11_08:12:11_2011-1-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Hetzner Subject: Re: zotero plain, org-odt, and citations in general Date: Fri, 11 Nov 2011 09:51:07 -0800 Message-ID: <87obwipmyc.wl%egh@e6h.org> References: <8762itvkuk.wl%egh@e6h.org> <81aa85daf2.fsf@gmail.com> <4EBAD6E6.1080408@christianmoe.com> Reply-To: Erik Hetzner Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Fri_Nov_11_09:51:06_2011-1" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROvG0-0008AB-5V for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 12:51:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROvFy-00035Y-Vj for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 12:51:16 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:45256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROvFy-00035I-QC for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 12:51:14 -0500 Received: by eye4 with SMTP id 4so4069581eye.0 for ; Fri, 11 Nov 2011 09:51:13 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Price Cc: emacs-orgmode@gnu.org, mail@christianmoe.com --Multipart_Fri_Nov_11_09:51:06_2011-1 Content-Type: text/plain; charset=US-ASCII At Fri, 11 Nov 2011 10:37:03 -0500, Matt Price wrote: > > Similar for me -- the Org buffer hangs, and MozRepl looks like it's > just been sitting there idly. > > also on the most recent MozRepl, emacs 24, fairly recent org-mode, firefox > 8, ubuntu 10.10. I was going to suggest this sounds like a problem with Emacs 24, but I installed Emacs 24 & it works for me. I am using Firefox 7, but I doubt that is much of an issue. I assume that you have started MozRepl and selected an item to insert in Zotero? best, Erik --Multipart_Fri_Nov_11_09:51:06_2011-1 Content-Type: text/plain; charset=US-ASCII Sent from my free software system . --Multipart_Fri_Nov_11_09:51:06_2011-1-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: zotero plain, org-odt, and citations in general Date: Fri, 11 Nov 2011 13:34:24 -0500 Message-ID: References: <8762itvkuk.wl%egh@e6h.org> <81aa85daf2.fsf@gmail.com> <4EBAD6E6.1080408@christianmoe.com> <87obwipmyc.wl%egh@e6h.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00032555f6ea30efac04b179c5ff Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44619) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROvvm-0005hG-Ns for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 13:34:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROvvl-0001c8-Hx for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 13:34:26 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:62627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROvvl-0001c2-AW for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 13:34:25 -0500 Received: by bke17 with SMTP id 17so2864712bke.0 for ; Fri, 11 Nov 2011 10:34:24 -0800 (PST) In-Reply-To: <87obwipmyc.wl%egh@e6h.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Erik Hetzner Cc: emacs-orgmode@gnu.org, mail@christianmoe.com --00032555f6ea30efac04b179c5ff Content-Type: text/plain; charset=ISO-8859-1 On Fri, Nov 11, 2011 at 12:51 PM, Erik Hetzner wrote: > At Fri, 11 Nov 2011 10:37:03 -0500, > Matt Price wrote: > > > > Similar for me -- the Org buffer hangs, and MozRepl looks like it's > > just been sitting there idly. > > > > also on the most recent MozRepl, emacs 24, fairly recent org-mode, > firefox > > 8, ubuntu 10.10. > > I was going to suggest this sounds like a problem with Emacs 24, but I > installed Emacs 24 & it works for me. I am using Firefox 7, but I > doubt that is much of an issue. > > I assume that you have started MozRepl and selected an item to insert > in Zotero? > > best, Erik > yes, I had done those two things (htough not hte first time round!). If MozRepl isn't started I get a diferent, quite helpful error message; in this case there is just (as for Christian) a message "Process MozRepl deleted" which shows up before I press C-g to end the hang. I imagine htis is a bug in MozRepl --00032555f6ea30efac04b179c5ff Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Fri, Nov 11, 2011 at 12:51 PM, Erik H= etzner <egh@e6h.org= > wrote:
At Fri, 11 Nov 2011 10:37:03 -0500,
Matt Price wrote:
>
> Similar for me -- the Org buffer hangs, and MozRepl looks like it'= s
> just been sitting there idly.
>
> also on the most recent MozRepl, emacs 24, fairly recent org-mode, fir= efox
> 8, ubuntu 10.10.

I was going to suggest this sounds like a problem with Emacs 24, but = I
installed Emacs 24 & it works for me. I am using Firefox 7, but I
doubt that is much of an issue.

I assume that you have started MozRepl and selected an item to insert
in Zotero?

best, Erik
=A0
yes, I had done those two thi= ngs (htough not hte first time round!).=A0 If MozRepl isn't started I g= et a diferent, quite helpful error message; in this case there is just (as = for Christian) a message "Process MozRepl deleted" which shows up= before I press C-g to end the hang.=A0 I imagine htis is a bug in MozRepl<= br>

--00032555f6ea30efac04b179c5ff-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: zotero plain, org-odt, and citations in general Date: Fri, 11 Nov 2011 13:45:27 -0500 Message-ID: References: <81hb2drhmu.fsf@gmail.com> <81mxc4ovlh.fsf@gmail.com> <87k477hnqy.wl%egh@e6h.org> <87r51eprj7.wl%egh@e6h.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec554016ab8e85d04b179ec47 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROw6U-0007kY-Dm for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 13:45:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROw6T-0003XC-1E for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 13:45:30 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:36687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROw6S-0003X5-LG for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 13:45:28 -0500 Received: by bke17 with SMTP id 17so2874917bke.0 for ; Fri, 11 Nov 2011 10:45:27 -0800 (PST) In-Reply-To: <87r51eprj7.wl%egh@e6h.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Erik Hetzner Cc: Org Mode , Jambunathan K --bcaec554016ab8e85d04b179ec47 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On Fri, Nov 11, 2011 at 11:12 AM, Erik Hetzner wrote: > At Fri, 11 Nov 2011 10:51:22 -0500, > Matt Price wrote: > > > > Responding to just a few of the excellent points raised by J 7 E > > > > On Thu, Nov 10, 2011 at 12:48 PM, Erik Hetzner wrote: > > > > > At Thu, 10 Nov 2011 20:47:30 +0530, > > > Jambunathan K wrote: > > > > > > > > > > > I should note that while the org/zotero integration in zotero-plain > > > =93works for me=94, I would welcome changes to make it more robust an= d > > > feature-full. But I use org for notes and todo lists, not for documen= t > > > production. > > This is me you are quoting, for the record. > > yes sorry, bad formatting on my part! > > > Wouldn't the rigt target be, not the sqlite db, but the Zoteor *service= * > > that runs on port 50001 when Zotero is running? Aren't there some > > higher-level tools for working through that interface -- e.g., erik, yo= ur > > rst tool uses a python library, does it talk to Zotero that way? > > the server that runs on port 50001 is undocumented, last I > checked. And there are no tools to connect to it. Frank Bennett put > together a hack of the jsbridge Firefox extension which works quite > well. [1] But that is python only, as far as I can tell. > sorry to hear about the lack of documentation. that's a bummer actually. > > [=85] > > > > so, couldn't one think of the problem as having three parts: > > (1) get emacs to talk to the zotero server; and > > (2) figure out how org/emacs should interact with citeproc > > (3) translate the org zotero links into a syntax that LibreOffice > > recognizes and can successfully manipulate > > I think that is a good summary of what needs to be done. (3) is what > zot4rst does not bother to do. > > The task of weaving together the HTML output from citeproc and your > export document can be tricky. > if tricky for you, then likely unmanageable for me. but I wonder if Zotero themselves would be interested in helping a little bit with some of this work? Seems sort of strange to build this great tool and then limit its usefulness to two hulking word processors, when really the goal of portable, reformattable citations applies just as much to text and html as to word processing documents. best, matt --bcaec554016ab8e85d04b179ec47 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable

On Fri, Nov 11, 2011 at 11:12 AM, Erik H= etzner <egh@e6h.org= > wrote:
At Fri, 11 Nov 2011 10:51:22 -0500,
Matt Price wrote:
>
> Responding to just a few of the excellent points raised by J 7 E
>
> On Thu, Nov 10, 2011 at 12:48 PM, Erik Hetzner <egh@e6h.org> wrote:
>
> > At Thu, 10 Nov 2011 20:47:30 +0530,
> > Jambunathan K wrote:
> > >
> > >
> > I should note that while the org/zotero integration in zotero-pla= in
> > =93works for me=94, I would welcome changes to make it more robus= t and
> > feature-full. But I use org for notes and todo lists, not for doc= ument
> > production.

This is me you are quoting, for the record.

yes sorry, bad formatting on = my part!

> Wouldn't the rigt target be, not the sqlite db, but the Zoteor *se= rvice*
> that runs on port 50001 when Zotero is running? =A0Aren't there so= me
> higher-level tools for working through that interface -- e.g., erik, y= our
> rst tool uses a python library, does it talk to Zotero that way?

the server that runs on port 50001 is undocumented, last I
checked. And there are no tools to connect to it. Frank Bennett put
together a hack of the jsbridge Firefox extension which works quite
well. [1] But that is python only, as far as I can tell.

sorry to hear about the lack of documentation.=A0 that's a bumme= r actually.


> [=85]
>
> so, couldn't one think of the problem as having three parts:
> (1) get emacs to talk to the zotero server; and
> (2) figure out how org/emacs should interact with citeproc
> (3) translate the org zotero links into a syntax that LibreOffice
> recognizes and can successfully manipulate

I think that is a good summary of what needs to be done. (3) is what<= br> zot4rst does not bother to do.

The task of weaving together the HTML output from citeproc and your
export document can be tricky.
if tricky for you, then= likely unmanageable for me. =A0 but I wonder if Zotero themselves would be= interested in helping a little bit with some of this work?=A0 Seems sort o= f strange to build this great tool and then limit its usefulness to two hul= king word processors, when really the goal of portable, reformattable citat= ions applies just as much to text and html as to word processing documents.=

best,
matt
=A0
--bcaec554016ab8e85d04b179ec47-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: zotero-cite (A Proposal) Date: Sat, 12 Nov 2011 02:04:52 +0530 Message-ID: <81k4762yab.fsf_-_@gmail.com> References: <81hb2drhmu.fsf@gmail.com> <81mxc4ovlh.fsf@gmail.com> <87k477hnqy.wl%egh@e6h.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROxoa-0003vr-TP for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 15:35:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROxoZ-0005HB-77 for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 15:35:08 -0500 Received: from mail-pz0-f47.google.com ([209.85.210.47]:49311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROxoY-0005Fo-SI for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 15:35:07 -0500 Received: by pzk1 with SMTP id 1so4009289pzk.6 for ; Fri, 11 Nov 2011 12:35:05 -0800 (PST) In-Reply-To: <87k477hnqy.wl%egh@e6h.org> (Erik Hetzner's message of "Thu, 10 Nov 2011 09:48:53 -0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Erik Hetzner Cc: Org Mode , mail@christianmoe.com --=-=-= Content-Type: text/plain Hello Erik Good news. Getting a frugal Zotero-based citations is *definitely* possible. It is just a matter of time. Your libraries already provide the necessary plumbing to accomplish the job. Long story ========== For my own understanding, I tried trimming down zot4rst to it's bare essentials and the attached zotcite.py is the result. What zotcite does is this: For two Zotero Items, it prints their Bibliogrpahic entries and their Citation Reference, in "Text" format using Chicago-Author-Date style. I believe a commandline interface could be built around this file along the following lines. (Will you be interested in building this interface for us?) $ zotcite --style chicago --format --items I1, I2 --print biblio $ zotcite --style chicago --format --items I1, I2 --print citeref Once this is done, Emacs/Org can do invoke zotcite and get the required Bibliographic definitions and references using "shell-command". The assumption is that Emacs/Org somehow has captured zotero keys through org-protocol or org-zotero.el or someother means. Here is a output from zotcite.py. --8<---------------cut here---------------start------------->8--- $ python zotcite.py C.UTF-8 C.UTF-8 ======== KEYS ======== I4AUIZ4S AKJZBHRW ======== ITEM_IDs ======== [6, 40] ======== BIBDATA ======== [u'Brin, S. 1999. \u201cExtracting patterns and relations from the world wide web.\u201d The World Wide Web and Databases: 172\u2013183.\n', u'Jambunathan, K. On Choice of Connection-Polynomials for LFSR-Based Stream Ciphers. In Progress in Cryptology \u2014INDOCRYPT 2000, ed. Bimal Roy and Eiji Okamoto, 1977:9-18. Berlin, Heidelberg: Springer Berlin Heidelberg. http://www.springerlink.com/content/n27yjr5eqhabux0g/.\n'] ===== CITATION REFERENCE ===== (This Brin 1999 That) --8<---------------cut here---------------end--------------->8--- IIRC, I made two changes to the export.js in your Javascript backend. 1. I had trouble understanding the organization of citation clusters. So I modified getCitationBlock as below. Note the use of "true" as a second param of the appendCitationCluster. This is OK as registerItemIds already does updateItems(). --8<---------------cut here---------------start------------->8--- function getCitationBlock (citation) { var results; var str = ""; try { results = zotero.reStructuredCSL.appendCitationCluster(citation, true); } catch (e) { zotero.debug("XXX oops: "+e); } // var index = citation['properties']['index']; // for (var i = 0 ; i <= results.length ; i++) { // // if (results[i][0] == index) { // return escape(str + results[i][1]); // // } // } return escape(results[0][1]); } --8<---------------cut here---------------end--------------->8--- 2. There should be way to set the output format form python side of things. I had to modify instantiateCiteProc by hand to set the output format to "text". You know what output format that LibreOffice plugin uses? I see "text", "html" and "rtf" as output formats. But not ODT. See https://bitbucket.org/fbennett/citeproc-js/src/tip/src/formats.js --8<---------------cut here---------------start------------->8--- function instantiateCiteProc (styleid) { // Suspenders and a belt. try { if (!styleid) { styleid = "chicago-author-date"; } if (styleid.slice(0,7) !== 'http://') { styleid = 'http://www.zotero.org/styles/' + styleid; } zotero.debug("XXX does this exist?: " + styleid); var style = zotero.Styles.get(styleid); zotero.reStructuredCSL = style.csl; zotero.reStructuredCSL.setOutputFormat("text"); } catch (e) { zotero.debug("XXX instantiateCiteProc oops: " + e); } }; --8<---------------cut here---------------end--------------->8--- Btw, I found that with my 2-day old zotero database and for printing the above 2 keys, the whole machinery takes a perceivably a lot of time. Is this your experience as well? I am not a netbook. --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=zotcite.py Content-Description: zotcite.py """ Module """ # -*- coding: utf-8 -*- import ConfigParser import json import os # Workaround for crashes seen with localename setting print os.environ["LANG"] os.environ["LANG"]="C.UTF-8" print os.environ["LANG"] import string import sys import jsbridge from zot4rst.util import unquote DEFAULT_CITATION_FORMAT = "http://www.zotero.org/styles/chicago-author-date" # placeholder for global bridge to Zotero zotero_conn = None; # verbose flag verbose_flag = False class ZoteroConn(object): def __init__(self, format, **kwargs): # connect & setup self.back_channel, self.bridge = jsbridge.wait_and_create_network("127.0.0.1", 24242) self.back_channel.timeout = self.bridge.timeout = 60 self.methods = jsbridge.JSObject(self.bridge, "Components.utils.import('resource://csl/export.js')") if zotero_conn is None: zotero_conn = ZoteroConn(DEFAULT_CITATION_FORMAT) zotero_conn.methods.instantiateCiteProc(DEFAULT_CITATION_FORMAT) print "======== KEYS ========" key1 = "I4AUIZ4S" key2 = "AKJZBHRW" print key1 print key2 print "======== ITEM_IDs ========" itemid1 = int(zotero_conn.methods.getItemId(key1)) itemid2 = int(zotero_conn.methods.getItemId(key2)) itemids = [] itemids.append(itemid1) itemids.append(itemid2) print itemids zotero_conn.methods.registerItemIds(itemids) print "======== BIBDATA ========" bibdata = unquote(json.loads(zotero_conn.methods.getBibliographyData())) print bibdata[1] print "===== CITATION REFERENCE ===== " from xciterst import CitationInfo citation = CitationInfo(); citation.id = "40"; citation.prefix="This"; citation.suffix="That"; citation = { 'citationItems' : [citation], 'properties' : { 'index' : 0, # zotero_conn.get_index(cluster) 'noteIndex': 0 # note_index }} res = zotero_conn.methods.getCitationBlock(citation) print unquote(res) --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: zotero plain, org-odt, and citations in general Date: Sat, 12 Nov 2011 02:43:12 +0530 Message-ID: <81fwhu2wif.fsf@gmail.com> References: <81hb2drhmu.fsf@gmail.com> <81mxc4ovlh.fsf@gmail.com> <87k477hnqy.wl%egh@e6h.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROyPe-0007M2-VZ for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 16:13:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROyPd-0001TI-90 for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 16:13:26 -0500 Received: from mail-yw0-f41.google.com ([209.85.213.41]:59002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROyPc-0001T6-Vx for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 16:13:25 -0500 Received: by ywp17 with SMTP id 17so1357282ywp.0 for ; Fri, 11 Nov 2011 13:13:24 -0800 (PST) In-Reply-To: <87k477hnqy.wl%egh@e6h.org> (Erik Hetzner's message of "Thu, 10 Nov 2011 09:48:53 -0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Erik Hetzner Cc: Org Mode Erik >> Footnotes:=20 >>=20 >> [1] With Mozrepl 1.1 beta2 on Firefox 3.6.23, I am unable to make >> org-zotero.el work. It hangs and I have to C-g out (Christian! you are >> not alone). I am able to get as far as creating the LIBRARY_KEY for the >> selected item in the zotero pane and not further. >> >> [=E2=80=A6] > > Have you started MozRepl from Firefox? I re-installed mozrepl, checked > that I am using the latest (and unmodified) versions of moz.el and > zotero-plain. Everything seems fine. This is with Emacs 23 - perhaps > Emacs 24 changes things? Here is what I find: If I put the below snippet in a javascript buffer and do a M-x send-region, I am able to retrieve the library and key of the selected item. #+begin_src javascript repl.whereAmI() var ZoteroPane =3D Components.classes["@mozilla.org/appshell/window-mediato= r;1"].getService(Components.interfaces.nsIWindowMediator).getMostRecentWind= ow("navigator:browser").ZoteroPane; var selected_items =3D ZoteroPane.getSelectedItems(); new String(selected_items.length); selected_items[0].libraryID; selected_items[0].key; #+end_src Here is transaction log: ,---- From *MozRepl* |=20 | Welcome to MozRepl. |=20 | - If you get stuck at the "...>" prompt, enter a semicolon (;) at the be= ginning of the line to force evaluation. | - If you get errors after every character you type, see http://github.co= m/bard/mozrepl/wikis/troubleshooting (short version: stop using Microsoft t= elnet, use netcat or putty instead) |=20 | Current working context: chrome://browser/content/browser.xul | Current input mode: syntax |=20 | repl> [object ChromeWindow] - Document title: "fbennett / citeproc-js / s= ource Bitbucket - Mozilla Firefox" | 1 =E2=80=94 {0: "1"} |=20 | repl> 579241 |=20 | repl> "TPSFKWXK" |=20 | repl>=20 `---- The problem is in zotero-js-write-to-file. The problem happens even after I increase the sleep out time to 1 sec. See the attached backtrace with With M-x toggle-debug-on-quit RET and a C-g I wonder whether the issue is related to we - Matt(?), Christian(?) and I - using Windows. As can be seen from the transaction log, the shell interaction is fine. I am inclined to think that it has something to do with zotero.el. I am wondering whether there is a way to "capture" the selected item as a zotero link through the jsbridge interface. Anyways with massaging of org-protocol we can get a zotero "select" link by viewing the "report" of the current item. Debugger entered--Lisp error: (quit) sleep-for(0 10) (while (not (file-exists-p tmp-file)) (sleep-for 0 10)) (let ((tmp-file (make-temp-file "zotero"))) (delete-file tmp-file) (zoter= o-js-write-to-file tmp-file expr) (while (not (file-exists-p tmp-file)) (sl= eep-for 0 10)) (prog1 (save-excursion (with-temp-buffer (insert-file-conten= ts tmp-file) (buffer-substring-no-properties (point-min) (point-max)))) (de= lete-file tmp-file))) zotero-js-get-string-value("new String(selected_items.length)") (error "%s" (zotero-js-get-string-value "new String(selected_items.length= )")) zotero-get-selected-item-ids() (let ((ids (zotero-get-selected-item-ids))) (mapc (lambda (id) (insert (f= ormat "[[zotero://select//%s][%s]]\n" id id)) (org-zotero-update-reference-= link-at-point) (forward-line 1)) ids)) org-zotero-insert-reference-link() call-interactively(org-zotero-insert-reference-link t nil) execute-extended-command(nil) call-interactively(execute-extended-command nil nil) recursive-edit() debug(error (quit)) sleep-for(1 10) (while (not (file-exists-p tmp-file)) (sleep-for 1 10)) (let ((tmp-file (make-temp-file "zotero"))) (delete-file tmp-file) (zoter= o-js-write-to-file tmp-file expr) (while (not (file-exists-p tmp-file)) (sl= eep-for 1 10)) (prog1 (save-excursion (with-temp-buffer (insert-file-conten= ts tmp-file) (buffer-substring-no-properties (point-min) (point-max)))) (de= lete-file tmp-file))) zotero-js-get-string-value("new String(selected_items.length)") (error "%s" (zotero-js-get-string-value "new String(selected_items.length= )")) zotero-get-selected-item-ids() (let ((ids (zotero-get-selected-item-ids))) (mapc (lambda (id) (insert (f= ormat "[[zotero://select//%s][%s]]\n" id id)) (org-zotero-update-reference-= link-at-point) (forward-line 1)) ids)) org-zotero-insert-reference-link() call-interactively(org-zotero-insert-reference-link t nil) execute-extended-command(nil) call-interactively(execute-extended-command nil nil) --=20 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Hetzner Subject: Re: zotero plain, org-odt, and citations in general Date: Fri, 11 Nov 2011 16:07:38 -0800 Message-ID: <87mxc2p5it.wl%egh@e6h.org> References: <81hb2drhmu.fsf@gmail.com> <81mxc4ovlh.fsf@gmail.com> <87k477hnqy.wl%egh@e6h.org> <87r51eprj7.wl%egh@e6h.org> Reply-To: Erik Hetzner Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Fri_Nov_11_16:07:37_2011-1" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RP18L-00076E-QZ for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 19:07:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RP18K-0004XK-HW for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 19:07:45 -0500 Received: from mail-gx0-f169.google.com ([209.85.161.169]:62163) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RP18K-0004XG-Dk for emacs-orgmode@gnu.org; Fri, 11 Nov 2011 19:07:44 -0500 Received: by ggnq1 with SMTP id q1so1244645ggn.0 for ; Fri, 11 Nov 2011 16:07:43 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Price Cc: Org Mode , Jambunathan K --Multipart_Fri_Nov_11_16:07:37_2011-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable At Fri, 11 Nov 2011 13:45:27 -0500, Matt Price wrote: >=20 > On Fri, Nov 11, 2011 at 11:12 AM, Erik Hetzner wrote: > > [=E2=80=A6] > > if tricky for you, then likely unmanageable for me. but I wonder if > Zotero themselves would be interested in helping a little bit with some of > this work? Seems sort of strange to build this great tool and then limit > its usefulness to two hulking word processors, when really the goal of > portable, reformattable citations applies just as much to text and html as > to word processing documents. Agreed, but I think that Word, Open/LibreOffice, and LaTeX cover most use cases. I don=E2=80=99t think the Zotero people have the time to do any extra work, but they are almost helpful answering questions. pandoc has similar support for citations and is worth taking a look at. It requires export from Zotero, but this can be automated. -Erik --Multipart_Fri_Nov_11_16:07:37_2011-1 Content-Type: text/plain; charset=US-ASCII Sent from my free software system . --Multipart_Fri_Nov_11_16:07:37_2011-1-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: zotero plain, org-odt, and citations in general Date: Sat, 12 Nov 2011 08:21:18 +0100 Message-ID: <4EBE1E6E.2040900@christianmoe.com> References: <81hb2drhmu.fsf@gmail.com> <81mxc4ovlh.fsf@gmail.com> <87k477hnqy.wl%egh@e6h.org> <81fwhu2wif.fsf@gmail.com> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RP7qW-00036U-Bq for emacs-orgmode@gnu.org; Sat, 12 Nov 2011 02:17:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RP7qV-0001cQ-Dn for emacs-orgmode@gnu.org; Sat, 12 Nov 2011 02:17:48 -0500 Received: from b1.hitrost.net ([91.185.211.67]:47181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RP7qV-0001Zr-8l for emacs-orgmode@gnu.org; Sat, 12 Nov 2011 02:17:47 -0500 In-Reply-To: <81fwhu2wif.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jambunathan K Cc: Erik Hetzner , Org Mode On 11/11/11 10:13 PM, Jambunathan K wrote: > I wonder whether the issue is related to we - Matt(?), Christian(?) and > I - using Windows. You can scratch that possibility, I'm on a Mac (OS X 10.6.8). It worked, albeit a little erratically, on my previous (10.5) Mac. That one was old and quite slow, and I thought timeouts had something to do with the erratic zotero-plain behavior, but that doesn't account for the present dead end. Also, I just tested with Firefox 3.6.7, with the same results, so the problem's not with version 8. Yours, Christian From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: zotero plain, org-odt, and citations in general Date: Sat, 12 Nov 2011 09:20:21 -0500 Message-ID: References: <81hb2drhmu.fsf@gmail.com> <81mxc4ovlh.fsf@gmail.com> <87k477hnqy.wl%egh@e6h.org> <81fwhu2wif.fsf@gmail.com> <4EBE1E6E.2040900@christianmoe.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d044472bb89f35a04b18a563a Return-path: Received: from eggs.gnu.org ([140.186.70.92]:56886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPERV-0005Eq-T8 for emacs-orgmode@gnu.org; Sat, 12 Nov 2011 09:20:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RPERT-0008UR-1b for emacs-orgmode@gnu.org; Sat, 12 Nov 2011 09:20:25 -0500 Received: from mail-yx0-f169.google.com ([209.85.213.169]:54310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPERS-0008UJ-VI for emacs-orgmode@gnu.org; Sat, 12 Nov 2011 09:20:23 -0500 Received: by yenm10 with SMTP id m10so1452751yen.0 for ; Sat, 12 Nov 2011 06:20:22 -0800 (PST) In-Reply-To: <4EBE1E6E.2040900@christianmoe.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: mail@christianmoe.com Cc: Erik Hetzner , Org Mode , Jambunathan K --f46d044472bb89f35a04b18a563a Content-Type: text/plain; charset=ISO-8859-1 On Sat, Nov 12, 2011 at 2:21 AM, Christian Moe wrote: > On 11/11/11 10:13 PM, Jambunathan K wrote: > >> I wonder whether the issue is related to we - Matt(?), Christian(?) and >> I - using Windows. >> > not me either -- ubuntu for me. --f46d044472bb89f35a04b18a563a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Sat, Nov 12, 2011 at 2:21 AM, Christi= an Moe <mail@= christianmoe.com> wrote:
On 11/11/11 10:13 PM, Jambunathan K wrote:
I wonder whether the issue is related to we - Matt(?), Christian(?) and
I - using Windows.
=A0not me either= -- ubuntu for me.

--f46d044472bb89f35a04b18a563a-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: zotero plain, org-odt, and citations in general Date: Sun, 13 Nov 2011 00:45:05 +0100 Message-ID: <4EBF0501.9030101@christianmoe.com> References: <81hb2drhmu.fsf@gmail.com> <81mxc4ovlh.fsf@gmail.com> <87k477hnqy.wl%egh@e6h.org> <87r51eprj7.wl%egh@e6h.org> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPNC2-0003uf-N5 for emacs-orgmode@gnu.org; Sat, 12 Nov 2011 18:41:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RPNC1-0005lY-KL for emacs-orgmode@gnu.org; Sat, 12 Nov 2011 18:41:02 -0500 Received: from b1.hitrost.net ([91.185.211.67]:33767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPNC1-0005lT-FE for emacs-orgmode@gnu.org; Sat, 12 Nov 2011 18:41:01 -0500 In-Reply-To: <87r51eprj7.wl%egh@e6h.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Erik Hetzner Cc: Org Mode , Jambunathan K On 11/11/11 5:12 PM, Erik Hetzner wrote: > At Fri, 11 Nov 2011 10:51:22 -0500, > Matt Price wrote: >> > Wouldn't the rigt target be, not the sqlite db, but the Zoteor*service* >> > that runs on port 50001 when Zotero is running? Aren't there some >> > higher-level tools for working through that interface -- e.g., erik, your >> > rst tool uses a python library, does it talk to Zotero that way? > the server that runs on port 50001 is undocumented, last I > checked. And there are no tools to connect to it. Frank Bennett put > together a hack of the jsbridge Firefox extension which works quite > well. [1] But that is python only, as far as I can tell. > A good while back -- before zotero-plain -- I spent some late nights eavesdropping on SOAP talk between OpenOffice and Zotero, and writing a Perl script to emulate some of it. It wasn't fun, and though I had some basic functionality going for a while, From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: zotero plain, org-odt, and citations in general Date: Sun, 13 Nov 2011 00:46:55 +0100 Message-ID: <4EBF056F.3090505@christianmoe.com> References: <81hb2drhmu.fsf@gmail.com> <81mxc4ovlh.fsf@gmail.com> <87k477hnqy.wl%egh@e6h.org> <87r51eprj7.wl%egh@e6h.org> <4EBF0501.9030101@christianmoe.com> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPNDn-0004QJ-DB for emacs-orgmode@gnu.org; Sat, 12 Nov 2011 18:42:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RPNDm-0005rx-Es for emacs-orgmode@gnu.org; Sat, 12 Nov 2011 18:42:51 -0500 Received: from b1.hitrost.net ([91.185.211.67]:33831) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPNDm-0005rq-9o for emacs-orgmode@gnu.org; Sat, 12 Nov 2011 18:42:50 -0500 In-Reply-To: <4EBF0501.9030101@christianmoe.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: mail@christianmoe.com Cc: Erik Hetzner , Org Mode , Jambunathan K On 11/13/11 12:45 AM, Christian Moe wrote: > A good while back -- before zotero-plain -- I spent some late nights Sorry about the noise: I didn't mean to send this fragment. Please ignore. Christian From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: zotero plain, org-odt, and citations in general Date: Sun, 13 Nov 2011 23:47:12 +0100 Message-ID: <4EC048F0.9050006@christianmoe.com> References: Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPilw-0007oP-Bq for emacs-orgmode@gnu.org; Sun, 13 Nov 2011 17:43:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RPilv-0004VK-2Q for emacs-orgmode@gnu.org; Sun, 13 Nov 2011 17:43:32 -0500 Received: from b1.hitrost.net ([91.185.211.67]:32136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPilu-00048S-Ig for emacs-orgmode@gnu.org; Sun, 13 Nov 2011 17:43:30 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Price Cc: Erik Hetzner , Org Mode , Jambunathan K * Towards a solution for Zotero -> Org -> ODT I think I have a way to get Zotero references from Org links into ODT as working reference marks. Interested parties, please test if this works for you at all. 1. Create Zotero links such as e.g.: : [[zotero:0_RADJMJ8Q][{Bolin, 1958}]] Below, I include code for a simple Zotero export translator (OrgMode.js) that will create such links at a keystroke/mouse drag, since some of us are currently experiencing difficulties with zotero-plain. 2. Define a custom link export function to fake a Zotero field code for ODT. Code below. 3. Export to ODT and do the things you normally do with Zotero, like generating a bibliography. (Note that Zotero won't let you insert a bibliography until you've inserted at least one Zotero reference from within LibreOffice. You can always delete it afterwards.) If this works for you, the code (which is a quickly thrown-together mess) can probably be improved on. Yours, Christian Moe ** OrgMode.js translator Installation: 1. Tangle or copy the below to a file called "OrgMode.js". 2. Place it in the Zotero translators folder (on Mac, that's ~/Library/Application Support/Firefox/Profiles/[PROFILENAME]/zotero/translators/ 3. Restart Firefox. 4. Open Zotero > Actions (the cogwheel icon) > Preferences. From the drop-down menu, select "Org-mode" as the Quick Copy default format. Use: you can - drag and drop references from the Zotero panel to the Emacs buffer, or - "Quick Copy" to clipboard with Shift-Cmd-C (Mac) and yank in the Emacs buffer #+name: OrgMode.js #+begin_src javascript { "translatorID": "b0006c6f-b743-4508-beaf-490bbd68a403", "label": "Org-mode", "creator": "Christian Moe", "target": "org", "minVersion": "2.1.9", "maxVersion": "", "priority": 200, "displayOptions": { "exportCharset": "UTF-8", "exportNotes": true, "exportFileData": false }, "inRepository": false, "translatorType": 2, "browserSupport": "gcs", "lastUpdated": "2011-11-12 17:05:00" } // Loosely based on Scott Campbell's ZotSelect.js // posted at http://forums.zotero.org/discussion/8306/testing-zoteroselect/ function doExport() { // Zotero.write("zotero://select//"); // Zotero.write("\n"); var item; var notfirst = false; while(item = Zotero.nextItem()) { // Separate multiple links if (notfirst) { Zotero.write("; ") } // Org link path Zotero.write("[[zotero:"); var library_id = item.LibraryID ? item.LibraryID : 0; Zotero.write(library_id+"_"+item.key); // Org link descr Zotero.write("][{"); // create a unique citation key //var descr = buildCiteKey(item, citekeys); // write citation key //Zotero.write("/"+citekey); // Authorname if(item.creators && item.creators[0] && item.creators[0].lastName) { Zotero.write(item.creators[0].lastName); } else { Zotero.write("n.a.") } // Separator Zotero.write(", ") // Year var numberRe = /^[0-9]+/; if(item.date) { var date = Zotero.Utilities.strToDate(item.date); if(date.year && numberRe.test(date.year)) { Zotero.write(date.year); } } else { Zotero.write("n.d."); } // Close Org link Zotero.write("}]]") notfirst = true; } } #+end_src ** Zotero link type Evaluate the following (or place it in your .emacs for repeated use). Note that clicking the links does not work on Mac and probably won't work on Linux/Windows, either (but please let me know if it does!). Consider org-zotero-open a placeholder for now. #+begin_src elisp (org-add-link-type "zotero" 'org-zotero-open 'org-zotero-export) (defun org-zotero-open (path) (browse-url (format "zotero://select//%s" path))) (defun org-zotero-export (path desc format) (cond ((eq format 'odt) (let ((refmark "%s") (zitem "ZOTERO_ITEM {"citationID":"%s","citationItems":[{"uri":["http://zotero.org/users/local/%s/items/%s"]}]} %s") (citation-id (substring (org-id-new) -10)) ; Is this a good way to make a unique ID? (library-id (car (split-string path "_"))) (item-key (car (cdr (split-string path "_")))) (rnd (concat "RND" (substring (org-id-new) -10)))) (setq zitem (format zitem citation-id library-id item-key rnd)) (setq desc (format "(%s)" desc)) (format refmark zitem desc zitem))) (t desc))) #+end_src From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: zotero plain, org-odt, and citations in general Date: Mon, 14 Nov 2011 10:38:02 -0500 Message-ID: References: <4EC048F0.9050006@christianmoe.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d044472bbfc090904b1b3a7ec Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPybm-0003wx-41 for emacs-orgmode@gnu.org; Mon, 14 Nov 2011 10:38:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RPybk-0004Cw-0c for emacs-orgmode@gnu.org; Mon, 14 Nov 2011 10:38:06 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:41205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPybj-0004Ck-SM for emacs-orgmode@gnu.org; Mon, 14 Nov 2011 10:38:03 -0500 Received: by faas10 with SMTP id s10so3426193faa.0 for ; Mon, 14 Nov 2011 07:38:02 -0800 (PST) In-Reply-To: <4EC048F0.9050006@christianmoe.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode , Jambunathan K , Erik Hetzner --f46d044472bbfc090904b1b3a7ec Content-Type: text/plain; charset=ISO-8859-1 On Sun, Nov 13, 2011 at 5:47 PM, Christian Moe wrote: > * Towards a solution for Zotero -> Org -> ODT > > > I think I have a way to get Zotero references from Org links into ODT as > working reference marks. Interested parties, please > test if this works for you at all. > > In a busy patch right now but this looks AWESOME. Hope to test it out in a couple of days, sorry to keep you waiting b/c I'm very excited about this, even if a full-fledged Zotero service interface would, of course, be cooler... Matt --f46d044472bbfc090904b1b3a7ec Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Sun, Nov 13, 2011 at 5:47 PM, Christian Moe <= mail@christianmoe.com> wrote:
* Towards a solution for Zotero -> Org -> ODT


I think I have a way to get Zotero references from Org links into ODT as wo= rking reference marks. Interested parties, please
test if this works for you at all.

In a=20 busy patch right now but this looks AWESOME.=A0 Hope to test it out in a=20 couple of days, sorry to keep you waiting b/c I'm very excited about=20 this, even if a full-fledged Zotero service interface would, of course,=20 be cooler...

Matt
--f46d044472bbfc090904b1b3a7ec-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: zotero-cite (A Proposal) Date: Mon, 14 Nov 2011 10:38:58 -0500 Message-ID: References: <81hb2drhmu.fsf@gmail.com> <81mxc4ovlh.fsf@gmail.com> <87k477hnqy.wl%egh@e6h.org> <81k4762yab.fsf_-_@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae9399c9957385c04b1b3abf8 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPyce-0004VH-Ni for emacs-orgmode@gnu.org; Mon, 14 Nov 2011 10:39:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RPycd-0004bn-Gs for emacs-orgmode@gnu.org; Mon, 14 Nov 2011 10:39:00 -0500 Received: from mail-gy0-f169.google.com ([209.85.160.169]:51698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPycd-0004bd-DT for emacs-orgmode@gnu.org; Mon, 14 Nov 2011 10:38:59 -0500 Received: by gyg10 with SMTP id 10so5964276gyg.0 for ; Mon, 14 Nov 2011 07:38:58 -0800 (PST) In-Reply-To: <81k4762yab.fsf_-_@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jambunathan K Cc: Erik Hetzner , Org Mode , mail@christianmoe.com --14dae9399c9957385c04b1b3abf8 Content-Type: text/plain; charset=ISO-8859-1 just quickly saying thank you, this looks pretty neat, am hoping to try all of htis code out in a couple of days. --14dae9399c9957385c04b1b3abf8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable just quickly saying thank you, this looks pretty neat, am hoping to try all= of htis code out in a couple of days.=A0
--14dae9399c9957385c04b1b3abf8-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Hetzner Subject: Re: zotero-cite (A Proposal) Date: Tue, 15 Nov 2011 21:25:45 -0800 Message-ID: <87ty641vvq.wl%egh@e6h.org> References: <81hb2drhmu.fsf@gmail.com> <81mxc4ovlh.fsf@gmail.com> <87k477hnqy.wl%egh@e6h.org> <81k4762yab.fsf_-_@gmail.com> Reply-To: Erik Hetzner Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Tue_Nov_15_21:25:41_2011-1" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQY11-00059z-Jj for emacs-orgmode@gnu.org; Wed, 16 Nov 2011 00:26:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RQY0x-0004Q8-2n for emacs-orgmode@gnu.org; Wed, 16 Nov 2011 00:26:31 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:59116) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQY0w-0004Q1-TE for emacs-orgmode@gnu.org; Wed, 16 Nov 2011 00:26:27 -0500 Received: by iaek3 with SMTP id k3so132801iae.0 for ; Tue, 15 Nov 2011 21:26:25 -0800 (PST) In-Reply-To: <81k4762yab.fsf_-_@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jambunathan K Cc: Org Mode , mail@christianmoe.com --Multipart_Tue_Nov_15_21:25:41_2011-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Jambunathan, Sorry I took some time to reply. Some answers are below. At Sat, 12 Nov 2011 02:04:52 +0530, Jambunathan K wrote: >=20 > Hello Erik >=20 > Good news.=20 >=20 > Getting a frugal Zotero-based citations is *definitely* possible. It is > just a matter of time. Your libraries already provide the necessary > plumbing to accomplish the job.=20 >=20 > Long story > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > For my own understanding, I tried trimming down zot4rst to it's bare > essentials and the attached zotcite.py is the result. That looks like the essence. Most of the code in zot4rst, as you saw, deals with interacting with the docutils system and generating output. > What zotcite does is this:=20 >=20 > For two Zotero Items, it prints their Bibliogrpahic entries and their > Citation Reference, in "Text" format using Chicago-Author-Date style. >=20 > I believe a commandline interface could be built around this file along > the following lines. (Will you be interested in building this interface > for us?) >=20 > $ zotcite --style chicago --format --items I1, I2 --print biblio > $ zotcite --style chicago --format --items I1, I2 --print citeref > > Once this is done, Emacs/Org can do invoke zotcite and get the required > Bibliographic definitions and references using "shell-command". I=E2=80=99ve adapted your script into a command line program, now included with zotero-plain. The options are slightly different, and --format does not work yet, but the essence is there. Of course it requires the user to have python, etc. installed, but it is probably easier than rewriting everything in emacs lisp. =20 > The assumption is that Emacs/Org somehow has captured zotero keys > through org-protocol or org-zotero.el or someother means. >=20 > Here is a output from zotcite.py. >=20 > [=E2=80=A6] >=20 > IIRC, I made two changes to the export.js in your Javascript backend. >=20 > 1. I had trouble understanding the organization of citation clusters. So > I modified getCitationBlock as below. Note the use of "true" as a > second param of the appendCitationCluster. This is OK as > registerItemIds already does updateItems(). Thanks for catching this. That might speed things up a bit. > [=E2=80=A6] >=20 > 2. There should be way to set the output format form python side of > things. I had to modify instantiateCiteProc by hand to set the output > format to "text". You know what output format that LibreOffice plugin > uses? I see "text", "html" and "rtf" as output formats. But not ODT. > See https://bitbucket.org/fbennett/citeproc-js/src/tip/src/formats.js Sure, this would be easy. I don=E2=80=99t know how the LibreOffice plugin works. It doesn=E2=80=99t t= ake much code, however, to translate the HTML output into something else. > [=E2=80=A6] >=20 > Btw, I found that with my 2-day old zotero database and for printing the > above 2 keys, the whole machinery takes a perceivably a lot of time. Is > this your experience as well? I am not a netbook. Yes, it is slow for me too. I wish it were faster. I don=E2=80=99t know if = the issue is jsbridge, or something else. Ideally I would prefer to simply fetch citations information (as JSON, for instance) from Zotero and process in an embedded citeproc-js instance. best, Erik --Multipart_Tue_Nov_15_21:25:41_2011-1 Content-Type: text/plain; charset=US-ASCII Sent from my free software system . --Multipart_Tue_Nov_15_21:25:41_2011-1-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Hetzner Subject: Re: zotero plain, org-odt, and citations in general Date: Tue, 15 Nov 2011 21:30:56 -0800 Message-ID: <87sjlo1vn3.wl%egh@e6h.org> References: <81hb2drhmu.fsf@gmail.com> <81mxc4ovlh.fsf@gmail.com> <87k477hnqy.wl%egh@e6h.org> <81fwhu2wif.fsf@gmail.com> Reply-To: Erik Hetzner Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Tue_Nov_15_21:30:52_2011-1" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQY5R-0007Z8-BS for emacs-orgmode@gnu.org; Wed, 16 Nov 2011 00:31:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RQY5N-00053f-Dk for emacs-orgmode@gnu.org; Wed, 16 Nov 2011 00:31:05 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:56259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQY5N-00053V-9G for emacs-orgmode@gnu.org; Wed, 16 Nov 2011 00:31:01 -0500 Received: by iaek3 with SMTP id k3so137186iae.0 for ; Tue, 15 Nov 2011 21:31:00 -0800 (PST) In-Reply-To: <81fwhu2wif.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jambunathan K Cc: Org Mode --Multipart_Tue_Nov_15_21:30:52_2011-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable At Sat, 12 Nov 2011 02:43:12 +0530, Jambunathan K wrote: >=20 >=20 > Erik > > [=E2=80=A6] > > Here is what I find: >=20 > If I put the below snippet in a javascript buffer and do a M-x > send-region, I am able to retrieve the library and key of the selected > item. > > [=E2=80=A6] > > The problem is in zotero-js-write-to-file. The problem happens even > after I increase the sleep out time to 1 sec. >=20 > See the attached backtrace with With M-x toggle-debug-on-quit RET and a > C-g >=20 > I wonder whether the issue is related to we - Matt(?), Christian(?) and > I - using Windows. >=20 > As can be seen from the transaction log, the shell interaction is > fine. I am inclined to think that it has something to do with zotero.el. >=20 > I am wondering whether there is a way to "capture" the selected item as > a zotero link through the jsbridge interface. Anyways with massaging of > org-protocol we can get a zotero "select" link by viewing the "report" > of the current item. Hi, Thanks for all the info. It appears that the file is not being created by Zotero, but I cannot figure why. I can=E2=80=99t really pursue this much, since I am unable to reproduce. If anybody has any thoughts, I would love to hear them! best, Erik --Multipart_Tue_Nov_15_21:30:52_2011-1 Content-Type: text/plain; charset=US-ASCII Sent from my free software system . --Multipart_Tue_Nov_15_21:30:52_2011-1--