aboutsummaryrefslogtreecommitdiffstats
path: root/generate_html_cs.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2024-01-12 02:04:38 +0100
committerMatěj Cepl <mcepl@cepl.eu>2024-04-21 20:17:56 +0200
commit953c11a26ce2601eb34d9e61d053ccbfb8b31e82 (patch)
tree29a59fff608da25e0028544968f1f480dfcfbc9c /generate_html_cs.py
parentd24fc0472883cfdc3842fbacba9d084a7198ba43 (diff)
downloadhesla-953c11a26ce2601eb34d9e61d053ccbfb8b31e82.tar.gz
Add a table of Biblical book names in Czech to OSIS convertors.
Diffstat (limited to 'generate_html_cs.py')
-rwxr-xr-xgenerate_html_cs.py72
1 files changed, 71 insertions, 1 deletions
diff --git a/generate_html_cs.py b/generate_html_cs.py
index 1bb678e..e449b9a 100755
--- a/generate_html_cs.py
+++ b/generate_html_cs.py
@@ -10,7 +10,7 @@ import xml.etree.ElementTree as et
logging.basicConfig(
- format="%(levelname)s:%(funcName)s:%(message)s", level=logging.INFO
+ format="%(levelname)s:%(funcName)s:%(message)s", level=logging.DEBUG
)
cur_year = 2024
@@ -84,6 +84,76 @@ book_abbrs = {
"Ap": "Rev",
}
+# https://wiki.crosswire.org/OSIS_Book_Abbreviations
+OSIS_book_names = {
+ "1.Mojžíšova": "Gen",
+ "2.Mojžíšova": "Exod",
+ "3.Mojžíšova": "Lev",
+ "4.Mojžíšova": "Num",
+ "5.Mojžíšova": "Deut",
+ "Jozue": "Josh",
+ "Soudců": "Judg",
+ "Rút": "Ruth",
+ "1.Samuelova": "1Sam",
+ "2.Samuelova": "2Sam",
+ "1.Královská": "1Kgs",
+ "2.Královská": "2Kgs",
+ "1.Paralipomenon": "1Chr",
+ "2.Paralipomenon": "2Chr",
+ "Ezdráš": "Ezra",
+ "Nehemiáš": "Neh",
+ "Ester": "Esth",
+ "Jób": "Job",
+ "Žalm": "Ps",
+ "Přísloví": "Prov",
+ "Kazatel": "Eccl",
+ "Píseň": "Song",
+ "Izaiáš": "Isa",
+ "Jeremiáš": "Jer",
+ "Pláč": "Lam",
+ "Ezechiel": "Ezek",
+ "Daniel": "Dan",
+ "Ozeáš": "Hos",
+ "Joel": "Joel",
+ "Amos": "Amos",
+ "Abdijáš": "Obad",
+ "Jonáš": "Jonah",
+ "Micheáš": "Mic",
+ "Nahum": "Nah",
+ "Abakuk": "Hab",
+ "Sofoniáš": "Zeph",
+ "Aggeus": "Hag",
+ "Zachariáš": "Zech",
+ "Malachiáš": "Mal",
+ "Matouš": "Matt",
+ "Marek": "Mark",
+ "Lukáš": "Luke",
+ "Jan": "John",
+ "Skutky": "Acts",
+ "Římanům": "Rom",
+ "1.Korintským": "1Cor",
+ "2.Korintským": "2Cor",
+ "Galatským": "Gal",
+ "Efezským": "Eph",
+ "Filipským": "Phil",
+ "Koloským": "Col",
+ "1.Tesalonickým": "1Thess",
+ "2.Tesalonickým": "2Thess",
+ "1.Timoteovi": "1Tim",
+ "2.Timoteovi": "2Tim",
+ "Titovi": "Titus",
+ "Filemonovi": "Phlm",
+ "Židům": "Heb",
+ "Jakubova": "Jas",
+ "1.Petrova": "1Pet",
+ "2.Petrova": "2Pet",
+ "1.Janova": "1John",
+ "2.Janova": "2John",
+ "3.Janova": "3John",
+ "Judova": "Jude",
+ "Zjevení": "Rev",
+}
+
def csv2dict(filename):
out_dict = {}