summaryrefslogtreecommitdiffstats
path: root/modules/python
diff options
context:
space:
mode:
authorChris Little <chrislit@crosswire.org>2012-08-26 01:39:07 +0000
committerChris Little <chrislit@crosswire.org>2012-08-26 01:39:07 +0000
commitf1eab50654b8bb3d82eb5a931aa0529d551727f6 (patch)
tree0159c6919bb9e2c78e4905713aa2bc8e8f056b11 /modules/python
parent6494f4127d55abefd567037a644188bdd8eb48c3 (diff)
downloadsword-tools-f1eab50654b8bb3d82eb5a931aa0529d551727f6.tar.gz
added Paratext order
git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@395 07627401-56e2-0310-80f4-f8cd0041bdcd
Diffstat (limited to 'modules/python')
-rwxr-xr-xmodules/python/usfm2osis.py50
1 files changed, 50 insertions, 0 deletions
diff --git a/modules/python/usfm2osis.py b/modules/python/usfm2osis.py
index 19f9f8f..dea21ac 100755
--- a/modules/python/usfm2osis.py
+++ b/modules/python/usfm2osis.py
@@ -209,6 +209,56 @@ canonicalOrder = [
'INDEX', 'GAZETTEER', 'X-OTHER'
]
+sfmNumericOrder = [
+ # Front Matter
+ 'FRONT', 'INTRODUCTION',
+
+ # OT 01-39
+ 'Gen', 'Exod', 'Lev', 'Num', 'Deut', 'Josh', 'Judg', 'Ruth',
+ '1Sam', '2Sam', '1Kgs', '2Kgs', '1Chr', '2Chr', 'Ezra', 'Neh',
+ 'Esth', 'Job', 'Ps', 'Prov', 'Eccl', 'Song', 'Isa', 'Jer',
+ 'Lam', 'Ezek', 'Dan', 'Hos', 'Joel', 'Amos', 'Obad', 'Jonah',
+ 'Mic', 'Nah', 'Hab', 'Zeph', 'Hag', 'Zech', 'Mal',
+
+ # NT 41-67
+ 'Matt', 'Mark', 'Luke', 'John', 'Acts', 'Rom', '1Cor', '2Cor',
+ 'Gal', 'Eph', 'Phil', 'Col', '1Thess', '2Thess', '1Tim', '2Tim',
+ 'Titus', 'Phlm', 'Heb', 'Jas', '1Pet', '2Pet', '1John', '2John',
+ '3John', 'Jude', 'Rev',
+
+ # Apocrypha 68-87 (plus AddEsth, inserted after EsthGr)
+ 'Tob', 'Jdt', 'EsthGr', 'AddEsth', 'Wis', 'Sir', 'Bar', 'EpJer',
+ 'PrAzar', 'Sus', 'Bel', '1Macc', '2Macc', '3Macc', '4Macc',
+ '1Esd', '2Esd', 'PrMan', 'AddPs', 'Odes', 'PssSol',
+
+ # Esdrae A4-A6
+ '4Ezra', '5Ezra', '6Ezra',
+
+ # Gk. Daniel, Syriac additions, Ethiopic additions, Laodiceans B2-C2
+ 'DanGr', '5ApocSyrPss', '2Bar', 'EpBar', 'Jub', '1En',
+ '1Meq', '2Meq', '3Meq', 'Reproof', '4Bar', 'EpLao',
+
+ # Books not currently adopted into USFM, in order given by BFBS
+ # Metrical Psalms
+ 'PsMet',
+ # Vulgate
+ 'PrSol', 'PrJer',
+ # Armenian
+ 'WSir', 'EpCorPaul', '3Cor', 'PrEuth', 'DormJohn',
+ # NT Codices
+ '1Clem', '2Clem', 'Herm', 'Barn', 'Did',
+
+ # Books not currently adopted into USFM, recommended for removal by BFBS
+ 'JoshA', 'JudgB', 'TobS', 'DanTh', 'SusTh', 'BelTh',
+
+ # Private-Use Extensions
+ 'XXA', 'XXB', 'XXC', 'XXD', 'XXE', 'XXF', 'XXG',
+
+ # Back Matter
+ 'BACK', 'CONCORDANCE', 'GLOSSARY',
+ 'INDEX', 'GAZETTEER', 'X-OTHER'
+ ]
+
specialBooks = ['FRONT', 'INTRODUCTION', 'BACK', 'CONCORDANCE', 'GLOSSARY', 'INDEX', 'GAZETTEER', 'X-OTHER']
peripherals = {