aboutsummaryrefslogtreecommitdiffstats
path: root/generate_html_cs.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2015-09-22 10:56:40 +0200
committerMatěj Cepl <mcepl@cepl.eu>2015-09-22 10:56:40 +0200
commitf37d936d0f83b97857d0a8a1384328f768ed9699 (patch)
tree58845ff52ea136a68031e83c68e30e1170cd36be /generate_html_cs.py
parentffb0240b9628e6fd3b4cb841f15ba2b04ec8762c (diff)
downloadhesla-f37d936d0f83b97857d0a8a1384328f768ed9699.tar.gz
Make the app HTML compliant.
Diffstat (limited to 'generate_html_cs.py')
-rwxr-xr-xgenerate_html_cs.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/generate_html_cs.py b/generate_html_cs.py
index 08a60e6..c99df22 100755
--- a/generate_html_cs.py
+++ b/generate_html_cs.py
@@ -22,8 +22,8 @@ book_abbrs = {
"Lv": "Lev", # NA in source code,
"Nu": "Num", "Dt": "Deut", "Jos": "Josh", "Jdc": "Judg",
"Rth": "Ruth",
- "1Sm": "1 Sam", "2Sm": "2 Sam", "1Rg": "1 Kgs", "2Rg": "2 Kgs",
- "1Chr": "1 Chr", "2Chr": "2 Chr", "Esr": "Ezra", "Neh": "Neh",
+ "1Sm": "1%20Sam", "2Sm": "2%20Sam", "1Rg": "1%20Kgs", "2Rg": "2%20Kgs",
+ "1Chr": "1%20Chr", "2Chr": "2%20Chr", "Esr": "Ezra", "Neh": "Neh",
"Esth": "Esth", # NA in source code,
"Job": "Job", "Ps": "Ps", "Prv": "Prov", "Eccl": "Eccl",
"Song": "Song", # NA in source code,
@@ -37,26 +37,26 @@ book_abbrs = {
"Zch": "Zech", "Ml": "Mal",
"Mt": "Matt", "Mc": "Mark", "L": "Luke", "J": "John",
"Act": "Acts",
- "R": "Rom", "1K": "1 Cor", "2K": "2 Cor",
+ "R": "Rom", "1K": "1%20Cor", "2K": "2%20Cor",
"G": "Gal", "E": "Eph", "Ph": "Phil", "Kol": "Col",
- "1Th": "1 Thess", "2Th": "2 Thess", "1T": "1 Tim", "2T": "2 Tim",
+ "1Th": "1%20Thess", "2Th": "2%20Thess", "1T": "1%20Tim", "2T": "2%20Tim",
"Tt": "Titus",
"Phm": "Phlm",
"H": "Heb", "Jc": "Jas",
- "1P": "1 Pet", "2P": "2 Pet",
- "1J": "1 John", "2J": "2 John", "3J": "3 John",
+ "1P": "1%20Pet", "2P": "2%20Pet",
+ "1J": "1%20John", "2J": "2%20John", "3J": "3%20John",
"Jd": "Jude", "Ap": "Rev"
}
def csv2dict(filename):
out_dict = {}
- splitRE = re.compile(r'\s+')
+ split_re = re.compile(r'\s+')
field_names = ['no', 'test', 'cs_abbr', 'cs_name',
'de_abbr', 'de_name']
with codecs.open(filename, 'rb', 'utf8') as csvfile:
for row in csvfile:
- line_dict = dict(zip(field_names, splitRE.split(row)))
+ line_dict = dict(zip(field_names, split_re.split(row)))
out_dict[line_dict['cs_abbr']] = line_dict
logging.debug("out_dict:\n%s", out_dict)
return out_dict