1 From 66badb7449c2053c89456f11a7f71f3f5916b550 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20N=C3=A9meth?=
3 <laszlo.nemeth@collabora.com>
4 Date: Thu, 5 Oct 2017 11:13:28 +0200
5 Subject: [PATCH] Extend dotless i and dotted I rules to Crimean Tatar language
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
10 to support its special casing of ı/I, i/İ.
16 in the affix file to use this feature.)
18 src/hunspell/csutil.cxx | 5 +++--
19 src/hunspell/langnum.hxx | 1 +
20 2 files changed, 4 insertions(+), 2 deletions(-)
22 diff --git a/src/hunspell/csutil.cxx b/src/hunspell/csutil.cxx
23 index df97b57..2980da7 100644
24 --- a/src/hunspell/csutil.cxx
25 +++ b/src/hunspell/csutil.cxx
26 @@ -2401,6 +2401,7 @@ static struct lang_map lang2enc[] =
27 {{"ar", LANG_ar}, {"az", LANG_az},
28 {"az_AZ", LANG_az}, // for back-compatibility
29 {"bg", LANG_bg}, {"ca", LANG_ca},
31 {"cs", LANG_cs}, {"da", LANG_da},
32 {"de", LANG_de}, {"el", LANG_el},
33 {"en", LANG_en}, {"es", LANG_es},
34 @@ -2458,7 +2459,7 @@ unsigned short unicodetoupper(unsigned short c, int langnum) {
35 // In Azeri and Turkish, I and i dictinct letters:
36 // There are a dotless lower case i pair of upper `I',
37 // and an upper I with dot pair of lower `i'.
38 - if (c == 0x0069 && ((langnum == LANG_az) || (langnum == LANG_tr)))
39 + if (c == 0x0069 && ((langnum == LANG_az) || (langnum == LANG_tr) || (langnum == LANG_crh)))
42 return static_cast<unsigned short>(u_toupper(c));
43 @@ -2475,7 +2476,7 @@ unsigned short unicodetolower(unsigned short c, int langnum) {
44 // In Azeri and Turkish, I and i dictinct letters:
45 // There are a dotless lower case i pair of upper `I',
46 // and an upper I with dot pair of lower `i'.
47 - if (c == 0x0049 && ((langnum == LANG_az) || (langnum == LANG_tr)))
48 + if (c == 0x0049 && ((langnum == LANG_az) || (langnum == LANG_tr) || (langnum == LANG_crh)))
51 return static_cast<unsigned short>(u_tolower(c));
52 diff --git a/src/hunspell/langnum.hxx b/src/hunspell/langnum.hxx
53 index a64d3d7..f09de40 100644
54 --- a/src/hunspell/langnum.hxx
55 +++ b/src/hunspell/langnum.hxx
56 @@ -48,6 +48,7 @@ enum {
57 LANG_az = 100, // custom number
60 + LANG_crh = 102, // custom number