From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: contributing to work on citations Date: Thu, 5 Nov 2015 20:41:02 -0500 Message-ID: References: <87si4lvlm8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3c6be0c25a20523d556a6 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52478) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuW1Y-0005yk-CT for emacs-orgmode@gnu.org; Thu, 05 Nov 2015 20:41:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZuW1X-0002Xa-6D for emacs-orgmode@gnu.org; Thu, 05 Nov 2015 20:41:04 -0500 Received: from mail-ig0-x234.google.com ([2607:f8b0:4001:c05::234]:33183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuW1W-0002XW-VR for emacs-orgmode@gnu.org; Thu, 05 Nov 2015 20:41:03 -0500 Received: by igvi2 with SMTP id i2so23537085igv.0 for ; Thu, 05 Nov 2015 17:41:02 -0800 (PST) In-Reply-To: <87si4lvlm8.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: Matt Price , Org Mode --001a11c3c6be0c25a20523d556a6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Nov 4, 2015 at 10:18 AM, Aaron Ecay wrote: > > > > 3. Handling of citation links in the various export engines > > Functions must be written to handle citations in, at minimum, latex, > html, > > and org > > > > 4. Interface with backends > > Org should be able to talk to bibtex and zotero databases, at least (an= d > > maybe more). > > The code I wrote should have enough hooks to enable this. But I haven=E2= =80=99t > looked at zotero at all. If zotero support is important to you, you > could investigate the =E2=80=9Clookup types=E2=80=9D in the citation code= I wrote, see > if they are adequate, and try to use them to implement zotero lookup. > From the docstring: > > "Types of citation lookup backends. > > Alist from type to list of: > > - Function called at the beginning of export, with the rest of > the keyword line after #+BIBDB: type, and the info plist. > Should cache whatever it needs in the info plist. > > - Function to lookup a citation. Called with the key and the > info plist. Will be memoized by > `org-export-cite--lookup' (TODO). Should return an alist of > keys and values about the citation (author, year, title, etc.) > > - A boolean; non-nil =3D this lookup type is remote. All local > lookups will be tried before any remote one is. > TODO: not yet implemented" > Hey, Aaron, Am I right that I need to check out your wip-cite-awe branch from ~8 months ago? Would it make sense to try to merge recent changes on master into that branch first? Anyway, I figure I will try to modify zotxt-emacs so it provides these functions and generates conformant cite: links. That seems the easiest solution, and maybe Erik will give me some help once I've made some initial progress. Meanwhile I will try to learn enough about javascript to get started on the citeproc-js ocmmand-line tool. thx, matt --001a11c3c6be0c25a20523d556a6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Wed, Nov 4, 2015 at 10:18 AM, Aaron Ecay <aaronecay@gmail.com= > wrote:
><= br> > 3. Handling of citation links in the various export engines
> Functions must be written to handle citations in, at minimum, latex, h= tml,
> and org
>
> 4. Interface with backends
> Org should be able to talk to bibtex and zotero databases, at least (a= nd
> maybe more).

The code I wrote should have enough hooks to enable this.=C2=A0 But = I haven=E2=80=99t
looked at zotero at all.=C2=A0 If zotero support is important to you, you could investigate the =E2=80=9Clookup types=E2=80=9D in the citation code I= wrote, see
if they are adequate, and try to use them to implement zotero lookup.
>From the docstring:

"Types of citation lookup backends.

Alist from type to list of:

- Function called at the beginning of export, with the rest of
=C2=A0 the keyword line after #+BIBDB: type, and the info plist.
=C2=A0 Should cache whatever it needs in the info plist.

- Function to lookup a citation.=C2=A0 Called with the key and the
=C2=A0 info plist.=C2=A0 Will be memoized by
=C2=A0 `org-export-cite--lookup' (TODO).=C2=A0 Should return an alist o= f
=C2=A0 keys and values about the citation (author, year, title, etc.)

- A boolean; non-nil =3D this lookup type is remote.=C2=A0 All local
=C2=A0 lookups will be tried before any remote one is.
=C2=A0 TODO: not yet implemented"

Hey, Aaron,
Am I right that I need to check out your wip-cite-awe branch from ~= 8 months ago? Would it make sense to try to merge recent changes on master = into that branch first?

Anyway, I figure I will try to mo= dify zotxt-emacs so it provides these functions and generates conformant ci= te: links.=C2=A0 That seems the easiest solution, and maybe Erik will give = me some help once I've made some initial progress.=C2=A0 Meanwhile I wi= ll try to learn enough about javascript to get started on the citeproc-js o= cmmand-line tool.=C2=A0 thx,
matt

--001a11c3c6be0c25a20523d556a6--