Skip to content

[Bib2GB]Converting bibtex file to GB/T 7714-2015 format.Bib文件转国标7714

License

Notifications You must be signed in to change notification settings

54dbd/Bibtex-to-GBT7714-2015

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License Patreon


Vector

Bibtex 转 GB/T 7714-2015 转换器

本项目用于将 bibtex 文件转换为 GB/T 7714 格式
了解 GB/T 7714-2015 »
报告错误

关于本项目

本项目旨在将 bibtex 文件转换为 GB/T 7714 格式,该格式是中国学术出版物常用的标准引用格式。
通过将 bibtex 文件转换为 GB/T 7714 格式,可以更方便地将参考文献集成到中文学术论文中。

快速开始

本项目运行于 Python 3.9+,较低版本未经过测试。

环境

  • Python 3.9+
  • poetry

安装步骤

  1. 克隆仓库
  git clone https://github.com/54dbd/Bibtex-to-gbt7714-converter.git
  1. 安装 poetry 依赖
 poetry install

或者使用 pip:

 pip install -r requirements.txt
  1. 运行转换脚本,并以 bibtex 文件作为输入:
  poetry run python main.py data/ref.bib

或者

  python main.py data/ref.bib

将 ref.bib 替换为你的 bibtex 文件名。

使用方法

例如,如果你有一个 bibtex 文件 ref.bib,可以运行以下命令将其转换为 GB/T 7714 格式:

python main.py data/ref.bib

如果你需要添加默认列表中没有的中文姓氏,可以使用以下代码将它们添加到 data/Chinese_surname.csv 文件中:

python utility/chineseSurnameCombination.py <name1> <name2> <name3> ...

开发规划

  • 支持 arXiv 格式输入
  • 支持常见格式输入
  • 支持所有现有格式
  • 针对不同类型的媒体进行专门处理
  • 支持多语言输入
    • 英文
    • 中文(未测试,考虑到本项目主要用于将国际参考文献转换为中文学术引用格式)

查看 open issues 了解完整的待实现功能及已知问题。

贡献者

  • 54dbd

  • Freddie_1946

  • Aegis1863

许可证

本项目基于 GPL-3.0 许可证分发。详情请查看 LICENSE.txt 文件。