sile-typesetter / sile

The SILE Typesetter — Simon’s Improved Layout Engine
https://sile-typesetter.org
MIT License
1.61k stars 97 forks source link

Bibliography: support CSL? #2074

Open Omikhleia opened 2 weeks ago

Omikhleia commented 2 weeks ago

Some of the issues regarding bibliographies (eg. #2027, #2049) are hampered by the fact that SILE has it's own-made Chicago style implementation. I know of at least one similar attempt at implementing another style on the same grounds (@jodros 's ABNT)

Question 1. What would be SILE's position on deprecating these hand-made styles, and switch to CSL?

Question 2. Would SILE be ok with its own implementation of (a decent subset) of CSL in Lua?

Omikhleia commented 2 weeks ago

Note on license issue: CSL local and styles files are CC-BY-SA. AKAIK, it means we can't just vendor them with SILE (MIT) -- but submodules, or a build dependency, could be acceptable.

jodros commented 2 weeks ago

I know of at least one similar attempt at implementing another style on the same grounds (@jodros 's ABNT)

That file is only a draft, since I din't understand well how to use...

BTW I'm glad to see that a refactor of bibliography is underway, I hope I can help.

Omikhleia commented 2 weeks ago

Self-assigning: I'm experimenting a CSL engine (the 80% easy are reached, the question is how to get the 20% difficult right, lol). (Just for you to know -- It might take a bit of time, and the points raised above are valid however this goes)

Omikhleia commented 5 days ago

Teaser.

Our legacy Chicago style vs. CSL "author-date" Chicago style for the exact same bibtex entry...

image

Omikhleia commented 5 days ago

Teaser no. 2

Same bibtex entry, but French CSL locale and French "author-date" Chicago CSL style. Yay, honoring gender for the ordinals :)

image