@Override public Element processTag(Book book, Key key, Element ele, Attributes attrs) { return OSISUtil.factory().createDiv(); } }
@Override public Element processTag(Book book, Key key, Element ele, Attributes attrs) { Element q = OSISUtil.factory().createQ(); if (ele != null) { ele.addContent(q); } return q; } }
@Override public Element processTag(Book book, Key key, Element ele, Attributes attrs) { // A term in a definition. Element name = OSISUtil.factory().createName(); if (ele != null) { ele.addContent(name); } return name; } }
@Override public Element processTag(Book book, Key key, Element ele, Attributes attrs) { Element row = OSISUtil.factory().createRow(); if (ele != null) { ele.addContent(row); } return row; } }
@Override public Element processTag(Book book, Key key, Element ele, Attributes attrs) { Element seg = OSISUtil.factory().createAbbr(); if (ele != null) { ele.addContent(seg); } return seg; } }
@Override public Element processTag(Book book, Key key, Element ele, Attributes attrs) { Element item = OSISUtil.factory().createL(); if (ele != null) { ele.addContent(item); } return item; } }
public void preRange(VerseRange range, List<Content> partialDom) { if (showTitles) { Element title = OSISUtil.factory().createGeneratedTitle(); title.addContent(range.getName()); partialDom.add(title); } }
@Override public Element processTag(Book book, Key key, Element ele, Attributes attrs) { Element title = OSISUtil.factory().createTitle(); title.setAttribute(OSISUtil.OSIS_ATTR_LEVEL, Integer.toString(level)); if (ele != null) { ele.addContent(title); } return ele; }
@Override public Element processTag(Book book, Key key, Element ele, Attributes attrs) { Element hi = OSISUtil.factory().createHI(); hi.setAttribute(OSISUtil.OSIS_ATTR_TYPE, OSISUtil.HI_UNDERLINE); if (ele != null) { ele.addContent(hi); } return hi; } }
@Override public Element processTag(Book book, Key key, Element ele, Attributes attrs) { Element hi = OSISUtil.factory().createHI(); hi.setAttribute(OSISUtil.OSIS_ATTR_TYPE, OSISUtil.HI_X_SMALL); if (ele != null) { ele.addContent(hi); } return hi; } }
@Override public Element processTag(Book book, Key key, Element ele, Attributes attrs) { Element q = OSISUtil.factory().createQ(); q.setAttribute(OSISUtil.OSIS_ATTR_TYPE, OSISUtil.Q_BLOCK); if (ele != null) { ele.addContent(q); } return q; } }
@Override public Element processTag(Book book, Key key, Element ele, Attributes attrs) { Element q = OSISUtil.factory().createQ(); q.setAttribute(OSISUtil.OSIS_ATTR_TYPE, OSISUtil.Q_BLOCK); if (ele != null) { ele.addContent(q); } return q; } }
@Override public Element processTag(Book book, Key key, Element ele, Attributes attrs) { Element hi = OSISUtil.factory().createHI(); hi.setAttribute(OSISUtil.OSIS_ATTR_TYPE, OSISUtil.HI_ITALIC); if (ele != null) { ele.addContent(hi); } return hi; } }
@Override public Element processTag(Book book, Key key, Element ele, Attributes attrs) { Element note = OSISUtil.factory().createNote(); note.setAttribute(OSISUtil.OSIS_ATTR_TYPE, OSISUtil.NOTETYPE_STUDY); if (ele != null) { ele.addContent(note); } return note; } }
@Override public Element processTag(Book book, Key key, Element ele, Attributes attrs) { Element seg = OSISUtil.factory().createSeg(); seg.setAttribute(OSISUtil.OSIS_ATTR_TYPE, OSISUtil.SEG_CENTER); if (ele != null) { ele.addContent(seg); } return seg; } }
@Override public Element processTag(Book book, Key key, Element ele, Attributes attrs) { Element hi = OSISUtil.factory().createHI(); hi.setAttribute(OSISUtil.OSIS_ATTR_TYPE, OSISUtil.HI_SUPER); if (ele != null) { ele.addContent(hi); } return hi; } }
@Override public Element processTag(Book book, Key key, Element ele, Attributes attrs) { Element hi = OSISUtil.factory().createHI(); hi.setAttribute(OSISUtil.OSIS_ATTR_TYPE, OSISUtil.HI_SUB); if (ele != null) { ele.addContent(hi); } return hi; } }
@Override public Element processTag(Book book, Key key, Element ele, Attributes attrs) { Element hiEle = OSISUtil.factory().createHI(); hiEle.setAttribute(OSISUtil.OSIS_ATTR_TYPE, OSISUtil.HI_X_BIG); if (ele != null) { ele.addContent(hiEle); } return hiEle; } }
@Override public Element processTag(Book book, Key key, Element ele, Attributes attrs) { Element seg = OSISUtil.factory().createSeg(); seg.setAttribute(OSISUtil.OSIS_ATTR_TYPE, OSISUtil.TYPE_X_PREFIX + getTagName()); if (ele != null) { ele.addContent(seg); } return seg; }
@Override public Document toOSIS() { OSISUtil.OSISFactory factory = OSISUtil.factory(); Element ele = factory.createTable(); addRow(factory, ele, "Initials", getInitials()); addRow(factory, ele, "Description", getName()); addRow(factory, ele, "Key", getBookCategory().toString()); addRow(factory, ele, "Language", getLanguage().getName()); return new Document(ele); }