-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ini
83 lines (76 loc) · 5.23 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
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
[folders]
SOUND_TEMP_FOLDER = ./temp/
SOUND_OUTPUT_FOLDER = .\outputmp3\
; if you use this software at different places and LONGMAN base path are different, write all of them down
; the software will try the follwing paths automaticly untill find an existing one
LONGMAN_BASE_PATH = (r'E:\朗文直排\sent_rename\sent_rename',r'F:\朗文直排\sent_rename')
; if there is only one path
; LONGMAN_BASE_PATH = (r'F:\朗文直排\sent_rename')
INPUT_FOLDER = .\selectednotes\
; if you use this software at different places and anki_database_path are different, write all of them down
; the software will try the follwing paths automaticly untill find an existing one
anki_database_path = (r'C:\Users\user\AppData\Roaming\Anki2\User 1\collection.anki2',r'C:\Users\Paul\AppData\Roaming\Anki2\User 1\collection.anki2')
[symbol_pronounce]
; these are some rules for pronoucation. because your TTS wouldn't pronouce the symbols like '~' 'adj.' correctly
; and maybe you used lots of symbols in your anki notes for convenience
; you should manually replace them to "real world" words, if you find the result mp3 sounds weird.
; TIP (1)
; be careful to the orders. for example , if you place '~':'word a' before '~=':'word b', '~=' would never be replaced defacto
; because the symbol '~' would have been replaced by the first rule and become 'word a='
; TIP (2)
; the word below 'currword' has a special usage . it represents the key word in your current card
; for example. the current card's front page is 'apple' and back page is 'an red fruit. I like ~ '
; use rule '~':currword+' ' ,can replace it to 'an red fruit. I like apple'
; TIP (3)
; fell free to add or delete rules below. my rules are not suitable for you.
; the basic structure is {'symbol':'your replacement','another symbol':'another replacement'} ,you can use one line or several.
1 = {'=>':'.衍生','~=':'.约等于','~=':'.约等于','SYN':'.同义词','%=':'.约等于'}
2 = {'OPP':'.反义词','=':'.同义词','~':currword,'~':currword,'%':currword,':':'.','>':'大于','<':'小于'}
3 = {'BrE':'英国英语','NAmE':'美国英语','\n':'.','adj.':'。adjective。','n.':'。noun。','vt.':'。vt.'}
4 = {'vi.':'。v i.',' vi ':' .v i.','adv.':'。adverb.','v.':'。v.','sb.':'somebody. ','sth.':'something. '}
5 = {'sb ':'somebody. ','sth ':'something. ',':':'。',';':'。',';':'。','短语':'.短语 ','/':'或'}
[engines]
; Run 'list_voices.py' to detect the TTS engine installed on your computer, which may be different from mine.
explanation = HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\TTS_MS_ZH-CN_HUIHUI_11.0
spelling = HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\TTS_MS_EN-US_ZIRA_11.0
; word = HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\IVONA 2 Voice Amy22
;word = HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\TTS_MS_EN-GB_HAZEL_11.0
word = HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\TTS_MS_EN-US_ZIRA_11.0
; word = HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\IVONA 2 Voice Brian22
[Anki_fields]
; there are many fields in an Anki note.
; I specified three of them to be converted to sound which is "word" "tip" and "explanation"
; you should not change 'word =' 'tip =' and 'explanation =' , only thing you should change is the number after them.
; the number represents the order in your own note. for example, In my note, the firest field is for words and I write
; tips in the 7th field.
word = 1
tips = 4
explanation = 3
fullexplanation = 7
[filename]
; when you export your selected notes to "seleted Notes.txt", you can change file name to ,for example, 1.txt
; and this software will do some cutomized processing for you.
; totally_forget = 1
ignore_filenames = ([1])
hardly_remember = 4
; have_some_difficulty =3
connection_difficulty =2
; pronuncation_difficulty =3g
spelling_difficulty = 5
[customized]
; by default, this software will read word and read explanation and then read word again. meanwhile, display word and tips in lyric
; every items you specified here must be the exact item you set up in [Anki_fields] and [filename] except 'spelling'
; 'spelling' is an reserved word in this software means read a word's spelling : apple a-p-p-l-e
totally_forget = {'read':['word','explanation','spelling','word'],'lyric':['tips','spelling']}
hardly_remember = {'read':['word','explanation','word'],'lyric':['word','tips']}
pronuncation_difficulty = {'read':['word','spelling','word','word'],'lyric':['word','explanation']}
spelling_difficulty = {'read':['word','spelling','word'],'lyric':['spelling','tips','explanation']}
have_some_difficulty = {'read':['word'],'lyric':['spelling','tips','explanation']}
connection_difficulty = {'read':['word','spelling','word'],'lyric':['word','tips','spelling']}
; for convinence , any filename don't match ,will be processed by default
default = {'read':['word'],'lyric':['word','explanation']}
[characters]
vowels = ['a','e','i','o','u']
half_vowel = ['y']
consonants =['b','c','d','f','g','h','j','k','l','m','n','p','q','r','s','t','v','w','x','z']
double_consonants =['br','bl','cl','cr','ck','ch','dr','ds','dw','fl','fr','gh','gr','gl','kn','ng','ph','pl','pr','ps','qu','sc','sl','sh','sp','sn','sm','shr','spl','spr','str','scr','squ','sph','sr','st','sw','tch','thr','thw','th','tr','tw']