Hi, I've found an error in the Caverphone language codec.
According to the specs at page 2 line 6: "If the name ends with mb make it m2". Apparently is has been interpreted as: "If the name _starts_ with mb make it m2". The attached patch will fix it. Please CC me, as I'm not subscribed. Regards, Martin Nybo Andersen
diff -rau orig/Caverphone.java new/Caverphone.java --- orig/Caverphone.java 2011-02-28 13:56:16.849435500 +0100 +++ new/Caverphone.java 2011-02-28 13:57:37.775830534 +0100 @@ -71,7 +71,9 @@ txt = txt.replaceAll("^enough", "enou2f"); // 2.0 only txt = txt.replaceAll("^trough", "trou2f"); // 2.0 only - note the spec says ^enough here again, c+p error I assume txt = txt.replaceAll("^gn", "2n"); - txt = txt.replaceAll("^mb", "m2"); + + // 3.5. Handle final mb + txt = txt.replaceAll("mb$", "m2"); // 4. Handle replacements txt = txt.replaceAll("cq", "2q"); Only in new: Caverphone.java~
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org