[Libreoffice-commits] core.git: i18npool/source
abdulmajeed ahmed
aalabdulrazzaq at kacst.edu.sa
Mon Jun 24 03:03:41 PDT 2013
i18npool/source/transliteration/ignoreDiacritics_CTL.cxx | 17 ++-------------
1 file changed, 3 insertions(+), 14 deletions(-)
New commits:
commit a089ed2bf90fdb293c8502e4ab47cbbe027234f8
Author: abdulmajeed ahmed <aalabdulrazzaq at kacst.edu.sa>
Date: Mon Jun 24 11:59:44 2013 +0200
Better approach for solving fdo#52204
Change-Id: Iada36661abaef0363688a186f0542f62dfb1455c
diff --git a/i18npool/source/transliteration/ignoreDiacritics_CTL.cxx b/i18npool/source/transliteration/ignoreDiacritics_CTL.cxx
index 4486d45..7f0b0ce 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;
}
More information about the Libreoffice-commits
mailing list