diff --git a/src/main/java/writer2latex/epub/EPUB3Converter.java b/src/main/java/writer2latex/epub/EPUB3Converter.java index d719e6f..8a761a0 100644 --- a/src/main/java/writer2latex/epub/EPUB3Converter.java +++ b/src/main/java/writer2latex/epub/EPUB3Converter.java @@ -43,13 +43,13 @@ public final class EPUB3Converter extends Html5Converter { } @Override public ConverterResult convert(InputStream is, String sTargetFileName) throws IOException { - setOPS(true); + setOpenPubStructure(true); ConverterResult xhtmlResult = super.convert(is, "chapter"); return createPackage(xhtmlResult,sTargetFileName); } @Override public ConverterResult convert(org.w3c.dom.Document dom, String sTargetFileName, boolean bDestructive) throws IOException { - setOPS(true); + setOpenPubStructure(true); ConverterResult xhtmlResult = super.convert(dom, "chapter", bDestructive); return createPackage(xhtmlResult,sTargetFileName); } diff --git a/src/main/java/writer2latex/epub/EPUBConverter.java b/src/main/java/writer2latex/epub/EPUBConverter.java index ba82239..456e5ab 100644 --- a/src/main/java/writer2latex/epub/EPUBConverter.java +++ b/src/main/java/writer2latex/epub/EPUBConverter.java @@ -43,13 +43,13 @@ public final class EPUBConverter extends Xhtml11Converter { } @Override public ConverterResult convert(InputStream is, String sTargetFileName) throws IOException { - setOPS(true); + setOpenPubStructure(true); ConverterResult xhtmlResult = super.convert(is, "chapter"); return createPackage(xhtmlResult,sTargetFileName); } @Override public ConverterResult convert(org.w3c.dom.Document dom, String sTargetFileName, boolean bDestructive) throws IOException { - setOPS(true); + setOpenPubStructure(true); ConverterResult xhtmlResult = super.convert(dom, "chapter", bDestructive); return createPackage(xhtmlResult,sTargetFileName); } diff --git a/src/main/java/writer2latex/xhtml/Converter.java b/src/main/java/writer2latex/xhtml/Converter.java index 645de7f..9d6c83b 100644 --- a/src/main/java/writer2latex/xhtml/Converter.java +++ b/src/main/java/writer2latex/xhtml/Converter.java @@ -100,11 +100,12 @@ public class Converter extends BasicConverter { // The xhtml output file(s) public int nType = XhtmlDocument.XHTML10; // the doctype private boolean bOPS = false; // Do we need to be OPS conforming? - Vector outFiles; + public Vector outFiles; private int outFileIndex; private XhtmlDocument htmlDoc; // current outfile private Document htmlDOM; // current DOM, usually within htmlDoc public PageContainer pageContainer = null; + public boolean isRDF = false; //private int nTocFileIndex = -1; //private int nAlphabeticalIndex = -1; @@ -242,7 +243,7 @@ public class Converter extends BasicConverter { public L10n getL10n() { return l10n; } - public void setOPS(boolean b) { bOPS = true; } + public void setOpenPubStructure(boolean b) { bOPS = true; } public boolean isOPS() { return bOPS; }