Skip to content

Map biblatex language to hayagriva#317

Merged
PgBiel merged 11 commits intotypst:mainfrom
DerDrodt:interop-lang
Jun 26, 2025
Merged

Map biblatex language to hayagriva#317
PgBiel merged 11 commits intotypst:mainfrom
DerDrodt:interop-lang

Conversation

@Drodt
Copy link
Copy Markdown
Contributor

@Drodt Drodt commented May 7, 2025

The language field of biblatex was previously ignored, which caused #292. This PR adds the conversion.

If the field is not a valid language identifier, we ignore it. This may be improved in the future.

Close #292

Copy link
Copy Markdown
Contributor

@PgBiel PgBiel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I think there are some things to work out.

@PgBiel
Copy link
Copy Markdown
Contributor

PgBiel commented May 14, 2025

This will conflict with #126, which has some important considerations. We should first check if there will be a conflict with those considerations. The idea of converting languages from biblatex's format has also been mentioned there.

@Drodt
Copy link
Copy Markdown
Contributor Author

Drodt commented May 14, 2025

This will conflict with #126, which has some important considerations. We should first check if there will be a conflict with those considerations. The idea of converting languages from biblatex's format has also been mentioned there.

Is that PR still active? It seems like this PR might be a good first step and #126 is the eventual improvement.

@PgBiel
Copy link
Copy Markdown
Contributor

PgBiel commented May 14, 2025

We don't have to go all the way that #126 did so far of translating dates and other parts of the entry based on the language, but we should at least make sure interop is correct. To this end, we might need changes on biblatex to solve #317 (comment).

Copy link
Copy Markdown
Contributor

@PgBiel PgBiel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Drodt and others added 3 commits June 1, 2025 22:00
@PgBiel
Copy link
Copy Markdown
Contributor

PgBiel commented Jun 26, 2025

Thanks! Can you add a quick local test which just prints the language? (Not sure if this would require changes to how csl-json is handled)

@Drodt
Copy link
Copy Markdown
Contributor Author

Drodt commented Jun 26, 2025

I added a local test but a CSL-JSON test makes no sense, right? With CSL-JSON, we don't have any biblatex and therefore no conversion. Am I missing something?

@PgBiel
Copy link
Copy Markdown
Contributor

PgBiel commented Jun 26, 2025

Yeah you're right, a bit of an oopsie on my part. Thanks!

@PgBiel PgBiel merged commit 9edb2f3 into typst:main Jun 26, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sort by language not work

3 participants