zepinglee / gbt7714-bibtex-style

GB/T 7714-2015 BibTeX Style
LaTeX Project Public License v1.3c
1.19k stars 200 forks source link

不能处理西文姓氏中含如 `é` 到 `É` 的大小写转换 #145

Closed LaoshuBaby closed 1 year ago

LaoshuBaby commented 1 year ago

编译环境

宏包版本:Version: 2022/03/21 v2.1.4 标注样式:我不知道

描述问题(含截图)

国标的姓氏大写示例似乎没有出现非ASCII的字母 图片 而实际引用文献的时候有作者形式中出现了 é ,而本包并未将其转换为大写(https://zh.wikipedia.org/wiki/%C3%89图片

bib 数据库代码:

@article{barthelemy_betweenness_2004,
    title = {Betweenness centrality in large complex networks},
    volume = {38},
    issn = {1434-6036},
    url = {https://link.springer.com/article/10.1140/epjb/e2004-00111-4},
    doi = {10.1140/epjb/e2004-00111-4},
    abstract = {We analyze the betweenness centrality (BC) of nodes in large complex networks. In general, the BC is increasing with connectivity as a power law with an exponent \${\textbackslash}eta\$. We find that for trees or networks with a small loop density \${\textbackslash}eta = 2\$while a larger density of loops leads to \${\textbackslash}eta {\textless} 2\$. For scale-free networks characterized by an exponent \${\textbackslash}gamma\$which describes the connectivity distribution decay, the BC is also distributed according to a power law with a non universal exponent \${\textbackslash}delta\$. We show that this exponent \${\textbackslash}delta\$must satisfy the exact bound \${\textbackslash}delta{\textbackslash}geq ({\textbackslash}gamma + 1)/2\$. If the scale free network is a tree, then we have the equality \${\textbackslash}delta = ({\textbackslash}gamma + 1)/2\$.},
    language = {en},
    number = {2},
    urldate = {2023-10-21},
    journal = {The European Physical Journal B},
    author = {Barthélemy, M.},
    month = mar,
    year = {2004},
    keywords = {Betweenness Centrality, Complex Network, Large Complex, Large Density, Scale Free Network},
    pages = {163--168},
}

期望效果就是遇到这些é的时候能一并转为大写的É(当然也不仅这一个帽子字母)

zepinglee commented 1 year ago

主要是 BibTeX 不支持 Unicode。可以写成 Barth{\'e}lemy

LaoshuBaby commented 1 year ago

主要是 BibTeX 不支持 Unicode。可以结成 Barth{\'e}lemy

嗯,主要是目前的bibtex是zotero导出的,手改肯定要被后续导出盖掉,之后可能用py写一个预处理工具,zotero导完编译前过一下查找替换

其实最开始在开这个issue前我是直接脚本替换成 BarthÉlemy 来保证大小写的(逃,这太不优雅了!)

zepinglee commented 1 year ago

主要是 BibTeX 不支持 Unicode。可以结成 Barth{\'e}lemy

嗯,主要是目前的bibtex是zotero导出的,手改肯定要被后续导出盖掉,之后可能用py写一个预处理工具,zotero导完编译前过一下查找替换

~其实最开始在开这个issue前我是直接脚本替换成 BarthÉlemy 来保证大小写的(逃,这太不优雅了!)~

Zotero 的话使用 BetterBibTeX 插件,导出时选择 Better BibTeX 格式。