-
Notifications
You must be signed in to change notification settings - Fork 2
/
bibmaptitlecases.py
71 lines (64 loc) · 2.89 KB
/
bibmaptitlecases.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#
#数据修改的设置
#
#注意:域如果不存在且需要终止,应加上"final":True
# 大小写字母保护的字符串
CaseProtect=['AIAA','IEEE','AAAI',"GECCO\'18","ACML","SAR",'BVR','UAV','UCAV','UAVs','PSO','AI','IJCAI','WIC','ACM',
'CICAI','CDC','CoRR','IT','CAA','PSO','CAC','ICLR','II','III','IV','NIPS','arXiv','VI','VII',
'VIII','IJCNN','AAMAS','ICGNC','CIG','ICUS','ACC','ICMA','MATEC','ACTA']
#其他情况请在bib文件中修改做保护,比如用{}包起来,NIPS-12这种用带数字的单词会自动保护
#平时积累的时候就要做保护
'''
sourcemaps=[
[#map1:将设置title为sentencecase
{"fieldsource":"title","final":True},#
{"fieldset":"title","origfieldval":True,"fieldfunction":'setuppercase',"overwrite":True}#step1
],
[#map2:将设置booktitle为titlecase
{"fieldsource":"booktitle","final":True},#
{"fieldset":"booktitle","origfieldval":True,"fieldfunction":'setuppercase',"overwrite":True}#step1
],
[#map3:将设置journal为titlecase
{"fieldsource":"journal","final":True},#
{"fieldset":"journal","origfieldval":True,"fieldfunction":'setuppercase',"overwrite":True}#step1
],
[#map3:将设置journaltitle为titlecase
{"fieldsource":"journaltitle","final":True},#
{"fieldset":"journaltitle","origfieldval":True,"fieldfunction":'setuppercase',"overwrite":True}#step1
]
]
'''
sourcemaps=[
[#map1:将设置title为sentencecase
{"fieldsource":"title","final":True},#
{"fieldset":"title","origfieldval":True,"fieldfunction":'setsentencecase',"overwrite":True}#step1
],
[#map2:将设置booktitle为titlecase
{"fieldsource":"booktitle","final":True},#
{"fieldset":"booktitle","origfieldval":True,"fieldfunction":'settitlecasestd',"overwrite":True}#step1
],
[#map3:将设置journal为titlecase
{"fieldsource":"journal","final":True},#
{"fieldset":"journal","origfieldval":True,"fieldfunction":'settitlecasestd',"overwrite":True}#step1
],
[#map3:将设置journaltitle为titlecase
{"fieldsource":"journaltitle","final":True},#
{"fieldset":"journaltitle","origfieldval":True,"fieldfunction":'settitlecasestd',"overwrite":True}#step1
]
]
'''
sourcemaps=[
[#map1:将设置title为sentencecase
{"fieldsource":"date","extract":r"(\d\d\d\d)","notinrange":['1995','2005'],"final":True},#
{"fieldsource":"title","final":True},#
{"fieldset":"title","origfieldval":True,"fieldfunction":'setsentencecase',"overwrite":True}#step1
],
[#map2:将设置title为sentencecase
{"fieldsource":"entrykey","in":['southey2005bayes','Silver2017Mastering'],"final":True},#
{"fieldsource":"title","final":True},#
{"fieldset":"title","origfieldval":True,"fieldfunction":'setsentencecase',"overwrite":True}#step1
]
]
'''
#默认不做修改
#sourcemaps=[]