[sword-svn] r73 - in trunk/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS: Parse Translate
mgruner at crosswire.org
mgruner at crosswire.org
Tue Jul 11 13:02:54 MST 2006
Author: mgruner
Date: 2006-07-11 13:02:44 -0700 (Tue, 11 Jul 2006)
New Revision: 73
Removed:
trunk/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Translate/WKQ.java
Modified:
trunk/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Parse/Parser.java
Log:
Modified: trunk/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Parse/Parser.java
===================================================================
--- trunk/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Parse/Parser.java 2006-07-10 19:20:08 UTC (rev 72)
+++ trunk/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Parse/Parser.java 2006-07-11 20:02:44 UTC (rev 73)
@@ -129,24 +129,11 @@
if ((oldVerse == newVerse) && (oldWordNumber != newWordNumber)){
A.writer.appendText(" ");
}
+
+ System.out.println("Expression: " + expression);
+
+ w.process(expression);
-// Process a word.
-
-/* if (s.length() > 1){
- w.process(s) ;
- }
- else{
-// Look for 1 letter words.
- if( s.compareTo("P")==0){
- m.pe();
- }
- else if( s.compareTo("S")==0){
- m.samek() ;
- }
- else{ // It's a word
- w.process(s) ;
- }
- }*/
oldBookCode = newBookCode;
oldChapter = newChapter;
oldVerse = newVerse;
Deleted: trunk/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Translate/WKQ.java
===================================================================
--- trunk/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Translate/WKQ.java 2006-07-10 19:20:08 UTC (rev 72)
+++ trunk/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/Translate/WKQ.java 2006-07-11 20:02:44 UTC (rev 73)
@@ -1,100 +0,0 @@
-package WLC2OSIS.Translate;
-
-import WLC2OSIS.Parse.* ;
-//==============================================================================
-/**
- * <b>Processes usual and Ketib/Qere words.</b><p>
- *
- * Modified for WLC **qq and *kk null qere and null ketib entries.
- */
-//==============================================================================
-public class WKQ{
-
-Parser P ;
-
-String Ketib;
-int KCount ;
-boolean KStarted ;
-
-String Qere ;
-int QCount ;
-boolean QStarted ;
-//-----------------------------------------------------------------------------
-
-public WKQ( Parser P ) {
- this.P = P ;
- }
-//------------------------------------------------------------------------------
-/**
- * Processes MCW words, writing them using the Word.write(Word, Type) method.
- *
- * @param W String containing MCW word of any type.
- */
-public void process(String W) {
-
- int asteriskcount = P.countChar(W, '*') ;
- int FirstAsterisk = W.indexOf('*') ;
- int LastAsterisk = W.lastIndexOf("*") ;
-//----------------------------------------------------------------------------------
-
-// Process a non-KQ
-
- if (asteriskcount == 0){
- P.w.write(W, "w") ;
- }
-//----------------------------------------------------------------------------------
-
-// Look for a KQ that starts with a non-KQ string in the word
-// usually abc*xyz. Write abc as a nonKQ word, the process *wxyz.
-
-
- if (FirstAsterisk > 0 && P.countChar(W,'*') >= 1 ){
- String NonKQ = W.substring(0, FirstAsterisk) ;
- P.w.write(NonKQ, "w") ;
- W = W.substring(FirstAsterisk, W.length() ) ;
- process(W) ; // Could be either K or Q
- }
-//-----------------------------------------------------------------------------
-
-// One word has two K,Q sections. *xyz**abc, **xyz*abc, *xyz*abc, **xyz**abc
-// Process the two parts separately.
-
- else if(P.countChar(W,'*') >= 2 & LastAsterisk > 1 ){
- int Split = W.indexOf('*', 2) ;
- String Part1 = W.substring(0, Split) ;
- String Part2 = W.substring(Split, W.length()) ;
- process(Part1) ;
- process(Part2) ;
- }
-//-----------------------------------------------------------------------------
-
-// W has ONLY a leading asterisk or two leading asterisks
-
- else{
- if(W.charAt(0) == '*'){
- if(W.charAt(1) != '*'){
-
-// Ketib
-
-// Do nothing if a null K
- if (W.compareTo("*kk") != 0){
- P.w.write(W.substring(1, W.length() ), "k") ;
- }
- }
- else{
-
-// Qere
-
-// Check for a null Q
- if (W.compareTo("**qq") != 0){
- P.w.write(W.substring(2, W.length() ), "q") ;
- }
- }
- }
- }
- return ;
- }
-//------------------------------------------------------------------------------
-}
-//==============================================================================
-//==============================================================================
More information about the sword-cvs
mailing list