[jsword-svn]
jsword/java/jsword/org/crosswire/jsword/book/filter/thml s
jswordcvs at crosswire.org
jswordcvs at crosswire.org
Thu Mar 3 21:04:49 MST 2005
Update of /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/filter/thml
In directory www.crosswire.org:/tmp/cvs-serv25762/java/jsword/org/crosswire/jsword/book/filter/thml
Modified Files:
ThTag.java BTag.java UTag.java ITag.java
Log Message:
Added Sapphire to decrypt NASB.
Modified lots of code to use it.
Changed OSIS seg to hi for italic, bold and underline.
Index: ThTag.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/filter/thml/ThTag.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ThTag.java 19 Aug 2004 16:54:49 -0000 1.4
--- ThTag.java 4 Mar 2005 04:04:47 -0000 1.5
***************
*** 47,54 ****
ele.addContent(cell);
! Element seg = OSISUtil.factory().createSeg();
! seg.setAttribute(OSISUtil.ATTRIBUTE_SEG_TYPE, OSISUtil.SEG_BOLD);
! cell.addContent(seg);
! return seg;
}
}
--- 47,54 ----
ele.addContent(cell);
! Element hi = OSISUtil.factory().createHI();
! hi.setAttribute(OSISUtil.ATTRIBUTE_HI_REND, OSISUtil.HI_BOLD);
! cell.addContent(hi);
! return hi;
}
}
Index: BTag.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/filter/thml/BTag.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** BTag.java 19 Aug 2004 16:54:49 -0000 1.4
--- BTag.java 4 Mar 2005 04:04:47 -0000 1.5
***************
*** 44,51 ****
public Element processTag(Element ele, Attributes attrs)
{
! Element seg = OSISUtil.factory().createSeg();
! seg.setAttribute(OSISUtil.ATTRIBUTE_SEG_TYPE, OSISUtil.SEG_BOLD);
! ele.addContent(seg);
! return seg;
}
}
--- 44,51 ----
public Element processTag(Element ele, Attributes attrs)
{
! Element hi = OSISUtil.factory().createHI();
! hi.setAttribute(OSISUtil.ATTRIBUTE_HI_REND, OSISUtil.HI_BOLD);
! ele.addContent(hi);
! return hi;
}
}
Index: UTag.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/filter/thml/UTag.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** UTag.java 19 Aug 2004 16:54:49 -0000 1.4
--- UTag.java 4 Mar 2005 04:04:47 -0000 1.5
***************
*** 44,51 ****
public Element processTag(Element ele, Attributes attrs)
{
! Element seg = OSISUtil.factory().createSeg();
! seg.setAttribute(OSISUtil.ATTRIBUTE_SEG_TYPE, OSISUtil.SEG_UNDERLINE);
! ele.addContent(seg);
! return seg;
}
}
--- 44,51 ----
public Element processTag(Element ele, Attributes attrs)
{
! Element hi = OSISUtil.factory().createHI();
! hi.setAttribute(OSISUtil.ATTRIBUTE_HI_REND, OSISUtil.HI_UNDERLINE);
! ele.addContent(hi);
! return hi;
}
}
Index: ITag.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/filter/thml/ITag.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ITag.java 19 Aug 2004 16:54:49 -0000 1.4
--- ITag.java 4 Mar 2005 04:04:47 -0000 1.5
***************
*** 44,51 ****
public Element processTag(Element ele, Attributes attrs)
{
! Element seg = OSISUtil.factory().createSeg();
! seg.setAttribute(OSISUtil.ATTRIBUTE_SEG_TYPE, OSISUtil.SEG_ITALIC);
! ele.addContent(seg);
! return seg;
}
}
--- 44,51 ----
public Element processTag(Element ele, Attributes attrs)
{
! Element hi = OSISUtil.factory().createHI();
! hi.setAttribute(OSISUtil.ATTRIBUTE_HI_REND, OSISUtil.HI_ITALIC);
! ele.addContent(hi);
! return hi;
}
}
More information about the jsword-svn
mailing list