Re: [dev-biblio] What is the current state of CSL / Citreproc

2006-06-14 Thread Bruce D'Arcus


On Jun 14, 2006, at 9:13 PM, pt wrote:


The Python code is basically nonexistent,


Correct. I left it there as a place-holder more-or-less.

but how far off being useful is the Ruby? Can you give some commentary 
on what the bits and pieces that are there do and do not do?


It's been awhile since I've worked on it. Will see if I can take a look 
again tomorrow. In the meantime, the code should be fairly readable for 
a Pythonista. It's all object-based, so if you look at the classes -- 
as well as the unit tests -- you should get an idea how it works.


Basically, upon creating a CitationStyle object, it will read the CSL 
file. I think I started to get that working, but didn't finish it (too 
busy with other things).


Likewise, there's a ReferenceList class, which holds a series of 
Reference objects.  IIRC, it also contains formatting methods that then 
look up how to format a given reference from the CitationStyle object.


I'm wondering whether to bite the bullet and start coding in Python - 
but I really have no idea yet of the scope.


Take a look at the Ruby code and see what you can make of it. I suspect 
it is maybe 50-60 % done (?).


Bruce

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev-biblio] What is the current state of CSL / Citreproc

2006-06-14 Thread pt
Thanks Bruce. Got the download. I really don't want to use XSLT 2 if I can avoid it, just too few options for implementing - I need a solution that I can roll into our ICE project which means using Python, simple stand-alone things that work on Windows, Mac and Linux,  and/or stuff that comes with OOo right now.
The Python code is basically nonexistent, but how far off being useful is the Ruby? Can you give some commentary on what the bits and pieces that are there do and do not do?I'm wondering whether to bite the bullet and start coding in Python - but I really have no idea yet of the scope.
On 6/15/06, Bruce D'Arcus <[EMAIL PROTECTED]
> wrote:
On Jun 14, 2006, at 7:33 PM, pt wrote:> Bruce, and others who have been helping, can you give the list an> update of where CSL and citeproc are at? I remember seeing some stuff> about Python and Ruby code, but didn't have much time to think about
> it.Hey, David just pinged me about this off-list. My answer on citeproc:The Ruby one is much developed than the Python, and the XSLT MUCH moredeveloped than the Ruby. I wouldn't bother with either at this point
frankly.If we get Saxon 8 bundled with OOo (the Sun guy responsible for thiswas considering it), citeproc would work there. I know there's thewhole Java issue, but maybe a better first step at least, and with Word
2007, there's now precedent!  And OOo needs to get its act together onXSLT.The subversion versions of CSL and citeproc are now in sync, and I'vetransitioned to using the sort of RDF format I'm wanting to standardize
in ODF. I'm still contemplating some changes to CSL, though I think Imay only bother with that if I can gather some support (frompublishers, and maybe MS) for standardizing CSL.> I'm thinking about using EndNote for managing a database, even with
> the known limitations. Citation markers will just be hyperlinks, not> EndNote's so to cite in a word processor you would just link to> something - ideally a record in an Institutional repository, or a
> local webserver whith all your research stuff in it, but could be to a> library system, Amazon, whatever. You would need to have a URL for> every item in the endnote library - not too hard these days. Would
> then use endnote export -> Mods and use Citeproc to format a> bibliography and the citations, using the URL as a key (hyperlink> would remain so the citations can be re-formatted).I'd suggest using uris in general. For reference, here's what my
DocBook citations look like these days:   That allows you to resolve the identifiers against any manner of
sources.Other examples from my collection:> They key component here is citeproc, hence my question.
Check it out from SVN and let me know if you get stuck.Bruce-
To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: 

[EMAIL PROTECTED]-- Peter (pt) SeftonToowoomba 4350Queensland, AustraliaPhone: +61 4 1032 6955Web: 

http://ptsefton.comEmail: [EMAIL PROTECTED]



Re: [dev-biblio] What is the current state of CSL / Citreproc

2006-06-14 Thread Bruce D'Arcus


On Jun 14, 2006, at 7:33 PM, pt wrote:

Bruce, and others who have been helping, can you give the list an 
update of where CSL and citeproc are at? I remember seeing some stuff 
about Python and Ruby code, but didn't have much time to think about 
it.


Hey, David just pinged me about this off-list. My answer on citeproc:


The Ruby one is much developed than the Python, and the XSLT MUCH more 
developed than the Ruby. I wouldn't bother with either at this point 
frankly.


If we get Saxon 8 bundled with OOo (the Sun guy responsible for this 
was considering it), citeproc would work there. I know there's the 
whole Java issue, but maybe a better first step at least, and with Word 
2007, there's now precedent!  And OOo needs to get its act together on 
XSLT.



The subversion versions of CSL and citeproc are now in sync, and I've 
transitioned to using the sort of RDF format I'm wanting to standardize 
in ODF. I'm still contemplating some changes to CSL, though I think I 
may only bother with that if I can gather some support (from 
publishers, and maybe MS) for standardizing CSL.


I'm thinking about using EndNote for managing a database, even with 
the known limitations. Citation markers will just be hyperlinks, not 
EndNote's so to cite in a word processor you would just link to 
something - ideally a record in an Institutional repository, or a 
local webserver whith all your research stuff in it, but could be to a 
library system, Amazon, whatever. You would need to have a URL for 
every item in the endnote library - not too hard these days. Would 
then use endnote export -> Mods and use Citeproc to format a 
bibliography and the citations, using the URL as a key (hyperlink 
would remain so the citations can be re-formatted).


I'd suggest using uris in general. For reference, here's what my 
DocBook citations look like these days:



  


That allows you to resolve the identifiers against any manner of 
sources.


Other examples from my collection:




They key component here is citeproc, hence my question.


Check it out from SVN and let me know if you get stuck.



Bruce

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]