diff options
author | abdulmajeed ahmed <aalabdulrazzaq@kacst.edu.sa> | 2013-06-24 11:59:44 +0200 |
---|---|---|
committer | abdulmajeed ahmed <aalabdulrazzaq@kacst.edu.sa> | 2013-06-24 12:03:14 +0200 |
commit | a089ed2bf90fdb293c8502e4ab47cbbe027234f8 (patch) | |
tree | af5ae228e48364a08675008f21df06f8a7e9976a | |
parent | 6edcfde748604863dba40e982effab38d0cb0589 (diff) |
Better approach for solving fdo#52204
Change-Id: Iada36661abaef0363688a186f0542f62dfb1455c
-rw-r--r-- | i18npool/source/transliteration/ignoreDiacritics_CTL.cxx | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/i18npool/source/transliteration/ignoreDiacritics_CTL.cxx b/i18npool/source/transliteration/ignoreDiacritics_CTL.cxx index 4486d45d87fd..7f0b0ce5cd6d 100644 --- a/i18npool/source/transliteration/ignoreDiacritics_CTL.cxx +++ b/i18npool/source/transliteration/ignoreDiacritics_CTL.cxx @@ -9,27 +9,16 @@ #define TRANSLITERATION_Diacritics_CTL #include <transliteration_Ignore.hxx> +#include <unicode/uchar.h> namespace com { namespace sun { namespace star { namespace i18n { sal_Unicode ignoreDiacritics_CTL_translator (const sal_Unicode c) { - switch (c) { - //Arabic Diacritics - case 0x064B: // Fathahtan - case 0x064C: // Dammahtan - case 0x064D: // Kasrahtan - case 0x064E: // Fathah - case 0x064F: // Dammah - case 0x0650: // Kasrah - case 0x0651: // Shaddah - case 0x0652: // Sukun - case 0x0653: // Maddah - case 0x0670: // Dagger alif - // no break; + if(u_getIntPropertyValue(c, UCHAR_GENERAL_CATEGORY) == U_NON_SPACING_MARK) return 0xffff; // Skip this character - } + return c; } |