-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
215 lines (215 loc) · 6.6 KB
/
package.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
{
"$schema": "https://www.raycast.com/schemas/extension.json",
"name": "cjk-text-assistant",
"title": "CJK Text Assistant",
"description": "Improve the formatting of CJK text. Format text copied from PDFs or OCR, add whitespace between CJk characters and English characters, and more.",
"icon": "extension-icon.png",
"author": "maxchang3",
"categories": [
"Productivity"
],
"license": "AGPL-3.0",
"commands": [
{
"name": "improve-copied",
"title": "Improve Copied Text",
"description": "Improve text copied from a PDF or OCR.",
"mode": "no-view"
},
{
"name": "format-text",
"title": "Format Text",
"description": "Format text using pangu.js.",
"mode": "no-view"
},
{
"name": "quotes-to-corner",
"title": "Convert CJK Quotes to Corner Bracket",
"description": "Convert CJK quotes to corner brackets.(「」)",
"mode": "no-view"
}
],
"preferences": [
{
"name": "convertEnglishPunctuationToChinese",
"title": "将英文标点转换为中文标点",
"description": "将英文标点转换为中文标点",
"type": "checkbox",
"required": false,
"default": false,
"label": "开启"
},
{
"name": "convertChinesePunctuationToEnglish",
"title": "将中文标点转换为英文标点",
"description": "将中文标点转换为英文标点",
"type": "checkbox",
"required": false,
"default": false,
"label": "开启"
},
{
"name": "convertCJKQuotesToCornerBracket",
"title": "将中文引号转换为直角引号(「」)",
"description": "将中文引号转换为直角引号(「」)",
"type": "checkbox",
"required": false,
"default": false,
"label": "开启"
},
{
"name": "deleteReferenceCurveBadge",
"title": "删除引用角标,如: (1), (2, 3), (4-7)",
"description": "删除引用角标,如: (1), (2, 3), (4-7)",
"type": "checkbox",
"required": false,
"default": false,
"label": "开启"
},
{
"name": "deleteReferenceBadge",
"title": "删除引用角标,如: [1], [2, 3], [4-7]",
"description": "删除引用角标,如: [1], [2, 3], [4-7]",
"type": "checkbox",
"required": false,
"default": true,
"label": "开启"
},
{
"name": "convertFullWidthCharactersToHalfWidth",
"title": "全角字符转半角字符",
"description": "全角字符转半角字符",
"type": "checkbox",
"required": false,
"default": false,
"label": "开启"
},
{
"name": "deleteMultipleNewlines",
"title": "删除重复的换行符",
"description": "删除重复的换行符",
"type": "checkbox",
"required": false,
"default": true,
"label": "开启"
},
{
"name": "replaceNewlinesWithSpaces",
"title": "将换行符替换为空格",
"description": "将换行符替换为空格",
"type": "checkbox",
"required": false,
"default": true,
"label": "开启"
},
{
"name": "replaceMultipleSpacesWithASingleSpace",
"title": "删除掉重复的空格",
"description": "删除掉重复的空格",
"type": "checkbox",
"required": false,
"default": true,
"label": "开启"
},
{
"name": "removeSpacesBetweenNonEnglishLetters",
"title": "删除非英文字母间的空格",
"description": "删除非英文字母间的空格",
"type": "checkbox",
"required": false,
"default": true,
"label": "开启"
},
{
"name": "addSpaceAfterEnglishPunctuation",
"title": "在标点符号后添加空格",
"description": "在标点符号后添加空格",
"type": "checkbox",
"required": false,
"default": true,
"label": "开启"
},
{
"name": "deleteSpaceBetweenDotAndNumber",
"title": "删除小数点和数字之间的空格",
"description": "删除小数点和数字之间的空格",
"type": "checkbox",
"required": false,
"default": true,
"label": "开启"
},
{
"name": "addSpacesBetweenEnglishLettersAndNumbers",
"title": "在字母与数字之间添加空格",
"description": "在字母与数字之间添加空格",
"type": "checkbox",
"required": false,
"default": false,
"label": "开启"
},
{
"name": "deleteSpaceBetweenColonAndNumber",
"title": "删除冒号和数字之间的空格",
"description": "删除冒号和数字之间的空格",
"type": "checkbox",
"required": false,
"default": false,
"label": "开启"
},
{
"name": "addWhiteOfPanGu",
"title": "规范中文排版(使用 pangu.js)",
"description": "规范中文排版(使用 pangu.js)",
"type": "checkbox",
"required": false,
"default": true,
"label": "开启"
},
{
"name": "switchSimplifiedChineseToTraditionalChinese",
"title": "将简体中文转换为繁体中文",
"description": "将简体中文转换为繁体中文",
"type": "checkbox",
"required": false,
"default": false,
"label": "开启"
},
{
"name": "switchTraditionalChineseToSimplifiedChinese",
"title": "将繁体中文转换为简体中文",
"description": "将繁体中文转换为简体中文",
"type": "checkbox",
"required": false,
"default": false,
"label": "开启"
}
],
"dependencies": {
"@raycast/api": "^1.85.0",
"@raycast/utils": "^1.18.0",
"@types/opencc-js": "^1.0.3",
"@types/pangu": "^4.0.2",
"opencc-js": "^1.0.5",
"pangu": "^4.0.7",
"ts-results-es": "^4.2.0"
},
"devDependencies": {
"@raycast/eslint-config": "^1.0.11",
"@types/node": "20.8.10",
"@types/react": "18.3.3",
"eslint": "^8.57.1",
"prettier": "^3.3.3",
"tsx": "^4.19.2",
"typescript": "^5.6.3"
},
"scripts": {
"build": "ray build",
"dev": "ray develop & tsx scripts/devtool.ts",
"fix-lint": "ray lint --fix",
"lint": "ray lint",
"prepublishOnly": "echo \"\\n\\nIt seems like you are trying to publish the Raycast extension to npm.\\n\\nIf you did intend to publish it to npm, remove the \\`prepublishOnly\\` script and rerun \\`npm publish\\` again.\\nIf you wanted to publish it to the Raycast Store instead, use \\`npm run publish\\` instead.\\n\\n\" && exit 1",
"publish": "npx @raycast/api@latest publish",
"manifest": "tsx scripts/utils.ts manifest",
"typegen": "tsx scripts/utils.ts typegen"
}
}