-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ini
55 lines (42 loc) · 1.12 KB
/
config.ini
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
[trans-tool]
# Version of configuration file format.
version = 1
comment = "#"
separator = "="
# Supported log levels: 0 = quiet, 1 = normal, 2 = verbose
log_level = 1
debug = false
fatal = false
color = true
[Brackets]
# Keep matching elements at the same positions
opening = ["(", "[", "<", "{"]
closing = [")", "]", ">", "}"]
[DanglingKeys]
# No config options.
[EmptyTranslations]
strict = false
[FormattingValues]
# No config options.
[KeyFormat]
pattern = "^[a-zA-Z]+[a-zA-Z0-9_.]*[a-zA-Z0-9]+$"
[MissingTranslation]
strict = false
[Punctuation]
chars = [".", "?", "!", ":", r"\n"]
[QuotationMarks]
chars = ["\"", "'"]
[StartsWithTheSameCase]
# No config options.
[TrailingWhiteChars]
# No config options.
[TypesettingQuotationMarks]
# Keep matching elements at the same positions
# List based on:
# * https://www.overleaf.com/learn/latex/Typesetting_quotations#Reference_guide
# * https://en.wikipedia.org/wiki/Quotation_mark
# BUG: https://github.com/MarcinOrlowski/trans-tool/issues/19
opening = ["‘", "«", "„", "「", "《"]
closing = ["’", "»", "“", "」", "》"]
[WhiteCharsBeforeLinefeed]
# No config options.