-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSNG_DEFAULTS.py
98 lines (87 loc) · 1.98 KB
/
SNG_DEFAULTS.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
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
"""This module is used to configure some default values which are reused in the code."""
from datetime import datetime
import pytz
SngDefaultHeader = {
"LangCount": "1",
"Editor": f"Benedict's Python Script am {datetime.now(tz=pytz.timezone('Europe/Berlin')).date()}",
"Version": "3",
}
SngRequiredHeader = [
"Title",
"Author",
"Melody",
"(c)",
"CCLI",
"Songbook",
"ChurchSongID",
"VerseOrder",
"Version",
"Editor",
]
SngOptionalHeader = [
"ID", # ChurchTools ID
"OTitle",
"TitleLang2",
"Translation",
"Bible", # Checked with Psalms only
"Rights",
]
SngIllegalHeader = [
"TitleFormat",
"FontSize",
"Format",
"TitleFormat",
]
SngTitleNumberChars = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "."]
SngSongBookPrefix = ["EG", "FJ", "WWDLP"]
# All Prefix which are known to be followed by a number
KnownSongBookPrefix = {"EG", "FJ1", "FJ2", "FJ3", "FJ4", "FJ5", "FJ6", "Wwdlp", "test"}
KnownDirectory = (
"/home/benste/Documents/Kirchengemeinde Baiersbronn/Beamer/Songbeamer - Songs/"
)
KnownFolderWithPrefix = {
"EG Lieder": "EG",
"EG Psalmen & Sonstiges": "EG",
"Feiert Jesus 1": "FJ1",
"Feiert Jesus 2": "FJ2",
"Feiert Jesus 3": "FJ3",
"Feiert Jesus 4": "FJ4",
"Feiert Jesus 5": "FJ5",
"Feiert Jesus 6": "FJ6",
"Sonstige Lieder": "",
"Sonstige Texte": "",
"Hintergrundmusik": "",
"Test": "",
"Wwdlp (Wo wir dich loben, wachsen neue Lieder plus)": "Wwdlp",
}
KnownSongBookPsalmRange = {
"EG": {"start": 701, "end": 758},
"WWDLP": {"start": 901, "end": 921},
}
VerseMarker = [
"Unbekannt",
"Unbenannt",
"Unknown",
"Intro",
"Vers",
"Verse",
"Strophe",
"Pre - Bridge",
"Bridge",
"Misc",
"Pre-Refrain",
"Refrain",
"Pre-Chorus",
"Chorus",
"Pre-Coda",
"Zwischenspiel",
"Instrumental",
"Interlude",
"Coda",
"Ending",
"Outro",
"Teil",
"Part",
"Chor",
"Solo",
]