示例#1
0
  @Before
  public void setUp() throws Exception {
    BookName.setFullBookName(false);
    // AV11N(DMS): Update test to test all V11Ns
    v11n = Versifications.instance().getVersification("KJV");

    gen00 = new Verse(v11n, BibleBook.GEN, 0, 0);
    gen10 = new Verse(v11n, BibleBook.GEN, 1, 0);
    gen11 = new Verse(v11n, BibleBook.GEN, 1, 1);
    gen11a = new Verse(v11n, BibleBook.GEN, 1, 1);
    gen11s = new Verse(v11n, BibleBook.GEN, 1, 1, "sub");
    gen12 = new Verse(v11n, BibleBook.GEN, 1, 2);
    gen20 = new Verse(v11n, BibleBook.GEN, 2, 0);
    gen21 = new Verse(v11n, BibleBook.GEN, 2, 1);
    gen22 = new Verse(v11n, BibleBook.GEN, 2, 2);
    rev11 = new Verse(v11n, BibleBook.REV, 1, 1);
    rev12 = new Verse(v11n, BibleBook.REV, 1, 2);
    rev21 = new Verse(v11n, BibleBook.REV, 2, 1);
    rev22 = new Verse(v11n, BibleBook.REV, 2, 2);
    rev99 = new Verse(v11n, BibleBook.REV, 22, 21);
    jude0 = new Verse(v11n, BibleBook.JUDE, 0, 0);
    jude1 = new Verse(v11n, BibleBook.JUDE, 1, 1);
    jude2 = new Verse(v11n, BibleBook.JUDE, 1, 2);
    jude9 = new Verse(v11n, BibleBook.JUDE, 1, 25);
    ssa00 = new Verse(v11n, BibleBook.SAM2, 0, 0);
    ssa10 = new Verse(v11n, BibleBook.SAM2, 1, 0);
    ssa11 = new Verse(v11n, BibleBook.SAM2, 1, 1);
  }
示例#2
0
  public void mod2imp() throws BookException {
    // Use short key names for Bibles.
    if (BookCategory.BIBLE.equals(book.getBookCategory())) {
      BookName.setFullBookName(false);
    }

    Key keys = book.getGlobalKeyList();

    StringBuilder buf = new StringBuilder();
    for (Key key : keys) {
      // FIXME(CJB) iteration should be pushed down to benefit from performance improvement
      String rawText = book.getRawText(key);
      if (rawText != null && rawText.trim().length() > 0) {
        buf.delete(0, buf.length());
        buf.append("$$$").append(key).append('\n').append(rawText);
        System.out.println(buf.toString());
      }
    }
  }