1   /**
2    * Distribution License:
3    * JSword is free software; you can redistribute it and/or modify it under
4    * the terms of the GNU Lesser General Public License, version 2.1 or later
5    * as published by the Free Software Foundation. This program is distributed
6    * in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
7    * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
8    * See the GNU Lesser General Public License for more details.
9    *
10   * The License is available on the internet at:
11   *       http://www.gnu.org/copyleft/lgpl.html
12   * or by writing to:
13   *      Free Software Foundation, Inc.
14   *      59 Temple Place - Suite 330
15   *      Boston, MA 02111-1307, USA
16   *
17   * Copyright: 2012
18   *     The copyright to this program is held by its authors.
19   *
20   */
21  package org.crosswire.jsword.versification.system;
22  
23  import org.crosswire.jsword.versification.BibleBook;
24  import org.crosswire.jsword.versification.Versification;
25  
26  /**
27   *
28   *
29   * @see gnu.lgpl.License The GNU Lesser General Public License for details.
30   * @author DM Smith
31   */
32  public class SystemNRSVA extends Versification {
33      /**
34       * Build the "NRSVA" Versification.
35       */
36      /* protected */ SystemNRSVA() {
37          super(V11N_NAME, BOOKS_OT, BOOKS_NT, LAST_VERSE_OT, LAST_VERSE_NT);
38      }
39  
40      public static final String V11N_NAME = "NRSVA";
41  
42      // SystemDefault.booksOT followed by
43      // deuterocanonical books
44      /* protected */ static final BibleBook[] BOOKS_OT =
45      {
46          BibleBook.GEN,
47          BibleBook.EXOD,
48          BibleBook.LEV,
49          BibleBook.NUM,
50          BibleBook.DEUT,
51          BibleBook.JOSH,
52          BibleBook.JUDG,
53          BibleBook.RUTH,
54          BibleBook.SAM1,
55          BibleBook.SAM2,
56          BibleBook.KGS1,
57          BibleBook.KGS2,
58          BibleBook.CHR1,
59          BibleBook.CHR2,
60          BibleBook.EZRA,
61          BibleBook.NEH,
62          BibleBook.ESTH,
63          BibleBook.JOB,
64          BibleBook.PS,
65          BibleBook.PROV,
66          BibleBook.ECCL,
67          BibleBook.SONG,
68          BibleBook.ISA,
69          BibleBook.JER,
70          BibleBook.LAM,
71          BibleBook.EZEK,
72          BibleBook.DAN,
73          BibleBook.HOS,
74          BibleBook.JOEL,
75          BibleBook.AMOS,
76          BibleBook.OBAD,
77          BibleBook.JONAH,
78          BibleBook.MIC,
79          BibleBook.NAH,
80          BibleBook.HAB,
81          BibleBook.ZEPH,
82          BibleBook.HAG,
83          BibleBook.ZECH,
84          BibleBook.MAL,
85          BibleBook.TOB,
86          BibleBook.JDT,
87          BibleBook.ESTH_GR,
88          BibleBook.WIS,
89          BibleBook.SIR,
90          BibleBook.BAR,
91          BibleBook.PR_AZAR,
92          BibleBook.SUS,
93          BibleBook.BEL,
94          BibleBook.MACC1,
95          BibleBook.MACC2,
96          BibleBook.ESD1,
97          BibleBook.PR_MAN,
98          BibleBook.ADD_PS,
99          BibleBook.MACC3,
100         BibleBook.ESD2,
101         BibleBook.MACC4,
102     };
103 
104     /* protected */ static final BibleBook[] BOOKS_NT = SystemDefault.BOOKS_NT;
105 
106     /* protected */ static final int[][] LAST_VERSE_OT =
107     {
108         // Genesis
109         {
110            31,  25,  24,  26,  32,  22,  24,  22,  29,  32,
111            32,  20,  18,  24,  21,  16,  27,  33,  38,  18,
112            34,  24,  20,  67,  34,  35,  46,  22,  35,  43,
113            55,  32,  20,  31,  29,  43,  36,  30,  23,  23,
114            57,  38,  34,  34,  28,  34,  31,  22,  33,  26,
115         },
116         // Exodus
117         {
118            22,  25,  22,  31,  23,  30,  25,  32,  35,  29,
119            10,  51,  22,  31,  27,  36,  16,  27,  25,  26,
120            36,  31,  33,  18,  40,  37,  21,  43,  46,  38,
121            18,  35,  23,  35,  35,  38,  29,  31,  43,  38,
122         },
123         // Leviticus
124         {
125            17,  16,  17,  35,  19,  30,  38,  36,  24,  20,
126            47,   8,  59,  57,  33,  34,  16,  30,  37,  27,
127            24,  33,  44,  23,  55,  46,  34,
128         },
129         // Numbers
130         {
131            54,  34,  51,  49,  31,  27,  89,  26,  23,  36,
132            35,  16,  33,  45,  41,  50,  13,  32,  22,  29,
133            35,  41,  30,  25,  18,  65,  23,  31,  40,  16,
134            54,  42,  56,  29,  34,  13,
135         },
136         // Deuteronomy
137         {
138            46,  37,  29,  49,  33,  25,  26,  20,  29,  22,
139            32,  32,  18,  29,  23,  22,  20,  22,  21,  20,
140            23,  30,  25,  22,  19,  19,  26,  68,  29,  20,
141            30,  52,  29,  12,
142         },
143         // Joshua
144         {
145            18,  24,  17,  24,  15,  27,  26,  35,  27,  43,
146            23,  24,  33,  15,  63,  10,  18,  28,  51,   9,
147            45,  34,  16,  33,
148         },
149         // Judges
150         {
151            36,  23,  31,  24,  31,  40,  25,  35,  57,  18,
152            40,  15,  25,  20,  20,  31,  13,  31,  30,  48,
153            25,
154         },
155         // Ruth
156         {
157            22,  23,  18,  22,
158         },
159         // I Samuel
160         {
161            28,  36,  21,  22,  12,  21,  17,  22,  27,  27,
162            15,  25,  23,  52,  35,  23,  58,  30,  24,  42,
163            15,  23,  29,  22,  44,  25,  12,  25,  11,  31,
164            13,
165         },
166         // II Samuel
167         {
168            27,  32,  39,  12,  25,  23,  29,  18,  13,  19,
169            27,  31,  39,  33,  37,  23,  29,  33,  43,  26,
170            22,  51,  39,  25,
171         },
172         // I Kings
173         {
174            53,  46,  28,  34,  18,  38,  51,  66,  28,  29,
175            43,  33,  34,  31,  34,  34,  24,  46,  21,  43,
176            29,  53,
177         },
178         // II Kings
179         {
180            18,  25,  27,  44,  27,  33,  20,  29,  37,  36,
181            21,  21,  25,  29,  38,  20,  41,  37,  37,  21,
182            26,  20,  37,  20,  30,
183         },
184         // I Chronicles
185         {
186            54,  55,  24,  43,  26,  81,  40,  40,  44,  14,
187            47,  40,  14,  17,  29,  43,  27,  17,  19,   8,
188            30,  19,  32,  31,  31,  32,  34,  21,  30,
189         },
190         // II Chronicles
191         {
192            17,  18,  17,  22,  14,  42,  22,  18,  31,  19,
193            23,  16,  22,  15,  19,  14,  19,  34,  11,  37,
194            20,  12,  21,  27,  28,  23,   9,  27,  36,  27,
195            21,  33,  25,  33,  27,  23,
196         },
197         // Ezra
198         {
199            11,  70,  13,  24,  17,  22,  28,  36,  15,  44,
200         },
201         // Nehemiah
202         {
203            11,  20,  32,  23,  19,  19,  73,  18,  38,  39,
204            36,  47,  31,
205         },
206         // Esther
207         {
208            22,  23,  15,  17,  14,  14,  10,  17,  32,   3,
209         },
210         // Job
211         {
212            22,  13,  26,  21,  27,  30,  21,  22,  35,  22,
213            20,  25,  28,  22,  35,  22,  16,  21,  29,  29,
214            34,  30,  17,  25,   6,  14,  23,  28,  25,  31,
215            40,  22,  33,  37,  16,  33,  24,  41,  30,  24,
216            34,  17,
217         },
218         // Psalms
219         {
220             6,  12,   8,   8,  12,  10,  17,   9,  20,  18,
221             7,   8,   6,   7,   5,  11,  15,  50,  14,   9,
222            13,  31,   6,  10,  22,  12,  14,   9,  11,  12,
223            24,  11,  22,  22,  28,  12,  40,  22,  13,  17,
224            13,  11,   5,  26,  17,  11,   9,  14,  20,  23,
225            19,   9,   6,   7,  23,  13,  11,  11,  17,  12,
226             8,  12,  11,  10,  13,  20,   7,  35,  36,   5,
227            24,  20,  28,  23,  10,  12,  20,  72,  13,  19,
228            16,   8,  18,  12,  13,  17,   7,  18,  52,  17,
229            16,  15,   5,  23,  11,  13,  12,   9,   9,   5,
230             8,  28,  22,  35,  45,  48,  43,  13,  31,   7,
231            10,  10,   9,   8,  18,  19,   2,  29, 176,   7,
232             8,   9,   4,   8,   5,   6,   5,   6,   8,   8,
233             3,  18,   3,   3,  21,  26,   9,   8,  24,  13,
234            10,   7,  12,  15,  21,  10,  20,  14,   9,   6,
235         },
236         // Proverbs
237         {
238            33,  22,  35,  27,  23,  35,  27,  36,  18,  32,
239            31,  28,  25,  35,  33,  33,  28,  24,  29,  30,
240            31,  29,  35,  34,  28,  28,  27,  28,  27,  33,
241            31,
242         },
243         // Ecclesiastes
244         {
245            18,  26,  22,  16,  20,  12,  29,  17,  18,  20,
246            10,  14,
247         },
248         // Song of Solomon
249         {
250            17,  17,  11,  16,  16,  13,  13,  14,
251         },
252         // Isaiah
253         {
254            31,  22,  26,   6,  30,  13,  25,  22,  21,  34,
255            16,   6,  22,  32,   9,  14,  14,   7,  25,   6,
256            17,  25,  18,  23,  12,  21,  13,  29,  24,  33,
257             9,  20,  24,  17,  10,  22,  38,  22,   8,  31,
258            29,  25,  28,  28,  25,  13,  15,  22,  26,  11,
259            23,  15,  12,  17,  13,  12,  21,  14,  21,  22,
260            11,  12,  19,  12,  25,  24,
261         },
262         // Jeremiah
263         {
264            19,  37,  25,  31,  31,  30,  34,  22,  26,  25,
265            23,  17,  27,  22,  21,  21,  27,  23,  15,  18,
266            14,  30,  40,  10,  38,  24,  22,  17,  32,  24,
267            40,  44,  26,  22,  19,  32,  21,  28,  18,  16,
268            18,  22,  13,  30,   5,  28,   7,  47,  39,  46,
269            64,  34,
270         },
271         // Lamentations
272         {
273            22,  22,  66,  22,  22,
274         },
275         // Ezekiel
276         {
277            28,  10,  27,  17,  17,  14,  27,  18,  11,  22,
278            25,  28,  23,  23,   8,  63,  24,  32,  14,  49,
279            32,  31,  49,  27,  17,  21,  36,  26,  21,  26,
280            18,  32,  33,  31,  15,  38,  28,  23,  29,  49,
281            26,  20,  27,  31,  25,  24,  23,  35,
282         },
283         // Daniel
284         {
285            21,  49,  30,  37,  31,  28,  28,  27,  27,  21,
286            45,  13,
287         },
288         // Hosea
289         {
290            11,  23,   5,  19,  15,  11,  16,  14,  17,  15,
291            12,  14,  16,   9,
292         },
293         // Joel
294         {
295            20,  32,  21,
296         },
297         // Amos
298         {
299            15,  16,  15,  13,  27,  14,  17,  14,  15,
300         },
301         // Obadiah
302         {
303            21,
304         },
305         // Jonah
306         {
307            17,  10,  10,  11,
308         },
309         // Micah
310         {
311            16,  13,  12,  13,  15,  16,  20,
312         },
313         // Nahum
314         {
315            15,  13,  19,
316         },
317         // Habakkuk
318         {
319            17,  20,  19,
320         },
321         // Zephaniah
322         {
323            18,  15,  20,
324         },
325         // Haggai
326         {
327            15,  23,
328         },
329         // Zechariah
330         {
331            21,  13,  10,  14,  11,  15,  14,  23,  17,  12,
332            17,  14,   9,  21,
333         },
334         // Malachi
335         {
336            14,  17,  18,   6,
337         },
338         // Tobit
339         {
340            22,  14,  17,  21,  22,  18,  16,  21,   6,  13,
341            18,  22,  17,  15,
342         },
343         // Judith
344         {
345            16,  28,  10,  15,  24,  21,  32,  36,  14,  23,
346            23,  20,  20,  19,  14,  25,
347         },
348         // Esther (Greek)
349         {
350            22,  23,  15,  17,  14,  14,  10,  17,  32,  13,
351            12,   6,  18,  19,  16,  24,
352         },
353         // Wisdom
354         {
355            16,  24,  19,  20,  23,  25,  30,  21,  18,  21,
356            26,  27,  19,  31,  19,  29,  21,  25,  22,
357         },
358         // Sirach
359         {
360            30,  18,  31,  31,  15,  37,  36,  19,  18,  31,
361            34,  18,  26,  27,  20,  30,  32,  33,  30,  31,
362            28,  27,  27,  34,  26,  29,  30,  26,  28,  25,
363            31,  24,  33,  31,  26,  31,  31,  34,  35,  30,
364            22,  25,  33,  23,  26,  20,  25,  25,  16,  29,
365            30,
366         },
367         // Baruch
368         {
369            22,  35,  37,  37,   9,  73,
370         },
371         // Prayer of Azariah
372         {
373            68,
374         },
375         // Susanna
376         {
377            64,
378         },
379         // Bel and the Dragon
380         {
381            42,
382         },
383         // I Maccabees
384         {
385            64,  70,  60,  61,  68,  63,  50,  32,  73,  89,
386            74,  53,  53,  49,  41,  24,
387         },
388         // II Maccabees
389         {
390            36,  32,  40,  50,  27,  31,  42,  36,  29,  38,
391            38,  45,  26,  46,  39,
392         },
393         // I Esdras
394         {
395            58,  30,  24,  63,  73,  34,  15,  96,  55,
396         },
397         // Prayer of Manasses
398         {
399            15,
400         },
401         // Additional Psalm
402         {
403             7,
404         },
405         // III Maccabees
406         {
407            29,  33,  30,  21,  51,  41,  23,
408         },
409         // II Esdras
410         {
411            40,  48,  36,  52,  56,  59, 140,  63,  47,  59,
412            46,  51,  58,  48,  63,  78,
413         },
414         // IV Maccabees
415         {
416            35,  24,  21,  26,  38,  35,  23,  29,  32,  21,
417            27,  19,  27,  20,  32,  25,  24,  24,
418         },
419     };
420 
421     /* protected */ static final int[][] LAST_VERSE_NT = SystemNRSV.LAST_VERSE_NT;
422 
423     /**
424      * Serialization ID
425      */
426     private static final long serialVersionUID = -1915001343269114316L;
427 }
428