From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: exporting zotxt or orgref links to HTML and ODF Date: Tue, 27 Jan 2015 15:41:21 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG7HS-0004MX-3p for emacs-orgmode@gnu.org; Tue, 27 Jan 2015 09:38:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YG7HM-0005Tu-0R for emacs-orgmode@gnu.org; Tue, 27 Jan 2015 09:38:13 -0500 Received: from mail2.b1.hitrost.net ([91.185.211.205]:47303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG7HL-0005TP-KD for emacs-orgmode@gnu.org; Tue, 27 Jan 2015 09:38:07 -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: orgmode list Well, color me embarrassed. I never even noticed the switch to zotxt. And I never tried with Standalone either. Just tinkered happily away with Eric's excellent old solution and Firefox. Maybe I should check out both before posting an obsolute solution with unnecessary dependencies... Will report back in a little while. Yours, Christian Matt Price writes: > Christian, > > I would love to see this. I am using Erik's rewritten > zotero-plain/org-zotero (zotxt-emacs); it works fine with > zotero-standalone, so MozRepl not required, I don't think. I'm not sure if > the link syntax is still the same as in the original versions. > > So yes, please do send the code if you are willing. If you have hints > about the more ambitious citation system, I and I'm sure others would love > to see them. > > thanks, > Matt > > > On Tue, Jan 27, 2015 at 4:18 AM, Christian Moe > wrote: > >> >> Matt Price writes: >> >> > My question: does anyone yet have a workflow that lets them export >> directly >> > to HTML or ODT? >> >> Hi, Matt, >> >> Yes, now I have not just a workflow, but a code solution for >> Org/Zotero/ODT export that has been tried and tested for a while. It now >> supports multiple references in one citation, prefixes, suffixes, >> locators, and year-only citations, and produces 'live' Zotero refmarks >> in ODT, so you can do all the changes you want in LibreOffice >> afterward. It also does some very limited but useful things for html >> (DOI links and links that will work on Wordpress blogs with Katie >> Seaborn's ZotPress extension). >> >> It depends on Eric Hetzner's excellent zotero-plain and org-zotero >> packages, and hence on the MozRepl extension on the Firefox side, though >> you can use the ODT export functionality itself without those >> dependencies. >> >> I haven't yet announced it on the list, for three reasons. 1) Not very >> polished. There's some messy code, a poor man's user interface, and no >> editing support for multiple citations (but support for exporting >> them!). 2) It's part of a more ambitious project I set myself for an >> all-round citation system that I never got on with. 3) It uses this cool >> idea I had for how to use citation links differently, but it imposes >> certain syntax conventions on the user, and they may yet change in >> backward-incompatible ways if I develop this further. >> >> If this sounds interesting, I can post the code here 'as is' for you to >> try out, but I'd better update the docs first, which could take a day or >> two. >> >> Yours, >> Christian >> >> >> > I've just tried using zotxt again ( >> > https://bitbucket.org/egh/zotxt-emacs/overview -- first time in a >> while); >> > it is remarkably easy to use in Org itself. By default, though, the >> links >> > simply aren't handled in the HTML and ODT exports, and so the cites will >> be >> > completely absent. >> > >> > Here is the text inserted by zotxt for a single citation: >> > >> > ---------------- >> > >> > [[zotero://select/items/0_TI27HJ5I][Suchman, Lucy. “Subject Objects.” >> > Feminist Theory 12, no. 2 (August 1, 2011): 119–45. >> > >> http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml. >> ]] >> > --------------- >> > >> > In HTML, I would like to replace this with something like this: >> > >> > (Suchman 2011) >> > >> > and then have Org generate a bibligraphy somewhere, a bit like org-ref >> > seems to do, It would be nice if I could steal the styles from somehwere, >> > the way org-ref seems to do. >> > >> > For ODT< it seems a little more complicated. Here is the rather lengthy >> > equivalent that Zotero itself produces for my default style (Chicago) in >> > Libreoffice: >> > --------------- >> > > > >> text:note-class="footnote">1> > text:style-name="Footnote">> > text:name="ZOTERO_ITEM CSL_CITATION >> > >> {"citationID":"5xzXuF2I","properties":{"formattedCitation":"{\\rtf >> > Lucy Suchman, \\uc0\\u8220{}Subject Objects,\\uc0\\u8221{} \\i Feminist >> > Theory\\i0{} 12, no. 2 (August 1, 2011): 119\\uc0\\u8211{}45, >> > >> http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml.}" >> ;,"plainCitation":"Lucy >> > Suchman, “Subject Objects,” Feminist Theory 12, no. 2 (August 1, 2011): >> > 119–45, >> > >> http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml." >> ; >> > },"citationItems":[{"id":149,"uris":[" >> > http://zotero.org/users/20/items/TI27HJ5I"],"uri":[" >> > http://zotero.org/users/20/items/TI27HJ5I" >> ],"itemData":{"id":149,"type":"article-journal","title":"Subject >> > objects","container-title":"Feminist >> > >> Theory","page":"119-145","volume":"12","issue":"2","URL":" >> > >> http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml" >> > >> ;,"ISSN":"14647001","author":[{"family":"Suchman","given":"Lucy"}],"issued":{"date-parts":[["2011",8,1]]}}}],"schema":" >> > >> https://github.com/citation-style-language/schema/raw/master/csl-citation.json" >> ;} >> > RNDuhNYYpC1hN"/>Lucy Suchman, “Subject >> > Objects,” Feminist >> > Theory 12, no. 2 (August 1, >> > 2011): 119–45, >> > http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml >> .> > text:name="ZOTERO_ITEM CSL_CITATION >> > >> {"citationID":"5xzXuF2I","properties":{"formattedCitation":"{\\rtf >> > Lucy Suchman, \\uc0\\u8220{}Subject Objects,\\uc0\\u8221{} \\i Feminist >> > Theory\\i0{} 12, no. 2 (August 1, 2011): 119\\uc0\\u8211{}45, >> > >> http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml.}" >> ;,"plainCitation":"Lucy >> > Suchman, “Subject Objects,” Feminist Theory 12, no. 2 (August 1, 2011): >> > 119–45, >> > >> http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml." >> ; >> > },"citationItems":[{"id":149,"uris":[" >> > http://zotero.org/users/20/items/TI27HJ5I"],"uri":[" >> > http://zotero.org/users/20/items/TI27HJ5I" >> ],"itemData":{"id":149,"type":"article-journal","title":"Subject >> > objects","container-title":"Feminist >> > >> Theory","page":"119-145","volume":"12","issue":"2","URL":" >> > >> http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml" >> > >> ;,"ISSN":"14647001","author":[{"family":"Suchman","given":"Lucy"}],"issued":{"date-parts":[["2011",8,1]]}}}],"schema":" >> > >> https://github.com/citation-style-language/schema/raw/master/csl-citation.json" >> ;} >> > RNDuhNYYpC1hN"/> >> > ------------------------------ >> > >> > I'm not sure what the best way to do this is; it may be that zotxt could >> be >> > extended to get zotero to do the heavy lifting here. >> > >> > I know Erik H reads this list, so if you have any suggestions, Erik, I >> > would love to hear them. But maybe other people also have suggestions >> > about modifying export filters - -that would also be really helpful for >> > me. Thanks as always, >> > >> > Matt >> >>