diff options
author | Martin Gruner <mg.pub@gmx.net> | 2006-07-06 20:03:39 +0000 |
---|---|---|
committer | Martin Gruner <mg.pub@gmx.net> | 2006-07-06 20:03:39 +0000 |
commit | c4c0a9afca605ea50e0158b01f26d6eeeb4b675e (patch) | |
tree | 3ca49a5fe15c653ebdca495d7ac6d303deb577c4 /modules/hebrew-wlc/WLC2OSIS | |
parent | 3fc50351c09ad22c57a753f781774c34174ded91 (diff) | |
download | sword-tools-c4c0a9afca605ea50e0158b01f26d6eeeb4b675e.tar.gz |
git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@67 07627401-56e2-0310-80f4-f8cd0041bdcd
Diffstat (limited to 'modules/hebrew-wlc/WLC2OSIS')
7 files changed, 12 insertions, 118 deletions
diff --git a/modules/hebrew-wlc/WLC2OSIS/Utilities/package.html b/modules/hebrew-wlc/WLC2OSIS/Utilities/package.html deleted file mode 100644 index b4d6242..0000000 --- a/modules/hebrew-wlc/WLC2OSIS/Utilities/package.html +++ /dev/null @@ -1,9 +0,0 @@ -<HTML> -<BODY> -<b>General java utilities.</B> -(/Utilities/package.html) -<p> - -</BODY> -</HTML> - diff --git a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Parse/Parser.java b/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Parse/Parser.java index c8b4897..fbd33b2 100644 --- a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Parse/Parser.java +++ b/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Parse/Parser.java @@ -94,6 +94,7 @@ public void parse(){ for (int k = 0; k < A.InputChars.length ; k++){ s = t.nextToken() ; + System.out.println("processing: " + s); if(s.compareTo(t.EOF) == 0){ break ; diff --git a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Parse/package.html b/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Parse/package.html deleted file mode 100644 index 0c37015..0000000 --- a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Parse/package.html +++ /dev/null @@ -1,9 +0,0 @@ -<HTML> -<BODY> -<b>Parsing classes</b>. -<p/> -<p align="right"> (<b><tt>BHS2XML/Parse/package.html</tt></b>) -</p> -Only the Parse and Tokenizer classes are specific to the WLC. -</BODY> -</HTML> diff --git a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Translate/package.html b/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Translate/package.html deleted file mode 100644 index af2d2a8..0000000 --- a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Translate/package.html +++ /dev/null @@ -1,8 +0,0 @@ -<HTML> -<BODY> -<b>Classes to translate from the ASCII MC format to Unicode<b>. -<p/> -<p align="right"> (BHS2XML/Translate/package.html) -<p/> -Only the BookName and Note classes are specific to the WLC.</BODY> -</HTML> diff --git a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Utilities/package.html b/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Utilities/package.html deleted file mode 100644 index 048e65b..0000000 --- a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Utilities/package.html +++ /dev/null @@ -1,8 +0,0 @@ -<HTML> -<BODY> -<b>Utilities for text reading and XML writing, not specialized to WLC</b>.<p/> -<p align="right"> (<b><tt>BHS2XML/Utilities/package.html</tt></b>) -<p/> -Includes a Test class to write XML for MC ASCII test cases. -</BODY> -</HTML> diff --git a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/WLC2OSIS.java b/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/WLC2OSIS.java index 1889333..76d687d 100644 --- a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/WLC2OSIS.java +++ b/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/WLC2OSIS.java @@ -1,6 +1,5 @@ package WLC2OSIS ; -import WLC2OSIS.GUI.* ; import WLC2OSIS.Parse.* ; import WLC2OSIS.Translate.* ; import WLC2OSIS.Utilities.* ; @@ -24,9 +23,7 @@ public class WLC2OSIS /*implements Stoppable*/ { // Definitions of input and output to be set by user. // public String ProgramDate = "30 May 2004" ; -public String DefaultInputFilename = "/home/Martin/dev/swordtools/modules/hebrew-wlc/" ; public String InputFilename; -public String DefaultOutputDirectory = "/home/Martin/KDesktop/" ; public String OutputDirectory ; // Define the title and descriptions. public String Title = "The Westminster Leningrad Codex (WLC)" ; @@ -73,37 +70,17 @@ public String MorphologicalDivisionMarker = MorphologicalSegmentEnd + Morphologi //----------------------------------------------------------------------------- -public final int InputBufferSize = 4000000 ; // Length of input in bytes. -public SuperContainer SC ; -Container InputContainer ; -public Frame SuperFrame ; -public Container OverallContainer ; // Actually, the content pane. -public JRootPane RP ; +public final int InputBufferSize = 40000000 ; // Length of input in bytes. public char[] InputChars ; // Input char[] array set by FileRead. public Parser p ; public XMLWriter w ; public Fmt F = new Fmt() ; // public boolean StandAlone = true ; // If used by another app, -Messages M; -public WLC2OSIS( Container InputContainer ){ - this.InputContainer = InputContainer ; - this.SC = new SuperContainer(InputContainer) ; - OverallContainer = this.SC.getContentPane() ; -// SuperFrame = SC.superFrame() ; -// StandAlone = true ; -//----------------------------------------------------------------------------- - -// Crude GUI - - M = new Messages(this) ; - FileChoices fc = new FileChoices(this) ; +public WLC2OSIS( String file, String directory ){ - M.initialMessage() ; - InputFilename = fc.getInputFilename(DefaultInputFilename) ; -// GetDate gd = new GetDate(this) ; - OutputDirectory = fc.getOutputDirectory(DefaultOutputDirectory) ; -//----------------------------------------------------------------------------- + InputFilename = file ; + OutputDirectory = directory ; // Identifying printouts @@ -115,28 +92,13 @@ public WLC2OSIS( Container InputContainer ){ FileRead FR = new FileRead(this) ; FR.read(InputFilename) ; -//----------------------------------------------------------------------------- - -// *** DISABLED *** Test of CCAT format -> XML translation. - -//L5253W.L\"815253)5253]4 -//YI&:RF)\"80L -// if(false){ -// String TestString = "HA/$.FMA73YIM" ; -// Test.test(this, TestString) ; -// } -//----------------------------------------------------------------------------- // Read, parse, and write the book files. p = new Parser(this) ; p.parse() ; -//----------------------------------------------------------------------------- - M.doneMessage() ; -//----------------------------------------------------------------------------- - + done() ; } -//----------------------------------------------------------------------------- //------------------------------------------------------------------------------ /** @@ -147,8 +109,4 @@ public void done(){ F.bar("=", 80) ; System.exit(0) ; } -//----------------------------------------------------------------------------- -// End of class } -//======================================================================================== -//======================================================================================== diff --git a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/WLC2OSISMain.java b/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/WLC2OSISMain.java index 4e4b4f7..ece113f 100644 --- a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/WLC2OSISMain.java +++ b/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/WLC2OSISMain.java @@ -4,51 +4,20 @@ import Utilities.* ; import java.awt.*; import javax.swing.*; -//============================================================================== -/** - * <b>WLC2OSISMain main method and applet launcher, - * actual working program is in the WLC2OSIS class.</b><p> - * - * This is a general purpose launching class. It can launch - * - * 1. Applets - * 2. Applications - * 3. Dialogs launched from other programs - * - */ -//============================================================================== + + public class WLC2OSISMain{ static WLC2OSIS A ; -//============================================================================== - /** * Static main() method for use as an application or dialog. * - * @param args String[] un-used. + * @param args String[] */ public static void main( String[] args) { - - boolean Dialog = false ; // Either a dialog or application window. - - Frame SuperFrame = GetParentFrame.GetParentFrame(new JFrame()) ; - - if (Dialog){ - -// As a MODAL JDialog - JDialog WLC2OSISDialog = new JDialog(SuperFrame, true) ; - A = new WLC2OSIS( WLC2OSISDialog ) ; + A = new WLC2OSIS( args[0], args[1] ) ; System.exit(0) ; - } - else{ - -// Ss a JFrame - JFrame ThisFrame = new JFrame() ; - A = new WLC2OSIS(ThisFrame) ; - } - } -// end of class } -//============================================================================== -//============================================================================== + +} //class |