On Fri, Apr 8, 2011 at 5:37 PM, Sylvester Keil <[email protected]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > On Apr 8, 2011, at 7:29 AM, Frank Bennett wrote: > >> On Fri, Apr 8, 2011 at 5:21 AM, Bruce D'Arcus <[email protected]> wrote: >>> So EDTF is starting to get much more concrete. Would be nice if we >>> could switch to this, or a subset of it, as primary CSL input date >>> format soon. >> >> I think the parser embedded in citeproc-js can already parse this >> syntax, for ordinary dates, date intervals, and dates BCE. It would be >> good to have some sample dates data to work with, and test fixtures >> based on it. The test data and fixture that I used to build the >> citeproc-js parser are in the source archive, if anyone wants to work >> on this. > > Is this the file you mentioned? Or are there additional tests? > > https://bitbucket.org/fbennett/citeproc-js/src/dab133efd75a/tests/citeproc-js/dateparse.js
That's all there is to it. There is a grinder in the ./tools directory that generates the json, and the json is run via the ./test.py script using DOH. > > Would you need tests like this or rather citeproc-tests with a dedicated CSL > style that outputs dates (to verify that parsing of input was successful)? > I've previously set up fixtures using the material on the EDTF page. For > instance, this file includes the ISO8601 interval examples: > > https://github.com/inukshuk/edtf-ruby/blob/master/features/parser/intervals.feature If the plain text format is easier, it can be ground into the json format in the same way. > > I'll gladly convert the fixtures to a format that's is useful to you, but > first it ought to be specified whether or not all the EDTF features (or which > subset) should be supported by CSL. Indeed. I think this brings us to that question: what gets left out? > > Sylvester > > > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (Darwin) > > iEYEARECAAYFAk2eyVUACgkQh4kzvOqyWhAUlACgi6kcj0NeoSfNB2rSyHCSHd34 > /EcAoJw2YQSnCu3HcjAxbOTueE0ee2cH > =NLg7 > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------------ > Xperia(TM) PLAY > It's a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev > _______________________________________________ > xbiblio-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/xbiblio-devel > ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ xbiblio-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xbiblio-devel
