-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.env_public
188 lines (174 loc) · 5.81 KB
/
.env_public
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
# THIS FILE DOES NOT CONTAIN ANY SENSITIVE INFORMATION
# LINKS TO PUBLIC REPOS
ALL_REFERENCES_URL = "https://raw.githubusercontent.com/suttacentral/sc-data/main/misc/pali_reference_edition.json"
FRONTMATTER_URL = "https://raw.githubusercontent.com/suttacentral/sc-data/main{working_dir}{matter}"
CREATOR_BIOS_URL = "https://raw.githubusercontent.com/suttacentral/sc-data/main/additional-info/creator_bio.json"
SUPER_TREE_URL = "https://raw.githubusercontent.com/suttacentral/sc-data/main/structure/tree/super-tree.json"
TREE_URL = "https://raw.githubusercontent.com/suttacentral/sc-data/main/structure/tree/{text_type}/{tree_uid}-tree.json"
SCDATA_REPO_URL = "https://api.github.com/repos/suttacentral/sc-data"
EDITIONS_REPO_URL = "https://api.github.com/repos/suttacentral/editions"
REPO_PATH_PATTERN = "{translation_lang_iso}/{creator_uid}/{text_uid}/{publication_type}"
LAST_RUN_DATE_FILE_URL = "https://raw.githubusercontent.com/suttacentral/editions/main/last_run_date"
# SUTTA API
SUTTACENTRAL_URL = "https://suttacentral.net/"
API_URL = "http://suttacentral.net/api/"
API_ENDPOINTS = '{
"edition_mainmatter": "publication/edition/{edition_id}/{uid}",
"edition_files": "publication/edition/{edition_id}/files",
"editions_mapping": "publication/editions",
"specific_edition": "publication/edition/{edition_id}",
}'
# PUBLICATION ID FINDER PATTERN
EDITION_FINDER_PATTERNS = '[
{"any": ("/_publication/", "/comment/"), "all": ("/{lang_iso}/", "/{creator}/", "/{uid}/")},
{"any": ("/html/", "/reference/", "/variant/"), "all": ("/{uid}/",)},
{"all": ("/root/", "/blurb/", "/{lang_iso}/", "/{uid}-")},
{"any": ("/{uid}/", "/{uid}-"), "all": ("/translation/", "/{lang_iso}/", "/{creator}/")},
]'
# BASE HTML
ACCEPTED_REFERENCES = '[]' # Sample: '["bj", "pts-vp-pli"]'
ADDITIONAL_HEADINGS = '{
"frontmatter": [
("foreword", "Foreword"),
("preface", "Preface"),
("general_introduction", "General Introduction"),
("introduction", "Introduction"),
("acknowledgements", "Acknowledgements"),
("blurbs", "Summary of Contents"),
],
"backmatter": [
("endnotes", "Endnotes"),
("colophon", "Colophon"),
],
}'
MATTERS_TO_TEMPLATES_MAPPING = '{
"titlepage": "title-page-template.html",
"imprint": "imprint-template.html",
"halftitlepage": "halftitle-page-template.html",
"main-toc": "main-toc.html",
"secondary-toc": "secondary-toc.html",
"blurbs": "blurb-template.html",
"creator-bio": "creator-bio-template.html",
"colophon": "colophon.html",
"endnotes": "endnotes-template.html",
}'
# LATEX EDITION
LATEX_DOCUMENT_CONFIG = '{
"documentclass": "book",
"document_options": (
"12pt",
"openany",
),
"fontenc": None,
"inputenc": None,
"lmodern": False,
"textcomp": False,
}'
LATEX_TEMPLATES_MAPPING = '{
"chapter": "chapter-template.tex",
"epigraph": "epigraph-template.tex",
"halftitlepage": "halftitle-page-template.tex",
"heading": "heading-template.tex",
"imprint": "imprint-template.tex",
"metadata": "metadata-template.xmpdata",
"pannasa": "pannasa-template.tex",
"part": "part-template.tex",
"preamble": "preamble-template.tex",
"titlepage": "title-page-template.tex",
}'
INDIVIDUAL_TEMPLATES_MAPPING = '{
"an": "an.tex",
"dhp": "dhp.tex",
"dn": "dn.tex",
"iti": "iti.tex",
"mn": "mn.tex",
"sn": "sn.tex",
"snp": "snp.tex",
"thag": "thag.tex",
"thig": "thig.tex",
"ud": "ud.tex",
"pli-tv-vi": [
"vinaya-1.tex",
"vinaya-2.tex",
"vinaya-3.tex",
"vinaya-4.tex",
"vinaya-5.tex",
"vinaya-6.tex",
]
}'
SANSKRIT_LANGUAGES = '[
"pli",
"san",
]'
FOREIGN_SCRIPT_MACRO_LANGUAGES = '[
"lzh",
]'
MATTERS_TO_SKIP = '[
"endnotes",
"secondary-toc",
]'
MATTERS_WITH_TEX_TEMPLATES = '[
"titlepage",
"imprint",
"halftitlepage",
]'
STYLING_CLASSES = '[
"namo",
"endsection",
"endsutta",
"endbook",
"endkanda",
"end",
"uddana-intro",
"endvagga",
"rule",
"add",
"evam",
"speaker",
"byline",
"expansion-instructions",
]'
TEXTS_WITH_CHAPTER_SUTTA_TITLES = '{
"dn": "all",
"pli-tv-vi": (4, 5, 6),
"dhp": "all",
}'
ADDITIONAL_PANNASAKA_IDS = '[
"sn12-antarapeyyala",
"an2-peyyala",
]'
SUTTATITLES_WITHOUT_TRANSLATED_TITLE = '[
"an1.1-10", "an1.11-20", "an1.21-30", "an1.31-40", "an1.41-50", "an1.51-60", "an1.61-70", "an1.71-81", "an1.82-97",
"an1.98-139", "an1.140-149", "an1.150-169", "an1.170-187", "an1.188-197", "an1.198-208", "an1.209-218",
"an1.219-234", "an1.235-247", "an1.248-257", "an1.258-267", "an1.268-277", "an1.278-286", "an1.287-295",
"an1.296-305", "an1.306-315", "an1.316-332", "an1.333-377", "an1.378-393", "an1.394-574", "an1.575-615",
"an1.616-627", "an2.1-10", "an2.11-20", "an2.21-31", "an2.32-41", "an2.42-51", "an2.52-63", "an2.64-76",
"an2.77-86", "an2.87-97", "an2.98-117", "an2.118-129", "an2.130-140", "an2.141-150", "an2.151-162", "an2.163-179",
"an2.180-229", "an2.230-279", "an2.280-309", "an2.310-479",
]'
# LATEX COVERS
LATEX_COVER_CONFIG = '{
"documentclass": "bookcover",
"document_options": (
"coverheight={page_height}",
"coverwidth={page_width}",
"spinewidth={spine_width}",
"pagecolor=backgroundcolor",
"bleedwidth=3.5mm",
"marklength=0in",
"12pt",
),
"fontenc": None,
"inputenc": None,
"page_numbers": False,
"lmodern": False,
"textcomp": False,
}'
COVER_TEMPLATES_MAPPING = '{
"body": "{publication_type}-cover-body-template.tex",
"preamble": "{publication_type}-cover-preamble-template.tex",
"background-body": "cover-background-body-template.tex",
"background-preamble": "cover-background-preamble-template.tex",
}'
IMAGE_DENSITY = 300
IMAGE_QUALITY = 90