blob: 4486d45d87fd00022edcaff89bf63e68e77d648a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#define TRANSLITERATION_Diacritics_CTL
#include <transliteration_Ignore.hxx>
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;
return 0xffff; // Skip this character
}
return c;
}
ignoreDiacritics_CTL::ignoreDiacritics_CTL()
{
func = ignoreDiacritics_CTL_translator;
table = 0;
map = 0;
transliterationName = "ignoreDiacritics_CTL";
implementationName = "com.sun.star.i18n.Transliteration.ignoreDiacritics_CTL";
}
} } } }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|