Closed TomBener closed 5 days ago
---
title: Test eastAsia document
reference-section-title: References
csl: test.csl
references:
- author:
- family: Ma
given: Jinguan
suffix: 马經觀
container-title: 國聞周報
id: majingguan1949
issued: 1949
original-title: China's tomorrow and the day after tomorrow
page: 1-2
publisher-place: Shanghai
title: 中國的明天和後天
type: article-newspaper
doi: 10.1234/5678
- author:
- family: Ma
given: Jinguan
suffix: 马經觀
container-title: 國聞周報
id: majingguan1949a
issued: 1949
original-title: China's tomorrow and the day after tomorrow
page: 1
publisher-place: Shanghai
title: ‘中國的明天’和後天
type: article-newspaper
- author:
- family: He
given: Fangchuan
suffix: 何芳川
container-title: 北京大学学报
id: hefangchuan1998
issue: 6
issued: 1998
original-title: On "Hua-Yi order"
page: 30-45
title: "\"华夷秩序\"论"
type: article-journal
---
This is a test document for CJK in docx with Pandoc 3.2 later
[@majingguan1949; @majingguan1949a; @hefangchuan1998].
中文“汉字”测试 and "English text" test。
中文“‘汉字’”测试 and "English text" test。
中文“[汉字](https://pandoc.org/custom-writers.html)”测试and "English text" test.
The generated result in document.xml
:
<w:p>
<w:pPr>
<w:pStyle w:val="Title" />
</w:pPr>
<w:r>
<w:t xml:space="preserve">Test eastAsia document</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="FirstParagraph" />
</w:pPr>
<w:r>
<w:t xml:space="preserve">This is a test document for CJK in docx with Pandoc 3.2 later</w:t>
</w:r>
<w:r>
<w:t xml:space="preserve"></w:t>
</w:r>
<w:r>
<w:t xml:space="preserve">(Ma, 1949b, 1949a; He, 1998)</w:t>
</w:r>
<w:r>
<w:t xml:space="preserve">.</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="BodyText" />
</w:pPr>
<w:r>
<w:rPr>
<w:rFonts w:hint="eastAsia" />
</w:rPr>
<w:t xml:space="preserve">中文“汉字”测试</w:t>
</w:r>
<w:r>
<w:t xml:space="preserve"> and</w:t>
</w:r>
<w:r>
<w:t xml:space="preserve"></w:t>
</w:r>
<w:r>
<w:t xml:space="preserve">“English text”</w:t>
</w:r>
<w:r>
<w:t xml:space="preserve"></w:t>
</w:r>
<w:r>
<w:t xml:space="preserve">test。</w:t>
</w:r>
<w:r>
<w:t xml:space="preserve"></w:t>
</w:r>
<w:r>
<w:rPr>
<w:rFonts w:hint="eastAsia" />
</w:rPr>
<w:t xml:space="preserve">中文“</w:t>
</w:r>
<w:r>
<w:rPr>
<w:rFonts w:hint="eastAsia" />
</w:rPr>
<w:t xml:space="preserve">‘汉字’</w:t>
</w:r>
<w:r>
<w:rPr>
<w:rFonts w:hint="eastAsia" />
</w:rPr>
<w:t xml:space="preserve">”测试</w:t>
</w:r>
<w:r>
<w:t xml:space="preserve"> and</w:t>
</w:r>
<w:r>
<w:t xml:space="preserve"></w:t>
</w:r>
<w:r>
<w:t xml:space="preserve">“English text”</w:t>
</w:r>
<w:r>
<w:t xml:space="preserve"></w:t>
</w:r>
<w:r>
<w:t xml:space="preserve">test。</w:t>
</w:r>
<w:r>
<w:t xml:space="preserve"></w:t>
</w:r>
<w:r>
<w:rPr>
<w:rFonts w:hint="eastAsia" />
</w:rPr>
<w:t xml:space="preserve">中文“</w:t>
</w:r>
<w:hyperlink r:id="rId20">
<w:r>
<w:rPr>
<w:rStyle w:val="Hyperlink" />
<w:rFonts w:hint="eastAsia" />
</w:rPr>
<w:t xml:space="preserve">汉字</w:t>
</w:r>
</w:hyperlink>
<w:r>
<w:rPr>
<w:rFonts w:hint="eastAsia" />
</w:rPr>
<w:t xml:space="preserve">”测试and</w:t>
</w:r>
<w:r>
<w:t xml:space="preserve"></w:t>
</w:r>
<w:r>
<w:t xml:space="preserve">“English text”</w:t>
</w:r>
<w:r>
<w:t xml:space="preserve"></w:t>
</w:r>
<w:r>
<w:t xml:space="preserve">test.</w:t>
</w:r>
</w:p>
We can notice that all text fragments with Chinese were enclosed with <w:rFonts w:hint="eastAsia" />
, which worked as expected.
So the issue only happen in the bibliography generated by citeproc. Given that Chinese bibliographies generally don't need to enclose the title with quotation marks, and the hyperlink is also not preferred, so I think the issue is not a big deal. If one want to correct the Chinese quotation mark font hints in the bibliography, I believe a Lua filter can work with that.
The issue will arise (even in the main body) whenever you have a structure like: QuotationMark, Link (Chinese text), Quotation Mark because in this case the Chinese text and the quotation marks won't be in the same docx "run."
It would not arise for Link (QuotationMark, Chinese text, Quotation Mark)
As have discussed in #9817, there are issues with East Asian Language font hints, specifically:
Related XML
```xmlPlease update to fix the issue. Thanks for your great work!