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

Support editor-translator term #13

Merged
merged 1 commit into from
Aug 5, 2024
Merged

Support editor-translator term #13

merged 1 commit into from
Aug 5, 2024

Conversation

PgBiel
Copy link
Contributor

@PgBiel PgBiel commented Aug 4, 2024

Fixes typst/hayagriva#187 (and therefore should fix hayagriva's CI)

Right now, I'm just considering editor-translator and editortranslator to represent the same thing: a term that is used when the editor and the translator are the same in a CSL <names>.

At the time of writing, the only official styles in https://github.com/citation-style-language/styles that appear to be using this term are APA styles, which define editortranslator and editor-translator to be the same. Other styles are still using only editortranslator.

It is theoretically possible for the two terms to have separate definitions in a locale, so maybe this PR's approach of expecting both to be the same could be too naive. However, it's still an improvement over the status quo - currently, APA styles fail to parse with a rather obtuse error (Custom("data did not match any variant of untagged enum Term")). Regardless, we could consider creating a separate term variant, e.g. EditorTranslatorOld for "editortranslator" and EditorTranslator for "editor-translator".

@PgBiel PgBiel marked this pull request as ready for review August 4, 2024 16:57
@PgBiel PgBiel requested a review from reknih August 4, 2024 16:58
@reknih reknih merged commit ad52765 into main Aug 5, 2024
4 checks passed
@laurmaedje laurmaedje deleted the editor-translator branch August 5, 2024 08:16
PgBiel added a commit that referenced this pull request Aug 6, 2024
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.

Hayagriva does not recognize editor-translator term
2 participants