-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
61 lines (59 loc) · 1.38 KB
/
settings.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
REPLACEMENT_SYMBOLS = {
# Settings to replace the symbol on the left with the symbol on the right
"(": "(", ")": ")",
# "「": "\"", "」": "\"", "“": "\"", "”": "\"",
# "『": "\"", "』": "\"", "《": "\"", "》": "\"", "≪": "\"", "≫": "\"", "‘": "\"", "’": "\"",
# "\"(": "\"", ")\"": "\"", "(": "\"", ")": "\"",
"“": "「", "”": "」",
# "‘": "「", "’": "」", "《": "「", "》": "」",
# "『": "「", "』": "」",
# "‘": "『", "’": "』",
"·": "・",
"―": "—",
"!": "!",
"?": "?",
"*": "*",
"◆": "*",
# "─": "*",
}
SURROUNDING_SPACES = [
# Symbols that should be removed if they are at the start or end of a line
" ",
" ",
]
QUOTE_ANCHOR_SYMBOLS = [
# Anchor symbols are are quotes so need to be treated differently
["「", "」"],
["『", "』"],
["【", "】"],
["<", ">"],
# ["(", ")"],
# ["\"", "\""],
]
ANCHOR_SYMBOLS = [
# Symbols that can be used to anchor lines
# "-",
# "—",
# "-",
"§",
"#",
"*",
"*",
"→",
# "○",
# "・",
"①",
"②",
"③",
"④",
"⑤",
"(",
")",
# "\"",
# "…",
]
ERROR_CORRECT_LINE_SYMBOL = ";"
INITIAL_CHAOS = 0
MAX_CHAOS_PERMITTED = 100
CHAOS_RISE_ON_SIMPLE_LINE_FIX = 10
CHAOS_RISE_ON_COMPLEX_LINE_FIX = 20