Another fix for kana2romaji.
authorPhilipp Reh <sefi@s-e-f-i.de>
Fri, 20 Feb 2009 17:28:18 +0000 (18:28 +0100)
committerPhilipp Reh <sefi@s-e-f-i.de>
Fri, 20 Feb 2009 17:28:18 +0000 (18:28 +0100)
kana2romaji.cpp

index dd3145941d82e2e2448c7f8d85837f1eb1b02cbb..b02562f1ebf70b34bd277fcd03b137e90f88a44e 100644 (file)
@@ -376,7 +376,7 @@ void kana2romaji(const string& kana, string& rom) {
                   pred == "pi"
                 )
                {
-                  count = (pos + 1 < rom.size() && rom[pos + 1] == 'y') ? 3 : 2;
+                  count = (pos + 1 < rom.size() && rom[pos + 1] == 'y' && pred[0] == 'j') ? 3 : 2;
                   rom.erase(pos - 1, count);
                   continue;
                }