Updated meta to contain testaments and included testament default
translations.
This commit is contained in:
parent
4e908fdafb
commit
2f15176981
2 changed files with 115 additions and 104 deletions
File diff suppressed because one or more lines are too long
|
|
@ -475,27 +475,34 @@ aliases = {i.lower(): k for k, v in alias_map.items() for i in v}
|
||||||
for k in alias_map.keys():
|
for k in alias_map.keys():
|
||||||
aliases[k] = k
|
aliases[k] = k
|
||||||
|
|
||||||
|
shorthand_defaults = {
|
||||||
|
"OT": "BSB",
|
||||||
|
"NT": "BSB",
|
||||||
|
"APO": "eng_kja",
|
||||||
|
"LXX": "eng_lxx",
|
||||||
|
}
|
||||||
|
|
||||||
use_translations = {
|
use_translations = {
|
||||||
"BSB": ["Berean Standard Bible", "BSB"],
|
"BSB": ["Berean Standard Bible", "BSB", ["OT", "NT"]],
|
||||||
"eng_msb": ["Majority Standard Bible", "MSB"],
|
"eng_msb": ["Majority Standard Bible", "MSB", ["NT"]],
|
||||||
"eng_lsv": ["Literal Standard Version", "LSV"],
|
"eng_lsv": ["Literal Standard Version", "LSV", ["OT", "NT"]],
|
||||||
"eng_net": ["NET Bible", "NETB"],
|
"eng_net": ["NET Bible", "NETB", ["OT", "NT"]],
|
||||||
"eng_asv": ["American Standard Version (1901)", "ASV"],
|
"eng_asv": ["American Standard Version (1901)", "ASV", ["OT", "NT"]],
|
||||||
"eng_abt": ["American Standard Version Byzantine Text", "ASVBT"],
|
"eng_abt": ["American Standard Version Byzantine Text", "ASVBT", ["OT", "NT"]],
|
||||||
"eng_kjv": ["King James (Authorized) Version", "KJAV"],
|
"eng_kjv": ["King James (Authorized) Version", "KJAV", ["OT", "NT"]],
|
||||||
"eng_kja": ["King James Version + Apocrypha", "KJVA"],
|
"eng_kja": ["King James Version + Apocrypha", "KJVA", ["OT", "NT", "APO"]],
|
||||||
"eng_rv5": ["Revised Version with Apocrypha (1895)", "RVA"],
|
"eng_rv5": ["Revised Version with Apocrypha (1895)", "RVA", ["OT", "NT", "APO"]],
|
||||||
"eng_ylt": ["Young's Literal Translation", "YLT"],
|
"eng_ylt": ["Young's Literal Translation", "YLT", ["OT", "NT"]],
|
||||||
"AAB": ["Accessible Ancients Bible", "AAB"],
|
"AAB": ["Accessible Ancients Bible", "AAB", ["OT", "NT"]],
|
||||||
"eng_fbv": ["Free Bible Version", "FBV"],
|
"eng_fbv": ["Free Bible Version", "FBV", ["OT", "NT"]],
|
||||||
"eng_wbs": ["Noah Webster Bible", "NWB"],
|
"eng_wbs": ["Noah Webster Bible", "NWB", ["OT", "NT"]],
|
||||||
"eng_ulb": ["Unlocked Literal Bible", "ULB"],
|
"eng_ulb": ["Unlocked Literal Bible", "ULB", ["OT", "NT"]],
|
||||||
"ENGWEBP": ["World English Bible", "WEB"],
|
"ENGWEBP": ["World English Bible", "WEB", ["OT", "NT"]],
|
||||||
"eng_web": ["World English Bible Classic", "WEBC"],
|
"eng_web": ["World English Bible Classic", "WEBC", ["OT", "NT"]],
|
||||||
"eng_webu": ["World English Bible Updated", "WEBU"],
|
"eng_webu": ["World English Bible Updated", "WEBU", ["OT", "NT"]],
|
||||||
"eng_lxx": ["Septuagint in American English (2012)", "LXXSA"],
|
"eng_lxx": ["Septuagint in American English (2012)", "LXXSA", ["OT", "APO"]],
|
||||||
"eng_bre": ["Brenton Septuagint Translation", "BST"],
|
"eng_bre": ["Brenton Septuagint Translation", "BST", ["OT", "APO"]],
|
||||||
"eng_boy": ["Updated Brenton English Septuagint", "UBES"],
|
"eng_boy": ["Updated Brenton English Septuagint", "UBES", ["OT", "APO"]],
|
||||||
# Broken: Parser?
|
# Broken: Parser?
|
||||||
#"GHT": ["Garth's Hyper-literal Translation", "GHT"],
|
#"GHT": ["Garth's Hyper-literal Translation", "GHT"],
|
||||||
#"eng_bbe": ["Bible in Basic English BBE"],
|
#"eng_bbe": ["Bible in Basic English BBE"],
|
||||||
|
|
@ -518,89 +525,89 @@ use_translations = {
|
||||||
}
|
}
|
||||||
|
|
||||||
bookmeta = {
|
bookmeta = {
|
||||||
'gen': {'tx': 'BSB'},
|
'gen': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'exo': {'tx': 'BSB'},
|
'exo': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'lev': {'tx': 'BSB'},
|
'lev': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'num': {'tx': 'BSB'},
|
'num': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'deu': {'tx': 'BSB'},
|
'deu': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'jos': {'tx': 'BSB'},
|
'jos': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'jdg': {'tx': 'BSB'},
|
'jdg': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'rut': {'tx': 'BSB'},
|
'rut': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'1sa': {'tx': 'BSB'},
|
'1sa': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'2sa': {'tx': 'BSB'},
|
'2sa': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'1ki': {'tx': 'BSB'},
|
'1ki': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'2ki': {'tx': 'BSB'},
|
'2ki': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'1ch': {'tx': 'BSB'},
|
'1ch': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'2ch': {'tx': 'BSB'},
|
'2ch': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'ezr': {'tx': 'BSB'},
|
'ezr': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'neh': {'tx': 'BSB'},
|
'neh': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'est': {'tx': 'BSB'},
|
'est': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'job': {'tx': 'BSB'},
|
'job': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'psa': {'tx': 'BSB'},
|
'psa': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'pro': {'tx': 'BSB'},
|
'pro': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'ecc': {'tx': 'BSB'},
|
'ecc': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'sng': {'tx': 'BSB'},
|
'sng': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'isa': {'tx': 'BSB'},
|
'isa': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'jer': {'tx': 'BSB'},
|
'jer': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'lam': {'tx': 'BSB'},
|
'lam': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'ezk': {'tx': 'BSB'},
|
'ezk': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'dan': {'tx': 'BSB'},
|
'dan': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'hos': {'tx': 'BSB'},
|
'hos': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'jol': {'tx': 'BSB'},
|
'jol': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'amo': {'tx': 'BSB'},
|
'amo': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'oba': {'tx': 'BSB'},
|
'oba': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'jon': {'tx': 'BSB'},
|
'jon': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'mic': {'tx': 'BSB'},
|
'mic': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'nam': {'tx': 'BSB'},
|
'nam': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'hab': {'tx': 'BSB'},
|
'hab': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'zep': {'tx': 'BSB'},
|
'zep': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'hag': {'tx': 'BSB'},
|
'hag': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'zec': {'tx': 'BSB'},
|
'zec': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'mal': {'tx': 'BSB'},
|
'mal': {'tx': 'BSB', 'ts': 'OT'},
|
||||||
'mat': {'tx': 'BSB'},
|
'mat': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'mrk': {'tx': 'BSB'},
|
'mrk': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'luk': {'tx': 'BSB'},
|
'luk': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'jhn': {'tx': 'BSB'},
|
'jhn': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'act': {'tx': 'BSB'},
|
'act': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'rom': {'tx': 'BSB'},
|
'rom': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'1co': {'tx': 'BSB'},
|
'1co': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'2co': {'tx': 'BSB'},
|
'2co': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'gal': {'tx': 'BSB'},
|
'gal': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'eph': {'tx': 'BSB'},
|
'eph': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'php': {'tx': 'BSB'},
|
'php': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'col': {'tx': 'BSB'},
|
'col': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'1th': {'tx': 'BSB'},
|
'1th': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'2th': {'tx': 'BSB'},
|
'2th': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'1ti': {'tx': 'BSB'},
|
'1ti': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'2ti': {'tx': 'BSB'},
|
'2ti': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'tit': {'tx': 'BSB'},
|
'tit': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'phm': {'tx': 'BSB'},
|
'phm': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'heb': {'tx': 'BSB'},
|
'heb': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'jas': {'tx': 'BSB'},
|
'jas': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'1pe': {'tx': 'BSB'},
|
'1pe': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'2pe': {'tx': 'BSB'},
|
'2pe': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'1jn': {'tx': 'BSB'},
|
'1jn': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'2jn': {'tx': 'BSB'},
|
'2jn': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'3jn': {'tx': 'BSB'},
|
'3jn': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'jud': {'tx': 'BSB'},
|
'jud': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
'rev': {'tx': 'BSB'},
|
'rev': {'tx': 'BSB', 'ts': 'NT'},
|
||||||
# Apocrypha.
|
# Apocrypha.
|
||||||
'tob': {'tx': 'eng_lxx'},
|
'tob': {'tx': 'eng_lxx', 'ts': 'APO'},
|
||||||
'jdt': {'tx': 'eng_lxx'},
|
'jdt': {'tx': 'eng_lxx', 'ts': 'APO'},
|
||||||
'wis': {'tx': 'eng_lxx'},
|
'wis': {'tx': 'eng_lxx', 'ts': 'APO'},
|
||||||
'sir': {'tx': 'eng_lxx'},
|
'sir': {'tx': 'eng_lxx', 'ts': 'APO'},
|
||||||
'bar': {'tx': 'eng_lxx'},
|
'bar': {'tx': 'eng_lxx', 'ts': 'APO'},
|
||||||
'bel': {'tx': 'eng_lxx'},
|
'bel': {'tx': 'eng_lxx', 'ts': 'APO'},
|
||||||
'sus': {'tx': 'eng_lxx'},
|
'sus': {'tx': 'eng_lxx', 'ts': 'APO'},
|
||||||
'1ma': {'tx': 'eng_lxx'},
|
'1ma': {'tx': 'eng_lxx', 'ts': 'APO'},
|
||||||
'2ma': {'tx': 'eng_lxx'},
|
'2ma': {'tx': 'eng_lxx', 'ts': 'APO'},
|
||||||
'3ma': {'tx': 'eng_lxx'},
|
'3ma': {'tx': 'eng_lxx', 'ts': 'APO'},
|
||||||
'4ma': {'tx': 'eng_lxx'},
|
'4ma': {'tx': 'eng_lxx', 'ts': 'APO'},
|
||||||
'1es': {'tx': 'eng_lxx'},
|
'1es': {'tx': 'eng_lxx', 'ts': 'APO'},
|
||||||
# Not present in all LXX.
|
# Not present in all LXX.
|
||||||
'lje': {'tx': 'eng_lxx'},
|
'lje': {'tx': 'eng_lxx', 'ts': 'APO'},
|
||||||
's3y': {'tx': 'eng_lxx'},
|
's3y': {'tx': 'eng_lxx', 'ts': 'APO'},
|
||||||
'man': {'tx': 'eng_lxx'},
|
'man': {'tx': 'eng_lxx', 'ts': 'APO'},
|
||||||
}
|
}
|
||||||
for k, v in bookmeta.items():
|
for k, v in bookmeta.items():
|
||||||
if k in alias_map:
|
if k in alias_map:
|
||||||
|
|
@ -629,7 +636,8 @@ def write_meta(file="meta.js"):
|
||||||
fp.write(b"// Translation meta\n\n")
|
fp.write(b"// Translation meta\n\n")
|
||||||
fp.write(f"export const aliases = {json.dumps(aliases)};\n\n".encode("utf8"))
|
fp.write(f"export const aliases = {json.dumps(aliases)};\n\n".encode("utf8"))
|
||||||
fp.write(f"export const translations = {json.dumps(use_translations)};\n\n".encode("utf8"))
|
fp.write(f"export const translations = {json.dumps(use_translations)};\n\n".encode("utf8"))
|
||||||
fp.write(f"export const meta = {json.dumps(bookmeta)};\n".encode("utf8"))
|
fp.write(f"export const meta = {json.dumps(bookmeta)};\n\n".encode("utf8"))
|
||||||
|
fp.write(f"export const defaulttx = {json.dumps(shorthand_defaults)};\n\n".encode("utf8"))
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
pass
|
pass
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue