@@ -0,0 +1,2072 @@
+package yuku.alkitabconverter.en_nkjv;%0A%0Aimport java.io.RandomAccessFile;%0Aimport java.nio.charset.Charset;%0Aimport java.util.ArrayList;%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 INPUT_TEKS_1 = %22./bahan/en-nkjv/in/nkjv.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/en-nkjv/in/book_names.txt%22;%0A%09static String OUTPUT_YES = %22./bahan/en-nkjv/out/en-nkjv.yes%22;%0A%09public static int OUTPUT_ADA_PERIKOP = 0;%0A%09static String INFO_NAMA = %22en-nkjv%22;%0A%09static String INFO_JUDUL = %22NKJV%22;%0A%09static String INFO_KETERANGAN = %22New King James Version%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%09ArrayList%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// post-process%0A%09%09// some lines contains @@ but not start with @@. Add here.%0A%09%09for (int i = 0; i %3C xrec.size(); i++) %7B%0A%09%09%09Rec rec = xrec.get(i);%0A%09%09%09if (rec.isi.contains(%22@%22)) %7B%0A%09%09%09%09if (!rec.isi.startsWith(%22@@%22)) %7B%0A%09%09%09%09%09rec.isi = %22@@%22 + rec.isi;%0A%09%09%09%09%7D%09%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09////////// PROSES KE YES%0A%09%09%0A%09%09final InfoEdisi infoEdisi = YesCommon.infoEdisi(INFO_NAMA, INFO_JUDUL, 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

Add en-nkjv converter