-
Notifications
You must be signed in to change notification settings - Fork 1
/
constants.py
79 lines (71 loc) · 1.77 KB
/
constants.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
#!/usr/bin/python
# -*- coding: utf-8 -*-
TYPE_SOLEMNITY = 0
TYPE_LORD_FEAST = 1
TYPE_FEAST = 2
TYPE_MEMORY = 3
TYPE_OPTIONAL_MEMORY = 4
DIGIT_MAP = {0: '2', 1: '1'}
LETTER_MAP = {0: 'C', 1: 'A', 2: 'B'}
PSALTER_WEEK_MAP = {0: 4, 1: 1, 2: 2, 3: 3}
SEASON_ADVENT = 0
SEASON_CHRISTMAS = 1
SEASON_ORDINARY = 2
SEASON_ORDINARY_I = 2
SEASON_LENT = 3
SEASON_EASTER = 4
SEASON_ORDINARY_II = 5
SEASON_NUM = 6
WD_MONDAY = 0
WD_TUESDAY = 1
WD_WEDNESDAY = 2
WD_THURSDAY = 3
WD_FRIDAY = 4
WD_SATURDAY = 5
WD_SUNDAY = 6
PRI_TRIDUUM = 1
PRI_CHRISTMAS = 2
PRI_SOLEMNITIES = 3
PRI_LOCAL_SOLEMNITIES = 4
PRI_LORD_FEASTS = 5
PRI_SUNDAYS = 6
PRI_OTHER_FEASTS = 7
PRI_LOCAL_FEASTS = 8
PRI_STRONG_WEEKDAYS = 9
PRI_MEMORIES = 10
PRI_LOCAL_MEMORIES = 11
PRI_OPTIONAL_MEMORIES = 12
PRI_WEEKDAYS = 13
PRI_UNCHOSEN_OPT_MEM = 14
TYPE_TO_PRIORITY = {
TYPE_SOLEMNITY: PRI_SOLEMNITIES,
TYPE_LORD_FEAST: PRI_LORD_FEASTS,
TYPE_FEAST: PRI_OTHER_FEASTS,
TYPE_MEMORY: PRI_MEMORIES,
TYPE_OPTIONAL_MEMORY: PRI_UNCHOSEN_OPT_MEM,
}
TYPE_TO_TEXT = {
TYPE_SOLEMNITY: 'solemnity',
TYPE_LORD_FEAST: 'feast of the Lord',
TYPE_FEAST: 'feast',
TYPE_MEMORY: 'memory',
TYPE_OPTIONAL_MEMORY: 'optional memory',
None: 'N/A'
}
PRIORITY_TO_TEXT = {
PRI_TRIDUUM: 'triduum',
PRI_CHRISTMAS: 'Christmas',
PRI_SOLEMNITIES: 'solemnities',
PRI_LOCAL_SOLEMNITIES: 'local solemnities',
PRI_LORD_FEASTS: 'feasts of the Lord',
PRI_SUNDAYS: 'Sundays',
PRI_OTHER_FEASTS: 'other feasts',
PRI_LOCAL_FEASTS: 'local feasts',
PRI_STRONG_WEEKDAYS: 'strong weekdays',
PRI_MEMORIES: 'memories',
PRI_LOCAL_MEMORIES: 'local memories',
PRI_OPTIONAL_MEMORIES: 'optional memories',
PRI_WEEKDAYS: 'weekdays',
PRI_UNCHOSEN_OPT_MEM: 'unchosen optional memories',
None: 'N/A'
}