-
Notifications
You must be signed in to change notification settings - Fork 16
/
settings.json
385 lines (385 loc) · 10.8 KB
/
settings.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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
{
"options": [{
"key": "normalize_eol",
"label": "Normalize eol",
"description": [
"replaces windows end of lines with unix eol (`\n`)"
],
"default": true
},
{
"key": "decode_htmlentities",
"label": "Decode HTML Entities",
"description": [
"converts numeral and selected html character-sets into original characters"
],
"default": true
},
{
"key": "fix_dashes",
"label": "Fix Dashes",
"description": [
"replaces triple dash to mdash",
"replaces double dash to ndash"
],
"default": true
},
{
"key": "fix_three_dots",
"label": "Fix three dots",
"description": [
"removes spaces between dots",
"replaces three dots with ellipsis character"
],
"default": true
},
{
"key": "normalize_ellipsis",
"label": "Normalize Ellipsis",
"description": [
"replaces more than one ellipsis with one",
"replaces (space|tab|zwnj) after ellipsis with one space"
],
"default": true
},
{
"key": "normalize_dates",
"label": "Normalize Dates",
"description": [
"re-orders date parts with slash as delimiter"
],
"default": true
},
{
"key": "fix_english_quotes_pairs",
"label": "Fix English Quotes Pairs",
"description": [
"replaces english quote pairs with their persian equivalent"
],
"default": true
},
{
"key": "fix_english_quotes",
"label": "Fix English Quotes",
"description": [
"replaces english quote marks with their persian equivalent"
],
"default": true
},
{
"key": "fix_hamzeh",
"label": "Fix Hamzeh",
"description": [
"replaces ه followed by (space|ZWNJ|lrm) follow by ی with هٔ",
"replaces ه followed by (space|ZWNJ|lrm|nothing) follow by ء with هٔ",
"replaces هٓ or single-character ۀ with the standard هٔ"
],
"default": true
},
{
"key": "fix_hamzeh_arabic",
"label": "Fix Hamzeh Arabic",
"description": [
"converts arabic hamzeh ة to هٔ"
],
"default": false
},
{
"key": "cleanup_rlm",
"label": "Cleanup RLM",
"description": [
"converts Right-to-left marks followed by persian characters to zero-width non-joiners (ZWNJ)"
],
"default": true
},
{
"key": "cleanup_zwnj",
"label": "Cleanup ZWNJ",
"description": [
"converts all soft hyphens (­) into zwnj",
"removes more than one zwnj",
"cleans zwnj after characters that don't conncet to the next",
"cleans zwnj before and after numbers, english words, spaces and punctuations",
"removes unnecessary zwnj on start/end of each line"
],
"default": true
},
{
"key": "fix_spacing_for_braces_and_quotes",
"label": "Fix Spacing for Braces and Quotes",
"description": [
"removes inside spaces and more than one outside for `()`, `[]`, `{}`, `“”` and `«»`"
],
"default": true
},
{
"key": "fix_arabic_numbers",
"label": "Fix Arabic Numbers",
"description": [
"replaces arabic numbers with their persian equivalent"
],
"default": true
},
{
"key": "fix_english_numbers",
"label": "Fix English Numbers",
"description": [
"replaces english numbers with their persian equivalent"
],
"default": true
},
{
"key": "fix_misc_non_persian_chars",
"label": "Fix Misc Non-Persian Chars",
"description": [
"replaces arabic normal/swash kaf with its persian equivalent",
"replaces arabic/urdu/pushtu/uyghur yeh with its persian equivalent",
"replaces kurdish he with its persian equivalent"
],
"default": true
},
{
"key": "fix_punctuations",
"label": "Fix Punctuations",
"description": [
"replaces `,`, `;` with its persian equivalent"
],
"default": true
},
{
"key": "fix_question_mark",
"label": "Fix Question Marks",
"description": [
"replaces question marks with its persian equivalent"
],
"default": true
},
{
"key": "skip_markdown_ordered_lists_numbers_conversion",
"label": "Skip Markdown Ordered Lists Numbers Conversion",
"description": [
"skips converting english numbers of ordered lists in markdown"
],
"default": false
},
{
"key": "fix_perfix_spacing",
"label": "Fix Perfix Spacing",
"description": [
"puts zwnj between the word and the prefix: `mi*`, `nemi*`, `bi*`"
],
"default": true
},
{
"key": "fix_suffix_spacing",
"label": "Fix Suffix Spacing",
"description": [
"put zwnj between word and suffix: `*am`, `*at`, `*ash`, `*ei`, `*eid`, `*eem`, `*and`, `*man`, `*tan`, `*shan`, `*ha`, `*haye`, `*tar`, `*tari`, `*tarin`, `*hayee`, `*hayam`, `*hayat`, `*hayash`, `*hayetan`, `*hayeman`, `*hayeshan`"
],
"default": true
},
{
"key": "fix_suffix_misc",
"label": "Fix Suffix Misc",
"description": [
"replaces `ه` followed by `ئ` or `ی`, and then by `ی`, with `های`"
],
"default": true
},
{
"key": "kashidas_as_parenthetic",
"label": "Kashidas as Parenthetic",
"description": [
"replaces kashidas to ndash in parenthetic"
],
"default": true
},
{
"key": "cleanup_kashidas",
"label": "Cleanup Kashidas",
"description": [
"converts kashida between numbers to ndash",
"removes all kashidas between non-whitespace characters"
],
"default": true
},
{
"key": "cleanup_extra_marks",
"label": "Cleanup Extra Marks",
"description": [
"removes space between different/same marks",
"replaces more than one exclamation mark with just one",
"replaces more than one english or persian question mark with just one",
"re-orders consecutive marks: `?!` into `!?`"
],
"default": true
},
{
"key": "cleanup_spacing",
"label": "Cleanup Spacing",
"description": [
"replaces more than one space with just a single one",
"cleans whitespace/zwnj between new-lines"
],
"default": true
},
{
"key": "cleanup_line_breaks",
"label": "Cleanup Line Breaks",
"description": [
"cleans more than *two* contiguous line breaks"
],
"default": true
},
{
"key": "cleanup_begin_and_end",
"label": "Cleanup Begin and End",
"description": [
"removes space/tab/zwnj/nbsp from the beginning of the new-lines",
"removes spaces, tabs, zwnj, direction marks and new lines from the beginning and end of text"
],
"default": true
},
{
"key": "preserve_HTML",
"label": "Preserve HTML",
"description": [
"preserves all html tags in the text"
],
"default": true
},
{
"key": "preserve_comments",
"label": "Preserve Comments",
"description": [
"preserves all html comments in the text"
],
"default": true
},
{
"key": "preserve_entities",
"label": "Preserve Entities",
"description": [
"preserves all html entities in the text"
],
"default": true
},
{
"key": "preserve_frontmatter",
"label": "Preserve Frontmatter",
"description": [
"preserves frontmatter data in the text"
],
"default": true
},
{
"key": "preserve_URIs",
"label": "Preserve URIs",
"description": [
"preserves all uri strings in the text"
],
"default": true
},
{
"key": "preserve_nbsps",
"label": "Preserve NBSPs",
"description": [
"preserves all no-break space entities in the text"
],
"default": true
},
{
"key": "preserve_brackets",
"label": "Preserve Brackets",
"description": [
"preserves strings inside square brackets (`[]`)"
],
"default": false
},
{
"key": "preserve_braces",
"label": "Preserve Braces",
"description": [
"preserves strings inside curly braces (`{}`)"
],
"default": false
},
{
"key": "fix_diacritics",
"label": "Fix Diacritics",
"description": [
"cleans zwnj before diacritic characters",
"cleans more than one diacritic characters",
"cleans spaces before diacritic characters"
],
"default": true
},
{
"key": "remove_diacritics",
"label": "Remove Diacritics",
"description": [
"removes all diacritic characters"
],
"default": false
},
{
"key": "fix_numeral_symbols",
"label": "Fix Numeral Symbols",
"description": [
"replaces english percent signs (U+066A)",
"replaces dots between numbers into decimal separator (U+066B)",
"replaces commas between numbers into thousands separator (U+066C)"
],
"default": true
},
{
"key": "fix_persian_glyphs",
"label": "Fix Persian Glyphs",
"description": [
"converts incorrect persian glyphs to standard characters"
],
"default": true
},
{
"key": "fix_misc_spacing",
"label": "Fix Misc Spacing",
"description": [
"removes space before parentheses on misc cases",
"removes space before braces containing numbers"
],
"default": true
},
{
"key": "fix_spacing_for_punctuations",
"label": "Fix Spacing for Punctuations",
"description": [
"removes space before punctuations",
"removes more than one space after punctuations, except followed by new-lines",
"removes space after colon that separates time parts",
"removes space after dots in numbers",
"removes space before some common domain tlds",
"removes space between different/same marks"
],
"default": true
},
{
"key": "markdown_normalize_braces",
"label": "Markdown Normalize Braces",
"description": [
"removes spaces between `[]` and `()` (`[text] (link)` into `[text](link)`)",
"removes space between `!` and opening brace (`! [alt](src)` into `![alt](src)`)",
"removes spaces inside double `()`, `[]`, `{}` (`[[ text ]]` into `[[text]]`)",
"removes spaces between double `()`, `[]`, `{}` (`[[text] ]` into `[[text]]`)"
],
"default": true
},
{
"key": "markdown_normalize_lists",
"label": "Markdown Normalize Lists",
"description": [
"removes extra lines between two items on a markdown list beginning with `-`, `*` or `#`"
],
"default": true
}
]
}