lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject cvs commit: jakarta-lucene-sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/nl DutchStemmer.java
Date Tue, 17 Aug 2004 21:56:53 GMT
dnaber      2004/08/17 14:56:53

  Modified:    contributions/analyzers/src/java/org/apache/lucene/analysis/nl
                        DutchStemmer.java
  Log:
  convert to utf-8
  
  Revision  Changes    Path
  1.4       +12 -12    jakarta-lucene-sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/nl/DutchStemmer.java
  
  Index: DutchStemmer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/nl/DutchStemmer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DutchStemmer.java	12 Mar 2004 15:52:59 -0000	1.3
  +++ DutchStemmer.java	17 Aug 2004 21:56:53 -0000	1.4
  @@ -258,37 +258,37 @@
     }
   
     /**
  -   * Substitute , , , , ,  , , , , 
  +   * Substitute ä, ë, ï, ö, ü, á , é, í, ó, ú
      */
     private void substitute(StringBuffer buffer) {
       for (int i = 0; i < buffer.length(); i++) {
         switch (buffer.charAt(i)) {
  -        case '':
  -        case '':
  +        case 'ä':
  +        case 'á':
             {
               buffer.setCharAt(i, 'a');
               break;
             }
  -        case '':
  -        case '':
  +        case 'ë':
  +        case 'é':
             {
               buffer.setCharAt(i, 'e');
               break;
             }
  -        case '':
  -        case '':
  +        case 'ü':
  +        case 'ú':
             {
               buffer.setCharAt(i, 'u');
               break;
             }
  -        case '':
  +        case 'ï':
           case 'i':
             {
               buffer.setCharAt(i, 'i');
               break;
             }
  -        case '':
  -        case '':
  +        case 'ö':
  +        case 'ó':
             {
               buffer.setCharAt(i, 'o');
               break;
  @@ -391,7 +391,7 @@
         case 'i':
         case 'u':
         case 'y':
  -      case '':
  +      case 'è':
           {
             return true;
           }
  @@ -403,4 +403,4 @@
       _stemDict = dict;
     }
   
  -}
  \ No newline at end of file
  +}
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message