我希望我不是在重复一个问题,但我已经搜索过高低,并且没有找到任何答案,我确信pandoc的其他用户遇到过。 (我发现对这个主题的引用涉及到LaTeX的pandoc,而这是对.html / .rtf / etc转换的简单pandoc。)似乎pandoc-citeproc处理器不知道如何处理特殊字符和变音符号,或者是不常见的(例如')或常见的(例如á),并在创建其参考书目时将它们全部放在“z”之后。由于我的典型参考书目含有特殊字符,因此很高兴知道是否有一种解决方法可以手动修改排序顺序,或者中和特殊字符 - 例如,我在下面的MWE中告诉它将'Aal as排序为虽然它是“Aal”和Áberforth,好像它是“Aberforth”,所以它们出现在Amber之上。
这是我的MWE:
---
csl: chicago-note-bibliography.csl
references:
- id: Amber2000
type: book
author:
- family: Amber
given: Rodrigo
issued:
- year: '2000'
title: Book 1
- id: Aberf2000
type: book
author:
- family: Áberforth
given: Rodrigo
issued:
- year: '2000'
title: Book 2
- id: Aal2000
type: book
author:
- family: ʿAal
given: Rodrigo
issued:
- year: '2000'
title: Book 3
...
This is my MWE.[@Amber2000] I want to see how it handles diacritics[@Aberf2000] and special characters.[@Aal2000]
运行pandoc mwe.md -o test.html --filter=pandoc-citeproc
,我得到以下输出:
<p>This is my MWE.<span class="citation"><a href="#fn1" class="footnoteRef" id="fnref1"><sup>1</sup></a></span> I want to see how it handles diacritics<span class="citation"><a href="#fn2" class="footnoteRef" id="fnref2"><sup>2</sup></a></span> and special characters.<span class="citation"><a href="#fn3" class="footnoteRef" id="fnref3"><sup>3</sup></a></span></p>
<div id="refs" class="references">
<div id="ref-Amber2000">
<p>Amber, Rodrigo. <em>Book 1</em>, 2000.</p>
</div>
<div id="ref-Aberf2000">
<p>Áberforth, Rodrigo. <em>Book 2</em>, 2000.</p>
</div>
<div id="ref-Aal2000">
<p>ʿAal, Rodrigo. <em>Book 3</em>, 2000.</p>
</div>
</div>
<div class="footnotes">
<hr />
<ol>
<li id="fn1"><p>Amber, <em>Book 1</em>. <a href="#fnref1">↩</a></p></li>
<li id="fn2"><p>Áberforth, <em>Book 2</em>. <a href="#fnref2">↩</a></p></li>
<li id="fn3"><p>ʿAal, <em>Book 3</em>. <a href="#fnref3">↩</a></p></li>
</ol>
</div>
正如你所看到的,它对参考书目Amber,Áberforth,'Aal进行了分类。有什么想法吗?