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