[jsword-svn]
jsword/java/jsword/org/crosswire/jsword/book/filter/gbf 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/gbf
In directory www.crosswire.org:/tmp/cvs-serv25762/java/jsword/org/crosswire/jsword/book/filter/gbf
Modified Files:
BoldTagBuilder.java ItalicTagBuilder.java
UnderlineTagBuilder.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: BoldTagBuilder.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/filter/gbf/BoldTagBuilder.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** BoldTagBuilder.java 30 Aug 2004 09:27:07 -0000 1.5
--- BoldTagBuilder.java 4 Mar 2005 04:04:47 -0000 1.6
***************
*** 43,52 ****
public void updateOsisStack(LinkedList stack)
{
! Element seg = OSISUtil.factory().createSeg();
! seg.setAttribute(OSISUtil.ATTRIBUTE_SEG_TYPE, OSISUtil.SEG_BOLD);
Element current = (Element) stack.get(0);
! current.addContent(seg);
! stack.addFirst(seg);
}
};
--- 43,52 ----
public void updateOsisStack(LinkedList stack)
{
! Element hi = OSISUtil.factory().createHI();
! hi.setAttribute(OSISUtil.ATTRIBUTE_HI_REND, OSISUtil.HI_BOLD);
Element current = (Element) stack.get(0);
! current.addContent(hi);
! stack.addFirst(hi);
}
};
Index: ItalicTagBuilder.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/filter/gbf/ItalicTagBuilder.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** ItalicTagBuilder.java 30 Aug 2004 09:27:07 -0000 1.6
--- ItalicTagBuilder.java 4 Mar 2005 04:04:47 -0000 1.7
***************
*** 43,52 ****
public void updateOsisStack(LinkedList stack)
{
! Element seg = OSISUtil.factory().createSeg();
! seg.setAttribute(OSISUtil.ATTRIBUTE_SEG_TYPE, OSISUtil.SEG_ITALIC);
Element current = (Element) stack.get(0);
! current.addContent(seg);
! stack.addFirst(seg);
}
};
--- 43,52 ----
public void updateOsisStack(LinkedList stack)
{
! Element hi = OSISUtil.factory().createHI();
! hi.setAttribute(OSISUtil.ATTRIBUTE_HI_REND, OSISUtil.HI_ITALIC);
Element current = (Element) stack.get(0);
! current.addContent(hi);
! stack.addFirst(hi);
}
};
Index: UnderlineTagBuilder.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/filter/gbf/UnderlineTagBuilder.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** UnderlineTagBuilder.java 30 Aug 2004 09:27:07 -0000 1.5
--- UnderlineTagBuilder.java 4 Mar 2005 04:04:47 -0000 1.6
***************
*** 43,52 ****
public void updateOsisStack(LinkedList stack)
{
! Element seg = OSISUtil.factory().createSeg();
! seg.setAttribute(OSISUtil.ATTRIBUTE_SEG_TYPE, OSISUtil.SEG_UNDERLINE);
Element current = (Element) stack.get(0);
! current.addContent(seg);
! stack.addFirst(seg);
}
};
--- 43,52 ----
public void updateOsisStack(LinkedList stack)
{
! Element hi = OSISUtil.factory().createHI();
! hi.setAttribute(OSISUtil.ATTRIBUTE_HI_REND, OSISUtil.HI_UNDERLINE);
Element current = (Element) stack.get(0);
! current.addContent(hi);
! stack.addFirst(hi);
}
};
More information about the jsword-svn
mailing list