-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplugin.json
123 lines (123 loc) · 3.63 KB
/
plugin.json
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"preload": "preload.js",
"logo": "logo.png",
"features": [
{
"code": "letpub",
"explain": "查看期刊分区号",
"cmds": [
"lp",
"letpub"
]
},
{
"code": "ccf",
"explain": "查询期刊/会议在《中国计算机学会推荐国际学术会议和期刊目录(2022年)》的等级",
"cmds": [
"ccf"
]
},
{
"code": "ccf_cn",
"explain": "查询期刊在《计算领域高质量科技期刊分级目录(2022年)》的等级",
"cmds": [
"ccfc",
"ccfz"
]
},
{
"code": "pdf_replace",
"explain": "替换pdf的换行",
"cmds": [
{
"type": "regex",
"label": "替换pdf换行",
"match": "/.*\\r\\n.*/i",
"minLength": 20
}
],
"platform": [
"win32"
]
},
{
"code": "pdf_replace_linux",
"explain": "替换pdf的换行",
"cmds": [
{
"type": "regex",
"label": "替换pdf换行",
"match": "/.*\\n.*/i",
"minLength": 20
}
],
"platform": [
"linux",
"darwin"
]
},
{
"code": "zotero_search",
"explain": "查询Zotero文献",
"cmds": [
"zotero",
"zs"
]
},
{
"code": "unknown_cite",
"explain": "解析引用",
"cmds": [
{
"type": "over",
"label": "未知引用",
"minLength": 10
}
]
},
{
"code": "gbt_cite",
"explain": "匹配有可能不准确。若结果不准确,请使用「未知引用」",
"cmds": [
{
"type": "regex",
"label": "解析GB/T 7714引用",
"match": "/^(\\[(?<number>\\d+)\\]\\s*)?(?<author>[\\u4E00-\\u9FFFA-Za-z\\s.]+(,[\\u4E00-\\u9FFFA-Za-z\\s.]+)*)\\.\\s*(?<title>[\\u4E00-\\u9FFFA-Za-z\\s\\p{S}\\p{P}\\d]+)\\[(?<type>.+)\\][\\.(//)]\\s*(?<publisher>[\\u4E00-\\u9FFFA-Za-z\\s\\P{S}\\p{P}\\d]+)\\.?$/u"
}
]
},
{
"code": "mla_cite",
"explain": "匹配有可能不准确。若结果不准确,请使用「未知引用」",
"cmds": [
{
"type": "regex",
"label": "解析MLA引用",
"match": "/^(\\[(?<number>\\d+)\\]\\s*)?(?<author>[\\u4E00-\\u9FFFA-Za-z\\s.]+(,[\\u4E00-\\u9FFFA-Za-z\\s.&]+)*)\\s*[“\"](?<title>[\\u4E00-\\u9FFFA-Za-z\\s\\p{P}\\p{S}\\d]+)[\"”]\\p{P}?\\s*(?<publisher>[\\u4E00-\\u9FFFA-Za-z\\s\\P{S}\\p{P}\\d]+)\\.?$/u"
}
]
},
{
"code": "apa_cite",
"explain": "匹配有可能不准确。若结果不准确,请使用「未知引用」",
"cmds": [
{
"type": "regex",
"label": "解析APA引用",
"match": "/^(\\[(?<number>\\d+)\\]\\s*)?(?<author>[\\u4E00-\\u9FFFA-Za-z\\s.]+(,[\\u4E00-\\u9FFFA-Za-z\\s.&]+)*)\\p{P}?\\s*\\((?<year>[\\d\\sA-Za-z,]+)\\)\\.\\s*(?<title>[\\u4E00-\\u9FFFA-Za-z\\s\\p{S}\\d:-]+)\\.\\s*(?<publisher>[\\u4E00-\\u9FFFA-Za-z\\s\\P{S}\\p{P}\\d]+)\\.?(?:\\s*\\bAccessed\\s*(\\d{1,2}\\s\\w{3}\\.\\s\\d{4})\\b)?$/u"
}
]
},
{
"code": "ieee_cite",
"explain": "匹配有可能不准确。若结果不准确,请使用「未知引用」",
"cmds": [
{
"type": "regex",
"label": "解析IEEE引用",
"match": "/^(\\[(?<number>\\d+)\\]\\s*)?(?<author>[\\u4E00-\\u9FFFA-Za-z\\s.]+(,[\\u4E00-\\u9FFFA-Za-z\\s.&]+)*)\\p{P}\\s*[“\"](?<title>[\\u4E00-\\u9FFFA-Za-z\\s\\p{P}\\p{S}\\d]+)[\"”]\\s*(?<publisher>[\\u4E00-\\u9FFFA-Za-z\\s\\P{S}\\p{P}\\d]+)\\.?$/u"
}
]
}
]
}