Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bibliography: support CSL? #2074

Open
Omikhleia opened this issue Jun 16, 2024 · 5 comments · May be fixed by #2082
Open

Bibliography: support CSL? #2074

Omikhleia opened this issue Jun 16, 2024 · 5 comments · May be fixed by #2082
Assignees
Labels
enhancement Software improvement or feature request question Ask for advice or investigate solutions

Comments

@Omikhleia
Copy link
Member

Omikhleia commented Jun 16, 2024

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?

  • CSL is not that hard of a schema (compared, say, to USX and all its implications (Relase v1 criteria discussion #1398)...
  • The alternative is to use an existing CSL processor (but it is not that easier to hook back into SILE and it's far less fun IMHO)
@Omikhleia Omikhleia added enhancement Software improvement or feature request question Ask for advice or investigate solutions labels Jun 16, 2024
@Omikhleia
Copy link
Member Author

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
Copy link
Contributor

jodros commented Jun 19, 2024

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 Omikhleia self-assigned this Jun 19, 2024
@Omikhleia
Copy link
Member Author

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
Copy link
Member Author

Teaser.

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

image

@Omikhleia
Copy link
Member Author

Teaser no. 2

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

image

@Omikhleia Omikhleia linked a pull request Jun 29, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Software improvement or feature request question Ask for advice or investigate solutions
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

2 participants