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

Add conversions for movie-related roles #274

Merged
merged 1 commit into from
Feb 5, 2025
Merged

Add conversions for movie-related roles #274

merged 1 commit into from
Feb 5, 2025

Conversation

reknih
Copy link
Member

@reknih reknih commented Feb 5, 2025

This fixes issue #266.

Other than what the title of the issue suggests, PersonRole::Unknown can still not be serialized, deciding on this is left to a later PR.

Instead, the PR adds some conversions for editor types the biblatex manual does not specify. Support for the scriptwriter type is justified by zotero-better-biblatex's output. Support for the producer type is based on use in both biblatex-chicago and biblatex-apa. biblatex-apa uses writer instead of screenwriter, so that's supported instead.

A peculiarity is that biblatex-chicago gives the value none the semantic meaning of performers within video and music entries (see e.g. its manual p. 27). This value is chosen to hack BibLaTeX into not printing any label.

Also refer to retorquere/zotero-better-bibtex#2802 for more discussion.

This fixes issue #266.

Other than what the title of the issue suggests, `PersonRole::Unknown` can still not be serialized, deciding [on this](#266 (comment)) is left to a later PR.

Instead, the PR adds some conversions for editor types the biblatex manual does not specify. Support for the `scriptwriter` type is justified by [zotero-better-biblatex's output](https://github.com/retorquere/zotero-better-bibtex/blob/c617185750df065f597a54b447a5b71f690777e4/test/fixtures/export/Exporting%20item%20type%20film%20merges%20scriptwriter%20with%20other%20contributors%20%232802.biblatex#L8). Support for the `producer` type is based on use in both [`biblatex-chicago`](https://markov.htwsaar.de/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-chicago/doc/biblatex-chicago.pdf) and [`biblatex-apa`](https://ctan.net/macros/latex/contrib/biblatex-contrib/biblatex-apa/biblatex-apa-test-references.bib). `biblatex-apa` uses `writer` instead of `screenwriter`, so that's supported instead.

A peculiarity is that `biblatex-chicago` gives the value `none` the semantic meaning of performers within `video` and `music` entries (see e.g. its manual p. 27). This value is chosen to hack BibLaTeX into not printing any label.
@reknih reknih merged commit 0726711 into main Feb 5, 2025
4 checks passed
@reknih reknih deleted the fix-266 branch February 5, 2025 09:15
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.

1 participant