Fix: 和文文書で参考文献の vol./no./pp. が「巻/号/ページ」になる問題を修正 - #55
Merged
Merged
Conversation
#54 の「と」と同根。rsj/rengo/sci の style 内ロケール定義に volume/issue/page の term を追加し、rsj は引用符 (open-quote/ close-quote) も上書き。文書言語 ja/en で参考文献の体裁が一致する。
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.
現象
#54 の「と」と同根の残件。本文言語が日本語 (
text(lang: "ja")) の文書で参考文献を組むと、CSL ja-JP ロケールの語彙が引かれて以下のようになる。src/rsj.csl・examples/rsj-conf/rsj-conf.csl): 「巻 32, 号 1, ページ 102–107」(en 文書では vol. 32, no. 1, pp.102–107)。論文題目の引用符も「…」(en では “…”)修正
#54 で導入した xml:lang 無しの style 内ロケール定義に、各スタイルが参照する term を追加。
volume(vol./vols.)・issue(no./nos.)・page(p./pp.)open-quote/close-quote(“ ”)体裁の正は、これまでテスト文書 (
#set text(lang: "en")で組まれている) が出力してきた en 体裁とした。これにより文書言語 ja / en で参考文献の出力が一致する (#54 後の sice 系と同じ状態)。意図的に対象外としたもの
“…”,(句読点が引用符の外)、en 文書は en-US ロケール既定で“…,”のまま。RSJ の和文文献例は句読点を引用符の外に置くため、ja 側を正として上書きしないeditionterm・editor label: ja で「版」「編」になり得るが、参照している文献実例が無く ordinal との組合せも検証できないため見送り確認
欧文 2/3/4 名 + 和文連名の文献リストを before (main) / after (本ブランチ) ×
lang: "ja"/"en"の全組合せでレンダリングし pdftotext で比較:全 4 ファイル xmllint で well-formed、
src/rsj.csl≡examples/rsj-conf/rsj-conf.cslの同期維持、tests/test-compile-doc.typのコンパイル通過も確認済み。