@@ -0,0 +1,2017 @@
+package yuku.alkitabconverter.paratest;%0A%0Aimport java.io.RandomAccessFile;%0Aimport java.nio.charset.Charset;%0Aimport java.util.List;%0A%0Aimport yuku.alkitab.yes.YesFile;%0Aimport yuku.alkitab.yes.YesFile.InfoEdisi;%0Aimport yuku.alkitab.yes.YesFile.InfoKitab;%0Aimport yuku.alkitab.yes.YesFile.Teks;%0Aimport yuku.alkitabconverter.bdb.BdbProses;%0Aimport yuku.alkitabconverter.bdb.BdbProses.Rec;%0Aimport yuku.alkitabconverter.util.RecUtil;%0Aimport yuku.alkitabconverter.yes_common.YesCommon;%0A%0Apublic class Proses1 %7B%0A%09static String BASE_VERSION_NAME = %22paratest%22;%0A%09%0A%09static String INPUT_TEKS_1 = %22./bahan/%22 + BASE_VERSION_NAME + %22/in/test.txt%22;%0A%09public static String INPUT_TEKS_ENCODING = %22utf-8%22;%0A%09public static int INPUT_TEKS_ENCODING_YES = 2; // 1: ascii; 2: utf-8;%0A%09public static String INPUT_KITAB = %22./bahan/%22 + BASE_VERSION_NAME + %22/in/book_name_lines.txt%22;%0A%09static String OUTPUT_YES = %22./bahan/%22 + BASE_VERSION_NAME + %22/out/%22 + BASE_VERSION_NAME + %22.yes%22;%0A%09public static int OUTPUT_ADA_PERIKOP = 0;%0A%09static String INFO_NAMA = BASE_VERSION_NAME;%0A%09static String INFO_SHORT_TITLE = %22Paratest%22;%0A%09static String INFO_LONG_TITLE = %22Paragraph test%22;%0A%09static String INFO_KETERANGAN = %22Paragraph test (2012-10-22)%22;%0A%0A%09final Charset utf8 = Charset.forName(%22utf-8%22);%0A%09%0A%09public static void main(String%5B%5D args) throws Exception %7B%0A%09%09new Proses1().u();%0A%09%7D%0A%0A%09private void u() throws Exception %7B%0A%09%09List%3CRec%3E xrec = new BdbProses().parse(INPUT_TEKS_1, %22utf-8%22);%0A%09%09%0A%09%09System.out.println(%22Total verses: %22 + xrec.size());%0A%0A%09%09////////// PROSES KE YES%0A%09%09final InfoEdisi infoEdisi = YesCommon.infoEdisi(INFO_NAMA, INFO_SHORT_TITLE, INFO_LONG_TITLE, RecUtil.hitungKitab(xrec), OUTPUT_ADA_PERIKOP, INFO_KETERANGAN, INPUT_TEKS_ENCODING_YES);%0A%09%09final InfoKitab infoKitab = YesCommon.infoKitab(xrec, INPUT_KITAB, INPUT_TEKS_ENCODING, INPUT_TEKS_ENCODING_YES);%0A%09%09final Teks teks = YesCommon.teks(xrec, INPUT_TEKS_ENCODING);%0A%09%09%0A%09%09YesFile file = YesCommon.bikinYesFile(infoEdisi, infoKitab, teks);%0A%09%09%0A%09%09file.output(new RandomAccessFile(OUTPUT_YES, %22rw%22));%0A%09%7D%0A%7D%0A

Create a fake yes file that contains only 1 chapter for span test