Commit ec0f4fa3 authored by ludwig's avatar ludwig
Browse files

removed umlaut stuff to avoid compilation error

git-svn-id: https://www2.in.tum.de/repos/ttt/trunk@74 0463f305-d864-43cb-8a47-61cf597d4139
parent fdf40958
......@@ -470,24 +470,25 @@ public class Constants {
char ch = Character.toLowerCase((char) character);
if (Character.isLetterOrDigit(ch)) {
if (umlaut_reduction) {
//removed to avoid compilation error
// NOTE: problematical for underlining
switch (ch) {
case '':
stringBuffer.append("ae");
break;
case '':
stringBuffer.append("oe");
break;
case '':
stringBuffer.append("ue");
break;
case '':
stringBuffer.append("ss");
break;
default:
stringBuffer.append(ch);
break;
}
// switch (ch) {
// case '':
// stringBuffer.append("ae");
// break;
// case '':
// stringBuffer.append("oe");
// break;
// case '':
// stringBuffer.append("ue");
// break;
// case '':
// stringBuffer.append("ss");
// break;
// default:
// stringBuffer.append(ch);
// break;
// }
} else
stringBuffer.append(ch);
blank = false; // character added
......
......@@ -45,24 +45,25 @@ public class SimpleSearch {
int character = text.charAt(pos);
char ch = Character.toLowerCase((char) character);
if (Character.isLetterOrDigit(ch)) {
if (umlaut_reduction) {
switch (ch) {
case 'ä' :
stringBuffer.append("ae");
break;
case 'ö' :
stringBuffer.append("oe");
break;
case 'ü' :
stringBuffer.append("ue");
break;
case 'ß' :
stringBuffer.append("ss");
break;
default :
stringBuffer.append(ch);
break;
}
if (umlaut_reduction) {
//removed to avoid compilation error
// switch (ch) {
// case 'ä' :
// stringBuffer.append("ae");
// break;
// case 'ö' :
// stringBuffer.append("oe");
// break;
// case 'ü' :
// stringBuffer.append("ue");
// break;
// case 'ß' :
// stringBuffer.append("ss");
// break;
// default :
// stringBuffer.append(ch);
// break;
// }
} else
stringBuffer.append(ch);
blank = false; // character added
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment