Hi all, I finished a JavaScript implementation of https://github.com/citation-style-language/utilities/blob/master/csl-reindenting-and-info-reordering.py, live at http://rintze.zelle.me/style-formatter/. Feedback welcome.
The tool indents and formats styles according to our CSL style repository standards. Like the Python script, it also reorders the elements in cs:info, which circumvents a limitation in RELAX NG and allows for stricter validation against https://github.com/citation-style-language/schema/blob/master/csl-repository.rnc. It is probably useful as a standalone tool (maybe at "http://formatter.citationstyles.org"), but we might want to integrate it into the CSL validator (http://validator.citationstyles.org/). We could also create a CSL style submission wizard for users that starts with validation against csl.rnc (to fix the big errors), followed by reindenting and reordering and then validation against csl-repository.rnc (along with any additional automated checks we can come up with), and finally the creation of a pull request. Frank already wrote some code for the last bit for his MLZ/Juris-M project. Rintze ------------------------------------------------------------------------------ _______________________________________________ xbiblio-devel mailing list xbiblio-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xbiblio-devel