summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kana2romaji.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/kana2romaji.cpp b/kana2romaji.cpp
index 99591eb..f596be4 100644
--- a/kana2romaji.cpp
+++ b/kana2romaji.cpp
@@ -414,6 +414,11 @@ void kana2romaji(const string& kana, string& rom) {
continue;
}
}
+ else
+ {
+ cout << "Encountered a placeholder at the beginning. Just removing it." << endl;
+ rom.erase(pos);
+ }
}
// FIXME!
else if (rom[pos] == '\2' && pos + 1 < rom.size())