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