From d44f9f81eb74af5304cf25b2ccbd5d5956bf3243 Mon Sep 17 00:00:00 2001 From: David Kuo Date: Mon, 10 Apr 2017 09:58:18 +0800 Subject: [PATCH] Fix #169 to catch the ambiguity word correctly --- src/model/UserphraseModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model/UserphraseModel.cpp b/src/model/UserphraseModel.cpp index a9f84b5..995abeb 100644 --- a/src/model/UserphraseModel.cpp +++ b/src/model/UserphraseModel.cpp @@ -194,8 +194,8 @@ void UserphraseModel::exportUserphrase(std::shared_ptr expor QString UserphraseModel::checkBopomofo(const QString &bopomofo) const { QString replaceBopomofo = bopomofo; - replaceBopomofo.replace(QString::fromUtf8("ㄧ"),QString::fromUtf8("ㄧ")); - replaceBopomofo.replace(QString::fromUtf8("Y"),QString::fromUtf8("ㄚ")); + replaceBopomofo.replace(QString::fromUtf8("一"),QString::fromUtf8("ㄧ")); + replaceBopomofo.replace(QString::fromUtf8("丫"),QString::fromUtf8("ㄚ")); return replaceBopomofo; }