bdarcus / csln

Reimagining CSL
Mozilla Public License 2.0
13 stars 0 forks source link

Create a style analyzer #29

Open bdarcus opened 1 year ago

bdarcus commented 1 year ago

EDIT: I transferred this here, figuring it might be better implemented in Rust, perhaps using this new parser?

https://github.com/typst/citationberg

In order to achieve bdarcus/csln#45 and bdarcus/csln#28, we really need a script or app that can analyze existing CSL 1.0 styles and macros.

It can also better support decisions on default configuration options, and even which options to add, remove, or change.

It should, for example, be able to tell us:

  1. the most common macros, not just based on name, but on output result.
  2. sorting logic and other configuration options

Here's start of a python version from @zepinglee.

https://gist.github.com/zepinglee/2752c6cc9669d7f5d3f31ac1901c0c77