Add follow-language-name-order option#224
Open
kotobuki wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The following is an example of a bibliography of an imaginary translated book from English to Japanese.
[ { "id": "morgan2023jiyu", "author": [ { "family": "Morgan", "given": "Casey" }, { "family": "Patrov", "given": "Alexei" } ], "citation-key": "morgan2023jiyu", "event-place": "東京", "issued": { "date-parts": [[2023]] }, "language": "ja", "original-date": { "date-parts": [[2022]] }, "original-publisher": "Global Academic Press", "original-publisher-place": "Chicago, IL", "original-title": "The Philosophy of Free Will", "publisher": "城南大学出版会", "publisher-place": "東京", "title": "自由意志の哲学", "translator": [{ "family": "鈴木", "given": "真紀" }], "type": "book" } ]When I process the bibliography item with
citeproc-jsand a CSL-M style,citeproc-jsproduces citations as follows.NoteMorgan Casey、Patrov Alexei『自由意志の哲学』訳:鈴木真紀(東京:城南大学出版会、2023)。〔The Philosophy of Free Will (Chicago, IL: Global Academic Press, 2022).〕Bibliography entryMorgan Casey、Patrov Alexei『自由意志の哲学』翻訳:鈴木真紀、東京:城南大学出版会、2023。〔The Philosophy of Free Will (Chicago, IL: Global Academic Press, 2022).〕As far as I know, it's common to keep the name order in the original language for translated items in Japan, I propose adding
follow-language-name-orderoption. Here is an example withciteproc.setFollowLanguageNameOrderOption(false).NoteCasey Morgan、Alexei Patrov『自由意志の哲学』訳:鈴木真紀(東京:城南大学出版会、2023)。〔The Philosophy of Free Will (Chicago, IL: Global Academic Press, 2022).〕Bibliography entryMorgan, Casey、Alexei Patrov『自由意志の哲学』翻訳:鈴木真紀、東京:城南大学出版会、2023。〔The Philosophy of Free Will (Chicago, IL: Global Academic Press, 2022).〕I hope that this will make sense and be accepted as a pull request.