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

形如OCLC, DBMS, OLAP这样的缩写会变成小写 #172

Open
LeeiFrankJaw opened this issue Oct 29, 2024 · 5 comments
Open

形如OCLC, DBMS, OLAP这样的缩写会变成小写 #172

LeeiFrankJaw opened this issue Oct 29, 2024 · 5 comments

Comments

@LeeiFrankJaw
Copy link

编译环境

宏包版本:gbt7714 v2.1.5
\bibliographystyle{gbt7714-numerical}

描述问题

国标第 7 页 4.6.2 的示例中OCLC保留了大写而编译的结果是却会是全小写。虽说国标用了 sentence case,但是我从来没见到过缩写也变成全小写的情况。

bib 数据库代码:

@incollection{Stonebraker15,
  title =        "New DBMS Architectures",
  author =       "Stonebraker, Michael",
  year =         2015,
  month =        "Dec",
  booktitle =    "Readings in Database Systems",
  edition =      5,
  publisher =    "redbook.io",
  chapter =      4,
  tags =         "Database, Data Warehouse, Data Management",
  languages =    "eng",
  url =          "http://www.redbook.io/ch4-newdbms.html"
}

@techreport{Codd93,
  title =        "Providing OLAP to User-Analysts: An IT Mandate",
  author =       "Edgar F. Codd and S. B. Codd and C. T. Salley",
  year =         1993,
  month =        "Jan",
  publisher =    "E.F. Codd and Associates",
  tags =         "OLAP",
  languages =    "eng",
  url =          "https://web.archive.org/web/20040127222836/http://dev.hyperion.com/resource_library/white_papers/providing_olap_to_user_analysts_0.cfm"
}

截图:
Screenshot from 2024-10-29 18-10-22

上面是编译后的结果,下面的是国标里的例子。

Screenshot from 2024-10-29 18-12-35

@LeeiFrankJaw
Copy link
Author

Anyway,我找了一个workaround的方法。将bib中的全大写缩写用花括号保护起来。

@incollection{Stonebraker15,
  title =        "New {DBMS} Architectures",
  author =       "Stonebraker, Michael",
  year =         2015,
  month =        "Dec",
  booktitle =    "Readings in Database Systems",
  edition =      5,
  publisher =    "redbook.io",
  chapter =      4,
  tags =         "Database, Data Warehouse, Data Management",
  languages =    "eng",
  url =          "http://www.redbook.io/ch4-newdbms.html"
}

@techreport{Codd93,
  title =        "Providing {OLAP} to User-Analysts: An {IT} Mandate",
  author =       "Edgar F. Codd and S. B. Codd and C. T. Salley",
  year =         1993,
  month =        "Jan",
  publisher =    "E.F. Codd and Associates",
  tags =         "OLAP",
  languages =    "eng",
  url =          "https://web.archive.org/web/20040127222836/http://dev.hyperion.com/resource_library/white_papers/providing_olap_to_user_analysts_0.cfm"
}

@LeeiFrankJaw
Copy link
Author

而且页码范围的显示方式也是不对的,这个我要另开一个issue了。

@LeeiFrankJaw
Copy link
Author

而且页码范围的显示方式也是不对的,这个我要另开一个issue了。

我看了你的changelog,这个貌似应该是国标的bug。国标真的就是一坨屎,不是国标,真的没人会用它。那么多完备的styles,谁愿意主动用国标。

@LeeiFrankJaw
Copy link
Author

后来有发现了一些问题。下图是国标的第4页。

Screenshot from 2024-10-30 11-43-57

可以看到,副标题的首字母也是小写。但是此包出来的效果,副标题的首字母会保留大写。其实“保留大写”才是符合英文的习惯,也是符合APA的规范。(APA是我知道的主流的styles之中唯一在文献列表中用sentence case的)。但是我看到国标里的示例,副标题的首字母也是小写的。

@LeeiFrankJaw
Copy link
Author

此外,关于en dash的问题。从ACM DL上下载的bib文件,其中页码分隔符默认就是unicode编码的U+2013字符(这里是一个例子),这个包只处理了分隔符为hyphen minus的情况。相信大家现在,不是用luatex就是xetex,基本上以后默认字符为unicode的情况会越来越多。

待我有空,来把这些我遇到的问题,都pull request一遍吧。

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

1 participant