~ubuntu-branches/debian/squeeze/sword/squeeze

« back to all changes in this revision

Viewing changes to include/apocrypha.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Glassey
  • Date: 2004-01-15 15:50:07 UTC
  • Revision ID: james.westby@ubuntu.com-20040115155007-n9mz4x0zxrs1isd3
Tags: upstream-1.5.7
ImportĀ upstreamĀ versionĀ 1.5.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/******************************************************************************
 
2
 * apocrypha.h - Apocryphal text information to be included by VerseKey.cpp
 
3
 *
 
4
 * $Id: apocrypha.h,v 1.3 2003/05/10 00:55:43 chrislit Exp $
 
5
 *
 
6
 * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
 
7
 *      CrossWire Bible Society
 
8
 *      P. O. Box 2528
 
9
 *      Tempe, AZ  85280-2528
 
10
 *
 
11
 * This program is free software; you can redistribute it and/or modify it
 
12
 * under the terms of the GNU General Public License as published by the
 
13
 * Free Software Foundation version 2.
 
14
 *
 
15
 * This program is distributed in the hope that it will be useful, but
 
16
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
18
 * General Public License for more details.
 
19
 *
 
20
 */
 
21
 
 
22
/******************************************************************************
 
23
 * [a]tbooks - initialize static instance for all canonical text names
 
24
 *              and chapmax
 
25
 */
 
26
 
 
27
#include <defs.h>
 
28
//SWORD_NAMESPACE_START
 
29
 
 
30
//Data based on NRSVA unless otherwise noted; this book ordering is not necessarily optimal.
 
31
 
 
32
struct sbook
 
33
VerseKey::otbooks[] = {
 
34
  //Catholic Deuterocanon
 
35
  {"Tobit", "Tob", 14},                        //67
 
36
  {"Judith", "Jdt", 16},                       //68
 
37
  {"Wisdom", "Wis", 19},                       //69
 
38
  {"Sirach", "Sir", 51},                       //70   //51 or 52? count prologue as separate book or just chapter?
 
39
  {"Baruch", "Bar", 5},                        //71   //5 or 6?  (see next line)
 
40
  {"Letter of Jeremiah", "EpJer", 1},          //72   //1 or 6?  EpJer is ch6 of Baruch
 
41
  {"1 Esdras", "1Esd", 9},                     //73
 
42
  {"2 Esdras", "2Esd", 16},                    //74
 
43
  {"1 Maccabees", "1Macc", 16},                //75
 
44
  {"2 Maccabees", "2Macc", 15},                //76
 
45
 
 
46
  //LXX
 
47
  {"3 Maccabees", "3Macc", 7},                 //77
 
48
  {"4 Maccabees", "4Macc", 18},                //78
 
49
  {"Odes", "Odes", 14},                        //79   //based on LXX
 
50
  {"Psalms of Solomon", "PssSol", 18},         //80   //based on LXX
 
51
 
 
52
  //Protestant Apocrypha
 
53
  {"Additions to Esther", "AddEsth", 6},       //81   //based on Charles/NRSVA   //6 or F or 16?  If you're Catholic, you have a 16 chapter canonical book called Esther (ie Greek Esther); if you're Protestant you have a 10 chapter canonical book called Esther (ie Hebrew Esther) plus a 6 "chapter" set of "Additions" in an apocryphal book called Additions to Esther, which are "numbered" A through F or continue from chapter 10 through 16.
 
54
  {"Prayer of Azariah", "PrAzar", 1},          //82
 
55
  {"Susanna", "Sus", 1},                       //83
 
56
  {"Bel and the Dragon", "Bel", 1},            //84
 
57
  {"Prayer of Manasses", "PrMan", 1},          //85
 
58
  {"Psalm 151", "Ps151", 1},                   //86
 
59
 
 
60
  //Vulgate
 
61
  {"Epistle to the Laodiceans", "EpLao", 1},   //87   //based on Vulgate
 
62
 
 
63
  //Other books may follow at a later date (e.g. Jub, 1En)
 
64
};
 
65
 
 
66
/******************************************************************************
 
67
 *      Abbreviations - MUST be in alphabetical order & by PRIORITY
 
68
 *              RULE: first match of entire key
 
69
 *                      (e.g. key: "1CH"; match: "1CHRONICLES")
 
70
 */
 
71
 
 
72
const struct abbrev
 
73
  VerseKey::builtin_abbrevs[] = {
 
74
  {"1 ESDRAS", 73},
 
75
  {"1 MACCABEES", 75},
 
76
  {"1ESDRAS", 73},
 
77
  {"1MACCABEES", 75},
 
78
  {"2 ESDRAS", 74},
 
79
  {"2 MACCABEES", 76},
 
80
  {"2ESDRAS", 74},
 
81
  {"2MACCABEES", 76},
 
82
  {"3 MACCABEES", 77},
 
83
  {"3MACCABEES", 77},
 
84
  {"4 MACCABEES", 78},
 
85
  {"4MACCABEES", 78},
 
86
  {"ADDESTHER", 81},
 
87
  {"ADDITIONS TO ESTHER", 81},
 
88
  {"BARUCH", 71},
 
89
  {"BEL AND THE DRAGON", 84},
 
90
  {"BEN SIRACH", 70},
 
91
  {"ECCLESIASTICUS", 70},
 
92
  {"EPISTLE OF JEREMIAH", 72},
 
93
  {"EPISTLE TO THE LAODICEANS", 87},
 
94
  {"EPJER", 72},
 
95
  {"EPLAO", 87},
 
96
  {"I ESDRAS", 73},
 
97
  {"I MACCABEES", 75},
 
98
  {"IESDRAS", 73},
 
99
  {"II ESDRAS", 74},
 
100
  {"II MACCABEES", 76},
 
101
  {"IIESDRAS", 74},
 
102
  {"III MACCABEES", 77},
 
103
  {"IIII MACCABEES", 78},
 
104
  {"IIIIMACCABEES", 78},
 
105
  {"IIIMACCABEES", 77},
 
106
  {"IIMACCABEES", 76},
 
107
  {"IMACCABEES", 75},
 
108
  {"IV MACCABEES", 78},
 
109
  {"IVMACCABEES", 78},
 
110
  {"JDT", 68},
 
111
  {"JESUS BEN SIRACH", 70},
 
112
  {"JUDITH", 68},
 
113
  {"LAODICEANS", 87},
 
114
  {"LETTER OF JEREMIAH", 72},
 
115
  {"MANASSEH", 85},
 
116
  {"MANASSES", 85},
 
117
  {"ODES", 79},
 
118
  {"PRAYER OF AZARIAH", 82},
 
119
  {"PRAYER OF MANASSEH", 85},
 
120
  {"PRAYER OF MANASSES", 85},
 
121
  {"PRAZAR", 82},
 
122
  {"PRMAN", 85},
 
123
  {"PS151", 86},
 
124
  {"PSALM151", 86},
 
125
  {"PSALMS OF SOLOMON", 80},
 
126
  {"PSSOL", 80},
 
127
  {"PSSSOL", 80},
 
128
  {"SIRACH", 70},
 
129
  {"SUSANNA", 83},
 
130
  {"TOBIT", 67},
 
131
  {"WISDOM OF JESUS BEN SIRACH", 70},
 
132
  {"WISDOM", 69},
 
133
  {"", -1}
 
134
};
 
135
 
 
136
 
 
137
/******************************************************************************
 
138
 *      Maximum verses per chapter
 
139
 */
 
140
 
 
141
int
 
142
VerseKey::vm[] = {
 
143
  //Catholic Deuterocanon
 
144
  //Tobit 14                        //67
 
145
  22, 14, 17, 21, 21, 17, 18, 21, 6, 12,
 
146
  19, 22, 18, 15,
 
147
  //Judith 16                       //68
 
148
  16, 28, 10, 15, 24, 21, 32, 36, 14, 23,
 
149
  23, 20, 20, 19, 13, 25,
 
150
  //Wisdom 19                       //69
 
151
  16, 24, 19, 20, 23, 25, 30, 21, 18, 21,
 
152
  26, 27, 19, 31, 19, 29, 21, 25, 22,
 
153
  //Sirach 51                       //70      //Prologue has 36 vv. in LXX, 1 v. in NRSVA
 
154
  30, 18, 31, 31, 15, 37, 36, 19, 18, 31,
 
155
  34, 18, 26, 27, 20, 30, 32, 33, 30, 32,
 
156
  28, 27, 27, 34, 26, 29, 30, 26, 28, 25,
 
157
  31, 24, 31, 26, 20, 26, 31, 34, 35, 30,
 
158
  23, 25, 33, 23, 26, 20, 25, 25, 16, 29,
 
159
  30,
 
160
  //Baruch 5                        //71
 
161
  21, 35, 37, 37, 9,
 
162
  //Letter of Jeremiah 1            //72
 
163
  73,
 
164
  //1 Esdras 9                      //73
 
165
  58, 30, 24, 63, 73, 34, 15, 96, 55,
 
166
  //2 Esdras 16                     //74
 
167
  40, 48, 36, 52, 56, 59, 140, 63, 47, 59,
 
168
  46, 51, 58, 48, 63, 78,
 
169
  //1 Maccabees 16                  //75
 
170
  64, 70, 60, 61, 68, 63, 50, 32, 73, 89,
 
171
  74, 53, 53, 49, 41, 24,
 
172
  //2 Maccabees 15                  //76
 
173
  36, 32, 40, 50, 27, 31, 42, 36, 29, 38,
 
174
  38, 45, 26, 46, 39,
 
175
 
 
176
  //LXX
 
177
  //3 Maccabees 7                   //77
 
178
  29, 33, 30, 21, 51, 41, 23,
 
179
  //4 Maccabees 18                  //78
 
180
  35, 24, 21, 26, 38, 35, 23, 29, 32, 21,
 
181
  27, 19, 27, 20, 32, 25, 24, 24,
 
182
  //Odes            14              //79
 
183
  19, 43, 10, 19, 20, 10, 45, 88, 79, 9,
 
184
  20, 15, 32, 46,
 
185
  //Psalms of Solomon 18            //80
 
186
  8, 37, 12, 25, 19, 6, 10, 34, 11, 8,
 
187
  9, 6, 12, 10, 13, 15, 46, 12,
 
188
 
 
189
  //Protestant Apocrypha
 
190
  //Additions to Esther 6           //81
 
191
  17, 7, 30, 16, 24, 11
 
192
  //Prayer of Azariah 1             //82
 
193
  68,
 
194
  //Susanna 1                       //83
 
195
  64,
 
196
  //Bel and the Dragon 1            //84
 
197
  42,
 
198
  //Prayer of Manasses 1            //85
 
199
  15,
 
200
  //Psalm 151 1                     //86
 
201
  7,
 
202
 
 
203
  //Vulgate
 
204
  //Epistle to the Laodiceans 1     //87
 
205
  20,
 
206
};
 
207
 
 
208
 
 
209
long
 
210
  VerseKey::atbks[] = {
 
211
0, 1, 16, 33, 53, 105, 111, 113, 123, 140, 157, 173, 181, 200, 215, 234, 241, 243, 245, 247, 249, 251
 
212
};
 
213
 
 
214
long
 
215
  VerseKey::atcps[] = {
 
216
0, 2, 3, 26, 41, 59, 81, 103, 121, 140, 162, 169, 183, 203, 226, 245, 262, 279, 308, 319, 335, 360, 382, 415, 452, 467, 492, 516, 537, 558, 578, 592, 619, 636, 661, 681, 702, 726, 752, 783, 805, 824, 847, 874, 902, 922, 954, 974, 1004, 1026, 1052, 1076, 1107, 1126, 1158, 1190, 1206, 1244, 1281, 1301, 1320, 1353, 1388, 1407, 1434, 1462, 1483, 1514, 1547, 1581, 1612, 1646, 1675, 1703, 1731, 1766, 1793, 1823, 1854, 1881, 1910, 1937, 1969, 1994, 2026, 2053, 2074, 2101, 2133, 2168, 2204, 2236, 2260, 2286, 2320, 2344, 2371, 2392, 2418, 2444, 2461, 2492, 2524, 2546, 2582, 2620, 2658, 2669, 2744, 2803, 2834, 2859, 2923, 2997, 3032, 3048, 3145, 3202, 3243, 3292, 3329, 3382, 3439, 3499, 3640, 3704, 3752, 3813, 3860, 3912, 3971, 4020, 4084, 4164, 4229, 4300, 4361, 4423, 4492, 4556, 4607, 4640, 4714, 4805, 4880, 4934, 4988, 5038, 5080, 5106, 5143, 5176, 5217, 5268, 5296, 5328, 5371, 5408, 5438, 5478, 5517, 5563, 5590, 5637, 5678, 5708, 5742, 5773, 5795, 5847, 5889, 5914, 5950, 5975, 5997, 6024, 6063, 6099, 6123, 6153, 6186, 6209, 6237, 6257, 6285, 6306, 6339, 6365, 6390, 6416, 6436, 6480, 6491, 6511, 6532, 6543, 6589, 6678, 6758, 6769, 6790, 6806, 6839, 6887, 6896, 6934, 6947, 6973, 6993, 7000, 7011, 7046, 7058, 7068, 7078, 7085, 7098, 7109, 7123, 7139, 7186, 7200, 7270, 7336, 7380, 7397, 7406
 
217
};
 
218
 
 
219
//SWORD_NAMESPACE_END