[sword-cvs] swordtools/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Translate Header.java, 1.2, 1.3 Index.java, 1.1, NONE

sword at www.crosswire.org sword at www.crosswire.org
Sat Jun 5 10:08:59 MST 2004


Committed by: mgruner

Update of /cvs/core/swordtools/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Translate
In directory www:/tmp/cvs-serv28064/WLC2OSIS/Translate

Modified Files:
	Header.java 
Removed Files:
	Index.java 
Log Message:
mgruner: converter generates something that looks like OSIS now.


Index: Header.java
===================================================================
RCS file: /cvs/core/swordtools/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Translate/Header.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Header.java	4 Jun 2004 12:49:16 -0000	1.2
+++ Header.java	5 Jun 2004 17:08:57 -0000	1.3
@@ -4,8 +4,8 @@
 import WLC2OSIS.Translate.* ;
 import WLC2OSIS.Utilities.* ;
 
-import java.util.Date ;
-import java.text.SimpleDateFormat ;
+// import java.util.Date ;
+// import java.text.SimpleDateFormat ;
 //==============================================================================
 /**
  *  <b>Header information for Tanach.</b><p>
@@ -13,8 +13,8 @@
 //==============================================================================
 public class Header{
 
-static SimpleDateFormat DateFormat = new SimpleDateFormat("dd MMM yyyy") ;
-static String DateTime ;
+// static SimpleDateFormat DateFormat = new SimpleDateFormat("dd MMM yyyy") ;
+// static String DateTime ;
 
 public Header(){
     }
@@ -23,24 +23,47 @@
 // Writes the Notes to the XML file.
 
 public static void writeHeader(WLC2OSIS A, XMLWriter w) {
-    Date DT = new Date() ;
-    DateTime = DateFormat.format(DT) ;
+//     Date DT = new Date() ;
+//     DateTime = DateFormat.format(DT) ;
+    A.w.openTag("osisText osisIDWork=\"WLC\" osisRefWork=\"bible\" xml:lang=\"he\"", 0) ;
     A.w.openTag("header", 0) ;
-    A.w.writeString("name", 1, "Tanach") ;
-    A.w.writeString("hebrewname", 1, H.Tnk) ;
-    A.w.writeString("title", 1, A.Title) ;
-    A.w.writeString("shortdescription", 1, A.ShortDescription)  ;
-    for (int i =0; i < A.Description.length; i++){
-        A.w.writeString("description", 1, A.Description[i]) ;
-        }
-    //A.w.writeString("date", 1, A.Date) ;
-    A.w.writeString("transcriptiondate", 1, DateTime) ;
-    A.w.writeString("copyright", 1, "\u00A9 C. V. Kimball 2004") ;
-    A.w.writeString("filename", 1, A.InputFilename) ;
-    A.w.closeTag("header", 0) ;
+    
+    A.w.openTag("work osisWork=\"WLC", 1) ;
+    
+    A.w.writeString("title", 2, "Westminster Leningrad Codex");
+    A.w.writeAttributedString("contributor", 2, "role=\"encoder\"", "Martin Gruner");
+    A.w.writeAttributedString("type", 2, "type=\"OSIS\"", "Bible");
+    A.w.writeAttributedString("identifier", 2, "type=\"OSIS\"", "Bible.he.WLC.2004");
+    A.w.writeAttributedString("rights", 2, "type=\"x-copyright\"", 
+    	"The WLC is maintained by the Westminster Hebrew Institute, Philadelphia, PA (http://whi.wts.edu/WHI)");
+    A.w.writeString("scope", 2, "Hebrew Bible, Old Testament");
+    A.w.writeString("refSystem", 2, "Tanach");
+        
+    A.w.closeTag("work", 1);
+    
+    A.w.closeTag("header", 0);
+    
+//     A.w.writeString("hebrewname", 1, H.Tnk) ;
+//     A.w.writeString("title", 1, A.Title) ;
+//     A.w.writeString("shortdescription", 1, A.ShortDescription)  ;
+//     for (int i =0; i < A.Description.length; i++){
+//         A.w.writeString("description", 1, A.Description[i]) ;
+//         }
+//     //A.w.writeString("date", 1, A.Date) ;
+//     A.w.writeString("transcriptiondate", 1, DateTime) ;
+//     A.w.writeString("copyright", 1, "\u00A9 C. V. Kimball 2004") ;
+//     A.w.writeString("filename", 1, A.InputFilename) ;
+//     
+//     A.w.closeTag("header", 0) ;
+    }
+
+//==============================================================================
+
+public static void writeFooter(WLC2OSIS A, XMLWriter w) {
+        
+    A.w.closeTag("osisWork", 0);
+   
     }
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
-}
-//==============================================================================
-//==============================================================================
+}//==============================================================================

--- Index.java DELETED ---



More information about the sword-cvs mailing list