public GenEpub(ChineseConvertOption cc_option = ChineseConvertOption.None) { this.cc_option = cc_option; if (cc_option == ChineseConvertOption.T2S) { Log.log("[Info]Chinese Convert: T2S"); cc = new ChineseConvert(); cc.Prepare(); } TextItem t = epub.GetItem <TextItem>("OEBPS/Text/template.xhtml"); xhtml_temp = t.data; epub.items.Remove(t); }
public GenEpub(ChineseConvertOption cc_option = ChineseConvertOption.None) { this.cc_option = cc_option; if (cc_option == ChineseConvertOption.T2S) { Log.Note("Chinese Convert: T2S"); cc = new ChineseConvert(); cc.Prepare(); } TextEpubItemFile t = epub.GetFile <TextEpubItemFile>("OEBPS/Text/template.xhtml"); xhtml_temp = t.text; epub.items.Remove(t); }