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

Issue with CSL Rendering (OSCOLA no ibid Style) #109

Open
1 task done
daniel-eder opened this issue Dec 15, 2023 · 2 comments
Open
1 task done

Issue with CSL Rendering (OSCOLA no ibid Style) #109

daniel-eder opened this issue Dec 15, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@daniel-eder
Copy link

daniel-eder commented Dec 15, 2023

Description

OSCOLA style should have a comma between the edition and the publisher.

A valid rendering from https://editor.citationstyles.org/visualEditor/ (using this csl json to get the citation example):
image

Compared to the rendering in typst.app:
image

Notice the missing comma.

The CSL style is https://github.com/citation-style-language/styles/blob/master/oscola-no-ibid.csl

Reproduction URL

https://typst.app/project/rY0Nmyq6PphmJZy877_lLT

Operating system

Web app, Windows

Typst version

  • I am using the latest version of Typst
@daniel-eder daniel-eder added the bug Something isn't working label Dec 15, 2023
@laurmaedje laurmaedje transferred this issue from typst/typst Dec 15, 2023
@daniel-eder
Copy link
Author

Might be related to #107

@DerDrodt
Copy link
Contributor

I found the error: The rendering of group containing choose is wrong:

In hayagriva, a Choose element has a delimiter. This is wrong; according to the specification, this is not a valid attribute on choose.

The rendering done in https://github.com/DerDrodt/hayagriva/blob/219a4cf76ee54247ec2deca4a80661da4f15f003/src/csl/rendering/mod.rs#L644-L656 is therefore wrong.

Instead of the rendering of Choose rendering its children, it should "return" a list of children, which are then properly formatted by Group.

Fixing this will take time, and I am not too familiar with the rendering. Someone else should probably fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants