diff --git a/src/main/java/w2phtml/pageSplitters/PageSplitter.java b/src/main/java/w2phtml/pageSplitters/ParagraphSplitter.java similarity index 93% rename from src/main/java/w2phtml/pageSplitters/PageSplitter.java rename to src/main/java/w2phtml/pageSplitters/ParagraphSplitter.java index ff52ea2..947001c 100644 --- a/src/main/java/w2phtml/pageSplitters/PageSplitter.java +++ b/src/main/java/w2phtml/pageSplitters/ParagraphSplitter.java @@ -12,9 +12,9 @@ import org.w3c.dom.NodeList; import w2phtml.office.OfficeReader; -public class PageSplitter extends BasicSplitter implements ISplitter { +public class ParagraphSplitter extends BasicSplitter implements ISplitter { - public PageSplitter(OfficeReader officeReader, SplitFactory factory) { + public ParagraphSplitter(OfficeReader officeReader, SplitFactory factory) { super(officeReader, factory); // TODO Auto-generated constructor stub } diff --git a/src/main/java/w2phtml/pageSplitters/SplitFactory.java b/src/main/java/w2phtml/pageSplitters/SplitFactory.java index 08cfbb1..c7f4991 100644 --- a/src/main/java/w2phtml/pageSplitters/SplitFactory.java +++ b/src/main/java/w2phtml/pageSplitters/SplitFactory.java @@ -22,9 +22,9 @@ public class SplitFactory { splitter = new SpanSplitter(officeReader, this); } else if (nodeName.contentEquals(TEXT_P) || nodeName.contentEquals(TEXT_H)) { - splitter = new PageSplitter(officeReader, this); + splitter = new ParagraphSplitter(officeReader, this); } else - if (nodeName.contentEquals(TEXT_NOTE) || nodeName.contentEquals(OFFICE_TEXT)) { + if (nodeName.contentEquals(TEXT_NOTE_BODY) || nodeName.contentEquals(OFFICE_TEXT)) { splitter = new TextSplitter(officeReader, this); } else if (nodeName.contentEquals(TEXT_ILLUSTRATION_INDEX)) {