-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sample.toml
60 lines (53 loc) · 1.96 KB
/
config.sample.toml
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
# NOTE: Do not delete any fields here
# If a field is not applicable or an undesirable optional feature, set them to default values (e.g. false or empty value)
# each line has its own word
# will be used for batch-generation functionality
words_file = "/home/user/words.txt"
# words that could not be added are appended to this file (optional)
failed_words_file = "/home/user/failed_words.txt"
# language is by default chinese
# you can change it by setting this to true
is_japanese = false
[anki]
# hit rename in the target deck, and copy the current name
deck = "Deck"
model = "Note Type"
word_field = "Word"
sent_field = "Sentence"
dict_field = "Definition"
img_field = "Picture"
audio_field = "Audio"
# for chinese, to display pinyin w/ coloring in Anki
word_pinyin_field = "Word + Word Pinyin"
# make sure to get the AnkiConnect addon first
# usually this part can be left alone
[ankiconnect]
port = 8765
address = "127.0.0.1"
[duplicate_handler]
skip_if_dup = true
# if skip_if_dup = true, configure these
scope = "collection" # or "deck" for looking under a specific deck only
# if deck was previously selected, check this deck, as well as its subdecks
deck = "Deck Name"
# each individual dictionary has a config section like this
[dict."cedict"]
enabled = true
# priority controls how definitions rank amongst multiple results
# higher the priority, the higher up it shows up
priority = 9999
# if all other non-priority dicts don't have results, use this dict
fallback = false
[lookup]
# use a custom loaded frequency list to sort results based on their frequency
sort_freq = false
[media]
# if you have a custom audio server, you can configure it here
# format the link like such, where {} gets replaced by the actual word
custom_audio_server = "http://localhost:5000/?expression={}"
# enable/disable picture generation
add_picture = false
# if the audio server fails to return results, use forvo instead
fallback_forvo = true
# if media could not be fetched, simply exit
bail_on_empty = false