I've been working more on the unit tests, and it's been helpful thinking through ideas. Here's one:

For development, I think we'll try to make use of online CSL and RDF examples. I've long mentioned online style repositories, but it seems now is the perfect time to implement one (once I stabilize CSL).

So my proposal is a simple directory structure: style-name/version/language

Default version would probably be most recent, so that one typically would not indicate it. Likewise language would typically be automatically handled.

That then explains this unit test:

#! /usr/env/bin python

from citeproc import CiteProc

class TestCitationStyle:
    # base can be local or remote; should automaticallly
    # look at remote if a style not found locally
    base = "http://xbiblio.sourceforge.net/csl/repo/";

    def test_list():
        # method to list available styles
        list = citation_styles
        assert list

    def test_create():
        csl = CitationStyle("apa")
        assert csl.short_title == "APA"
        assert csl.bibliography.sort_algorithm == "author-date"
        assert csl.bibliography.item_layout["book"][2].name == "title"


I will try to get this stuff setup over the next week for people that want to work on this.

Bruce

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

Reply via email to