Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

author-year 中文未按拼音排序 #282

Closed
zepinglee opened this issue Jan 12, 2021 · 3 comments
Closed

author-year 中文未按拼音排序 #282

zepinglee opened this issue Jan 12, 2021 · 3 comments

Comments

@zepinglee
Copy link
Member

你好。我用的author-year格式,发现英文是严格按照作者姓名排序的。但中文既未按拼音排序,也未按文中顺序排。是怎么回事呢?谢谢您。
Snipaste_2021-01-12_16-34-46

Originally posted by @cugliming in #231 (comment)

@zepinglee
Copy link
Member Author

由于 BibTeX 功能所限,无法自动获取著者姓名的拼音或笔画笔顺,所以也不能正确排序(实际的排序是按照 UTF-8 编码顺序排序的)。一种解决方案是在 bib 数据库中的 key 域录入著者姓名的拼音。

@book{capital,
  author = {马克思 and 恩格斯},
  key    = {ma3 ke4 si1 en1 ge2 si1}, ...
}

另外一种方式是使用 biblatex-gb7714。但目前模板跟 natbib 耦合,不能使用 biblatex。我稍后打算修改一下,允许用户选择 BibTeX 或者 biblatex。@cugliming 如果不急的话可以等更新。

@cugliming
Copy link

由于 BibTeX 功能所限,无法自动获取著者姓名的拼音或笔画笔顺,所以也不能正确排序(实际的排序是按照 UTF-8 编码顺序排序的)。一种解决方案是在 bib 数据库中的 key 域录入著者姓名的拼音。

@book{capital,
  author = {马克思 and 恩格斯},
  key    = {ma3 ke4 si1 en1 ge2 si1}, ...
}

另外一种方式是使用 biblatex-gb7714。但目前模板跟 natbib 耦合,不能使用 biblatex。我稍后打算修改一下,允许用户选择 BibTeX 或者 biblatex。@cugliming 如果不急的话可以等更新。

嗯,我查阅了一些资料。感觉中文环境下biblatex-gb7714-2015要强大的多额,尤其是作者按拼音排序这个功能解决了一大痛点。

@zepinglee
Copy link
Member Author

d7f6574 添加了 biblatex 的支持,可以测试一下看看有没有别的问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants