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

Fix Chinese colon caused error #13

Merged
merged 1 commit into from
Feb 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cnki2bibtex/cnki_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self):
self.recorded_field_names = []

def add_field_from_line(self, string_line):
re_obj = re.match(r"\{(.*)\}:(.*)", string_line)
re_obj = re.match(r"\{(.*)\}[::](.*)", string_line)
field_name = re_obj.group(1).strip()
field_content = re_obj.group(2).strip()
self.fields[field_name] = field_content
Expand Down
18 changes: 18 additions & 0 deletions tests/assets/ChineseColon.net
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{Reference Type}: Journal Article
{Title}: 软组织肉瘤诊治中国专家共识(2015年版)
{Translated Title}: Chinese expert consensus on diagnosis and treatment of soft tissue sarcomas (Version 2015)
{Author}: 中国抗癌协会肉瘤专业委员会
{Author}: 中国临床肿瘤学会
{Author Address}: 复旦大学附属肿瘤医院|JG001257
{Journal}: 中华肿瘤杂志
{Translated Journal}: Chinese Journal of Oncology
{ISBN/ISSN}:0253-3766
{Year}: 2016
{Issue}: 4
{Pages}: 310-320
{Keywords}: 肉瘤;软组织肿瘤;诊断;治疗;规范
{Abstract}:软组织肉瘤是一类间叶来源的恶性肿瘤,可发生于全身各个部位,各年龄段均可发病。由于发病率低,种类繁多且生物学行为各异,如何规范诊疗一直是临床工作的难点。外科治疗仍然是软组织肉瘤唯一可获得根治和最重要的治疗手段,但在某些肉瘤类型或某些情形下需要进行化疗和放疗,靶向治疗也显示出了良好的前景。目前,对于如何实施规范的多学科综合治疗,如何配合应用各种治疗手段,尚缺乏普遍认可的共识。中国抗癌协会肉瘤专业委员会和中国临床肿瘤学会以循证医学证据为基础,同时吸纳了部分已获认可的专家经验和研究心得,深入探讨了软组织肉瘤的多学科综合治疗,形成了中国专家共识以期为临床诊疗活动发挥指导性作用。
{URL}:https://rs.yiigle.com/CN112152201604/889113.htm
{Database Provider}: 《中华医学杂志》社有限责任公司
{Language}:chi

19 changes: 19 additions & 0 deletions tests/assets/nameyear/ChineseColon.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@Article{ZhongGuoLinChuangZhongLiuXueHui2016,
author = {中国临床肿瘤学会},
title = {软组织肉瘤诊治中国专家共识(2015年版)},
journal = {中华肿瘤杂志},
year = {2016},
translatedtitle = {Chinese expert consensus on diagnosis and treatment of soft tissue sarcomas (Version 2015)},
authoraddress = {复旦大学附属肿瘤医院|JG001257},
translatedjournal = {Chinese Journal of Oncology},
ISBN = {0253-3766},
ISSN = {0253-3766},
issue = {4},
pages = {310-320},
keywords = {肉瘤;软组织肿瘤;诊断;治疗;规范},
abstract = {软组织肉瘤是一类间叶来源的恶性肿瘤,可发生于全身各个部位,各年龄段均可发病。由于发病率低,种类繁多且生物学行为各异,如何规范诊疗一直是临床工作的难点。外科治疗仍然是软组织肉瘤唯一可获得根治和最重要的治疗手段,但在某些肉瘤类型或某些情形下需要进行化疗和放疗,靶向治疗也显示出了良好的前景。目前,对于如何实施规范的多学科综合治疗,如何配合应用各种治疗手段,尚缺乏普遍认可的共识。中国抗癌协会肉瘤专业委员会和中国临床肿瘤学会以循证医学证据为基础,同时吸纳了部分已获认可的专家经验和研究心得,深入探讨了软组织肉瘤的多学科综合治疗,形成了中国专家共识以期为临床诊疗活动发挥指导性作用。},
url = {https://rs.yiigle.com/CN112152201604/889113.htm},
databaseprovider = {《中华医学杂志》社有限责任公司},
language = {chi},
}

19 changes: 19 additions & 0 deletions tests/assets/title/ChineseColon.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@Article{ruanzuzhirouliuzhenzhi,
author = {中国临床肿瘤学会},
title = {软组织肉瘤诊治中国专家共识(2015年版)},
journal = {中华肿瘤杂志},
year = {2016},
translatedtitle = {Chinese expert consensus on diagnosis and treatment of soft tissue sarcomas (Version 2015)},
authoraddress = {复旦大学附属肿瘤医院|JG001257},
translatedjournal = {Chinese Journal of Oncology},
ISBN = {0253-3766},
ISSN = {0253-3766},
issue = {4},
pages = {310-320},
keywords = {肉瘤;软组织肿瘤;诊断;治疗;规范},
abstract = {软组织肉瘤是一类间叶来源的恶性肿瘤,可发生于全身各个部位,各年龄段均可发病。由于发病率低,种类繁多且生物学行为各异,如何规范诊疗一直是临床工作的难点。外科治疗仍然是软组织肉瘤唯一可获得根治和最重要的治疗手段,但在某些肉瘤类型或某些情形下需要进行化疗和放疗,靶向治疗也显示出了良好的前景。目前,对于如何实施规范的多学科综合治疗,如何配合应用各种治疗手段,尚缺乏普遍认可的共识。中国抗癌协会肉瘤专业委员会和中国临床肿瘤学会以循证医学证据为基础,同时吸纳了部分已获认可的专家经验和研究心得,深入探讨了软组织肉瘤的多学科综合治疗,形成了中国专家共识以期为临床诊疗活动发挥指导性作用。},
url = {https://rs.yiigle.com/CN112152201604/889113.htm},
databaseprovider = {《中华医学杂志》社有限责任公司},
language = {chi},
}