comparison src/main/java/org/mpi/openmind/repository/utils/RomanizationLoC.java @ 89:8adfa8679991

new implementation of translit-to-romanization rules in RomanizationLoc with test(!).
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Mon, 26 Feb 2018 14:39:49 +0100
parents ad505ef703ed
children 2c01cdc9b34a
comparison
equal deleted inserted replaced
88:ad505ef703ed 89:8adfa8679991
176 176
177 return text; 177 return text;
178 } 178 }
179 179
180 /* 180 /*
181 * rule 6 181 * rule 6 currently unused
182 * 182 *
183 * λh; λ= [t; k; d; s; g] => λʹh 183 * λh; λ= [t; k; d; s; g] => λʹh
184 */ 184 */
185 private static Pattern rule6_pattern = Pattern.compile("(\\S+)(t|k|d|s|g)h(\\S+)"); 185 private static Pattern rule6_pattern = Pattern.compile("(\\S+)(t|k|d|s|g)h(\\S+)");
186 //private static Pattern rule6_pattern = Pattern.compile("([\\w|ā|ī|’|ā|š]*)(t|k|d|s|g)h([\\w|ā|ī|’|ā|š]*)"); 186 //private static Pattern rule6_pattern = Pattern.compile("([\\w|ā|ī|’|ā|š]*)(t|k|d|s|g)h([\\w|ā|ī|’|ā|š]*)");