Fix: 和文文書で参考文献の欧文著者接続が「と」になる問題を修正 - #54
Merged
Merged
Conversation
This was referenced Aug 16, 2026
kimushun1101
added a commit
that referenced
this pull request
Aug 16, 2026
#54 の「と」と同根。rsj/rengo/sci の style 内ロケール定義に volume/issue/page の term を追加し、rsj は引用符 (open-quote/ close-quote) も上書き。文書言語 ja/en で参考文献の体裁が一致する。
kimushun1101
added a commit
that referenced
this pull request
Aug 16, 2026
tests/test-compile-doc.typ だけが bibliography を #set text(lang: "en") のブロックで囲んでおり、template/main.typ の素の #bibliography(...) と組版言語が異なっていた。このため #54 の ja ロケール語彙混入をテスト文書で検出できなかった。
This was referenced Aug 16, 2026
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.
現象
本文言語が日本語 (
text(lang: "ja")) の文書で参考文献を組むと、欧文文献の著者接続が「P. Van Overschee と B. De Moor」のように日本語の「と」になる。全 7 つの CSL ファイルで再現する。原因
CSL 公式 ja-JP ロケールが
<term name="and">と</term>を定義しており、and="text"指定の name 要素が文書言語 ja でこの訳語を引くため。style 要素のdefault-localeでは直らない (en-US指定の rsj.csl でも再現。hayagriva は文書言語のロケールで語彙を解決する)。sice.csl 既存の<locale xml:lang="en">ブロック (「なぜかenしか効かない」コメントの箇所) も同じ理由で ja 文書では効いていなかった。修正
<term name="and">and</term>を追加 (style 内定義はロケールファイルより優先されるため、文書言語によらず " and " 接続になる)page-range-delimiterも移動し、ja 文書でもページ範囲が「102/107」形式になるよう修正 (これまで「102–107」になっていた)delimiter-precedes-last="never"を追加し、「A, B and C」(and の前にカンマ無し) に統一書式の根拠
確認
欧文 2/3 名 + 和文 4 名連名の文献リストを
lang: "ja"でレンダリングし、全スタイルで before/after を目視確認:tests/test-compile-doc.typのコンパイル通過も確認済み。