Remove characters 'APOSTROPHE' and 'MIDDLE DOT' from transliterated string.

This commit is contained in:
Daria Volvenkova 2017-05-15 17:16:04 +03:00 committed by r.kuznetsov
parent 82a2f7b76e
commit 670ae9b4de

View file

@ -83,7 +83,7 @@ bool Transliteration::Transliterate(std::string const & str, int8_t langCode, st
{
UErrorCode status = U_ZERO_ERROR;
std::string const removeDiacriticRule = ";NFD;[\u02B9-\u02D3\u0301-\u0358]Remove;NFC";
std::string const removeDiacriticRule = ";NFD;[\u02B9-\u02D3\u0301-\u0358\u00B7\u0027]Remove;NFC";
transliteratorId.append(removeDiacriticRule);
UnicodeString translitId(transliteratorId.c_str());