diff options
author | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-13 01:53:31 +0900 |
---|---|---|
committer | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-13 01:53:31 +0900 |
commit | 2980b7c7ede39105505ec63e39a5a2d61f54f66d (patch) | |
tree | f25dd908fb813fea55ab7cfb96957b0067ed07fb /src | |
parent | 580dc42ecc6ae0f6b7a3a95d0b0ba435c7556da8 (diff) | |
download | ise-engine-default-2980b7c7ede39105505ec63e39a5a2d61f54f66d.tar.gz ise-engine-default-2980b7c7ede39105505ec63e39a5a2d61f54f66d.tar.bz2 ise-engine-default-2980b7c7ede39105505ec63e39a5a2d61f54f66d.zip |
Tizen 2.1 base
Diffstat (limited to 'src')
-rw-r--r-- | src/isf_default_imengine.cpp | 12 | ||||
-rw-r--r-- | src/isf_default_imengine.h | 2 | ||||
-rw-r--r-- | src/kdb_resource.h | 257 |
3 files changed, 8 insertions, 263 deletions
diff --git a/src/isf_default_imengine.cpp b/src/isf_default_imengine.cpp index f143a0a..42c8947 100644 --- a/src/isf_default_imengine.cpp +++ b/src/isf_default_imengine.cpp @@ -1,7 +1,7 @@ /* * ise-engine-default * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. All rights reserved. * * Contact: Li zhang <li2012.zhang@samsung.com> * @@ -56,8 +56,6 @@ #define DEFAULT_NAME "Multilingual/Keyboard" #define ISF_CONFIG_HARDWARE_KEYBOARD_DETECT "/isf/hw_keyboard_detect" -#define TIME_COUNT 1 /*muti tap interval (seconds) */ -#define FLUSH_KEY 0x8001 #define UTF8_SIZE 6 #ifndef ISF_DEFAULT_ICON_FILE @@ -174,7 +172,7 @@ DefaultFactory::create_instance(const String & encoding, int id) { return new DefaultInstance(this, encoding, id); } -/* Initialize member varialbes */ +/* Initialize member variables */ unsigned int DefaultInstance::m_prevkeyval = 0; int DefaultInstance::m_counter = 0; @@ -283,9 +281,9 @@ bool DefaultInstance::keypad_process_qwerty(KeyEvent & key) { /* in case of Alphabet chars */ if (key.code >= 0xfd00) - return false;//ISF handle function keys - else if (key.code >= 0x4E00 && key.code <= 0x9FBF) - return true;//Don't deal with Chinese characters + return false;//ISF handle function keys + else if (key.code >= 0x4E00 && key.code <= 0x9FBF) + return true;//Don't deal with Chinese characters utf8_wctomb(buf, key.code, UTF8_SIZE); diff --git a/src/isf_default_imengine.h b/src/isf_default_imengine.h index 763380e..4b3d180 100644 --- a/src/isf_default_imengine.h +++ b/src/isf_default_imengine.h @@ -1,7 +1,7 @@ /* * ise-engine-default * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. All rights reserved. * * Contact: Li zhang <li2012.zhang@samsung.com> * diff --git a/src/kdb_resource.h b/src/kdb_resource.h index 79e700b..875281c 100644 --- a/src/kdb_resource.h +++ b/src/kdb_resource.h @@ -1,7 +1,7 @@ /* * ise-engine-default * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. + * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. All rights reserved. * * Contact: Li zhang <li2012.zhang@samsung.com> * @@ -28,9 +28,7 @@ typedef enum { I_HQR, /* Regional Qwerty */ - I_HQD, /* Descrite Qwerty */ - I_HPD, /* 3x4 keypad */ - I_HKD, /* 5x4 keypad */ + I_HQD, /* Discrete Qwerty */ I_EXP } IMKeypad; @@ -99,255 +97,4 @@ typedef enum { IM_LANGUAGE_CNT } IMLangauge; -static const char *gplangname[IM_LANGUAGE_CNT] = { - "English", - "French", - "Spanish", - "Dutch", - "German", - "Greek", - "Italian", - "Portuguese", - "Turkish", - "Arabic (Egypt)", - "Russian", - "Afrikaans", - "Assamese", - "Azerbaijani", - "Basque", - "Bengali", - "Bulgarian", - "Catalan", - "Czech", - "Danish", - "Estonian", - "Finnish", - "Galician", - "Georgian", - "Gujarati", - "Hausa", - "Hebrew", - "Hindi", - "Hungarian", - "Icelandic", - "Irish", - "Kannada", - "Kazakh", - "Latvian", - "Lithuanian", - "Macedonian", - "Malayalam", - "Malay", - "Marathi", - "Mongolian", - "Nepali", - "Norwegian", - "Polish", - "Punjabi", - "Romanian", - "Serbian", - "Sinhala", - "Slovak", - "Slovenian", - "Swedish", - "Tamil", - "Telugu", - "Thai", - "Ukrainian", - "Urdu", - "Uzbek", - "Vietnamese", - "Welsh", - "Xhosa", - "Yoruba", - "Zulu", -}; - - -const signed char HQDConversion[] = { - /* 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F */ - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 0x00 - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 0x10 - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 0x20 - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 0x30 - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 0x40 - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 0x50 - -1, 10, 23, 21, 12, 2, 13, 14, 15, 7, 16, 17, 18, 25, 24, 8, // 0x60 - 9, 0, 3, 11, 4, 6, 22, 1, 20, 5, 19, -1, -1, -1, -1, -1, // 0x70 - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 0x80 - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 0x90 - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 0xA0 - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 0xB0 - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 0xC0 - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 0xD0 - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 0xE0 - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0 // 0xF0 -}; - -static const unsigned short - g_QWERTY_LOWER_CASE_LETTER[IM_LANGUAGE_CNT][MAXKEYS_QWERTY] = { - {'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', - 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', - 'z', 'x', 'c', 'v', 'b', 'n', 'm',}, /*English */ - {'a', 'z', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', - 'q', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', - 'm', 'w', 'x', 'c', 'v', 'b', 'n',}, /* LANGUAGE_FRENCH */ - {0x0071, 0x0077, 0x0065, 0x0072, 0x0074, 0x0079, 0x0075, 0x0069, 0x006F, - 0x0070, 0x0061, 0x0073, 0x0064, 0x0066, 0x0067, 0x0068, 0x006A, 0x006B, - 0x006C, 0x007A, 0x0078, 0x0063, 0x0076, 0x0062, 0x006E, 0x006D,}, /* LANGUAGE_SPANISH */ - {0x0071, 0x0077, 0x0065, 0x0072, 0x0074, 0x0079, 0x0075, 0x0069, 0x006F, - 0x0070, 0x0061, 0x0073, 0x0064, 0x0066, 0x0067, 0x0068, 0x006A, 0x006B, - 0x006C, 0x007A, 0x0078, 0x0063, 0x0076, 0x0062, 0x006E, 0x006D,}, /* LANGUAGE_DUTCH */ - {0x0071, 0x0077, 0x0065, 0x0072, 0x0074, 0x007A, 0x0075, 0x0069, 0x006F, - 0x0070, 0x0061, 0x0073, 0x0064, 0x0066, 0x0067, 0x0068, 0x006A, 0x006B, - 0x006C, 0x0079, 0x0078, 0x0063, 0x0076, 0x0062, 0x006E, 0x006D,}, /* LANGUAGE_GERMAN */ - {0x0071, 0x03C2, 0x03B5, 0x03C1, 0x03C4, 0x03C5, 0x03B8, 0x03B9, 0x03BF, - 0x03C0, 0x03B1, 0x03C3, 0x03B4, 0x03C6, 0x03B3, 0x03B7, 0x03BE, 0x03BA, - 0x03BB, 0x03B6, 0x03C7, 0x03C8, 0x03C9, 0x03B2, 0x03BD, 0x03BC,}, /* LANGUAGE_GREEK */ - {0x0071, 0x0077, 0x0065, 0x0072, 0x0074, 0x0079, 0x0075, 0x0069, 0x006F, - 0x0070, 0x0061, 0x0073, 0x0064, 0x0066, 0x0067, 0x0068, 0x006A, 0x006B, - 0x006C, 0x007A, 0x0078, 0x0063, 0x0076, 0x0062, 0x006E, 0x006D,}, /* LANGUAGE_ITALIAN */ - {0x0071, 0x0077, 0x0065, 0x0072, 0x0074, 0x0079, 0x0075, 0x0069, 0x006F, - 0x0070, 0x0061, 0x0073, 0x0064, 0x0066, 0x0067, 0x0068, 0x006A, 0x006B, - 0x006C, 0x007A, 0x0078, 0x0063, 0x0076, 0x0062, 0x006E, 0x006D,}, /* LANGUAGE_PORTUGUESE */ - {0x0071, 0x0077, 0x0065, 0x0072, 0x0074, 0x0079, 0x0075, 0x0069, 0x006F, - 0x0070, 0x0061, 0x0073, 0x0064, 0x0066, 0x0067, 0x0068, 0x006A, 0x006B, - 0x006C, 0x007A, 0x0078, 0x0063, 0x0076, 0x0062, 0x006E, 0x006D,}, /* LANGUAGE_TURKISH */ - {0,}, /* LANGUAGE_ARABIC */ - {0,}, /* LANGUAGE_RUSSIAN */ - {0,}, /* LANGUAGE_AFRIKAANS */ - {0,}, /* LANGUAGE_ASSAMESE */ - {0,}, /* LANGUAGE_AZERBAIJANI, */ - {0,}, /* LANGUAGE_BASQUE, */ - {0,}, /* LANGUAGE_BENGALI, */ - {0,}, /* LANGUAGE_BULGARIAN, */ - {0,}, /* LANGUAGE_CATALAN, */ - {0,}, /* LANGUAGE_CZECH, */ - {0,}, /* LANGUAGE_DANISH, */ - {0,}, /* LANGUAGE_ESTONIAN, */ - {0,}, /* LANGUAGE_FINNISH, */ - {0,}, /* LANGUAGE_GALICIAN, */ - {0,}, /* LANGUAGE_GEORGIAN, */ - {0,}, /* LANGUAGE_GUJARATI, */ - {0,}, /* LANGUAGE_HAUSA, */ - {0,}, /* LANGUAGE_HEBREW, */ - {0,}, /* LANGUAGE_HINDI, */ - {0,}, /* LANGUAGE_HUNGARIAN, */ - {0,}, /* LANGUAGE_ICELANDIC, */ - {0,}, /* LANGUAGE_IRISH, */ - {0,}, /* LANGUAGE_KANNADA, */ - {0,}, /* LANGUAGE_KAZAKH, */ - {0,}, /* LANGUAGE_LATVIAN, */ - {0,}, /* LANGUAGE_LITHUANIAN, */ - {0,}, /* LANGUAGE_MACEDONIAN, */ - {0,}, /* LANGUAGE_MALAYALAM, */ - {0,}, /* LANGUAGE_MALAY, */ - {0,}, /* LANGUAGE_MARATHI, */ - {0,}, /* LANGUAGE_MONGOLIAN, */ - {0,}, /* LANGUAGE_NEPALI */ - {0,}, /* LANGUAGE_NORWEGIAN, */ - {0,}, /* LANGUAGE_POLISH, */ - {0,}, /* LANGUAGE_PUNJABI, */ - {0,}, /* LANGUAGE_ROMANIAN, */ - {0,}, /* LANGUAGE_SERBIAN, */ - {0,}, /* LANGUAGE_SINHALA, */ - {0,}, /* LANGUAGE_SLOVAK, */ - {0,}, /* LANGUAGE_SLOVENIAN, */ - {0,}, /* LANGUAGE_SWEDISH, */ - {0,}, /* LANGUAGE_TAMIL, */ - {0,}, /* LANGUAGE_TELUGU, */ - {0,}, /* LANGUAGE_THAI, */ - {0,}, /* LANGUAGE_UKRAINIAN, */ - {0,}, /* LANGUAGE_URDU, */ - {0,}, /* LANGUAGE_UZBEK, */ - {0,}, /* LANGUAGE_VIETNAMESE, */ - {0,}, /* LANGUAGE_WELSH, */ - {0,}, /* LANGUAGE_XHOSA, */ - {0,}, /* LANGUAGE_YORUBA, */ - {0,}, /* LANGUAGE_ZULU, */ -}; - -static const unsigned short - g_QWERTY_UPPER_CASE_LETTER[IM_LANGUAGE_CNT][MAXKEYS_QWERTY] = { - {0x0051, 0x0057, 0x0045, 0x0052, 0x0054, 0x0059, 0x0055, 0x0049, 0x004f, - 0x0050, 0x0041, 0x0053, 0x0044, 0x0046, 0x0047, 0x0048, 0x004a, 0x004b, - 0x004c, 0x005a, 0x0058, 0x0043, 0x0056, 0x0042, 0x004e, 0x004d,}, /*English */ - {0x0041, 0x005a, 0x0045, 0x0052, 0x0054, 0x0059, 0x0055, 0x0049, 0x004f, - 0x0050, 0x0051, 0x0053, 0x0044, 0x0046, 0x0047, 0x0048, 0x004a, 0x004b, - 0x004c, 0x004d, 0x0057, 0x0058, 0x0043, 0x0056, 0x0042, 0x004e,}, /* LANGUAGE_FRENCH */ - {0x0051, 0x0057, 0x0045, 0x0052, 0x0054, 0x0059, 0x0055, 0x0049, 0x004f, - 0x0050, 0x0041, 0x0053, 0x0044, 0x0046, 0x0047, 0x0048, 0x004a, 0x004b, - 0x004c, 0x005a, 0x0058, 0x0043, 0x0056, 0x0042, 0x004e, 0x004d,}, /* LANGUAGE_SPANISH */ - {0x0051, 0x0057, 0x0045, 0x0052, 0x0054, 0x0059, 0x0055, 0x0049, 0x004f, - 0x0050, 0x0041, 0x0053, 0x0044, 0x0046, 0x0047, 0x0048, 0x004a, 0x004b, - 0x004c, 0x005a, 0x0058, 0x0043, 0x0056, 0x0042, 0x004e, 0x004d,}, /* LANGUAGE_DUTCH */ - {0x0051, 0x0057, 0x0045, 0x0052, 0x0054, 0x005a, 0x0055, 0x0049, 0x004f, - 0x0050, 0x0041, 0x0053, 0x0044, 0x0046, 0x0047, 0x0048, 0x004a, 0x004b, - 0x004c, 0x0059, 0x0058, 0x0043, 0x0056, 0x0042, 0x004e, 0x004d,}, /* LANGUAGE_GERMAN */ - {0x003B, 0x03c2, 0x0395, 0x03a1, 0x03a4, 0x03a5, 0x0398, 0x0399, 0x039f, - 0x03a0, 0x0391, 0x03a3, 0x0394, 0x03a6, 0x0393, 0x0397, 0x039e, 0x039a, - 0x039b, 0x0396, 0x03a7, 0x03a8, 0x03a9, 0x0392, 0x039d, 0x039c,}, /* LANGUAGE_GREEK */ - {0x0051, 0x0057, 0x0045, 0x0052, 0x0054, 0x0059, 0x0055, 0x0049, 0x004f, - 0x0050, 0x0041, 0x0053, 0x0044, 0x0046, 0x0047, 0x0048, 0x004a, 0x004b, - 0x004c, 0x005a, 0x0058, 0x0043, 0x0056, 0x0042, 0x004e, 0x004d,}, /* LANGUAGE_ITALIAN */ - {0x0051, 0x0057, 0x0045, 0x0052, 0x0054, 0x0059, 0x0055, 0x0049, 0x004f, - 0x0050, 0x0041, 0x0053, 0x0044, 0x0046, 0x0047, 0x0048, 0x004a, 0x004b, - 0x004c, 0x005a, 0x0058, 0x0043, 0x0056, 0x0042, 0x004e, 0x004d,}, /* LANGUAGE_PORTUGUESE */ - {0x0051, 0x0057, 0x0045, 0x0052, 0x0054, 0x0059, 0x0055, 0x0049, 0x004f, - 0x0050, 0x0041, 0x0053, 0x0044, 0x0046, 0x0047, 0x0048, 0x004a, 0x004b, - 0x004c, 0x005a, 0x0058, 0x0043, 0x0056, 0x0042, 0x004e, 0x004d,}, /* LANGUAGE_TURKISH */ - {0,}, /* LANGUAGE_ARABIC */ - {0,}, /* LANGUAGE_RUSSIAN */ - {0,}, /* LANGUAGE_AFRIKAANS */ - {0,}, /* LANGUAGE_ASSAMESE */ - {0,}, /* LANGUAGE_AZERBAIJANI, */ - {0,}, /* LANGUAGE_BASQUE, */ - {0,}, /* LANGUAGE_BENGALI, */ - {0,}, /* LANGUAGE_BULGARIAN, */ - {0,}, /* LANGUAGE_CATALAN, */ - {0,}, /* LANGUAGE_CZECH, */ - {0,}, /* LANGUAGE_DANISH, */ - {0,}, /* LANGUAGE_ESTONIAN, */ - {0,}, /* LANGUAGE_FINNISH, */ - {0,}, /* LANGUAGE_GALICIAN, */ - {0,}, /* LANGUAGE_GEORGIAN, */ - {0,}, /* LANGUAGE_GUJARATI, */ - {0,}, /* LANGUAGE_HAUSA, */ - {0,}, /* LANGUAGE_HEBREW, */ - {0,}, /* LANGUAGE_HINDI, */ - {0,}, /* LANGUAGE_HUNGARIAN, */ - {0,}, /* LANGUAGE_ICELANDIC, */ - {0,}, /* LANGUAGE_IRISH, */ - {0,}, /* LANGUAGE_KANNADA, */ - {0,}, /* LANGUAGE_KAZAKH, */ - {0,}, /* LANGUAGE_LATVIAN, */ - {0,}, /* LANGUAGE_LITHUANIAN, */ - {0,}, /* LANGUAGE_MACEDONIAN, */ - {0,}, /* LANGUAGE_MALAYALAM, */ - {0,}, /* LANGUAGE_MALAY, */ - {0,}, /* LANGUAGE_MARATHI, */ - {0,}, /* LANGUAGE_MONGOLIAN, */ - {0,}, /* LANGUAGE_NEPALI */ - {0,}, /* LANGUAGE_NORWEGIAN, */ - {0,}, /* LANGUAGE_POLISH, */ - {0,}, /* LANGUAGE_PUNJABI, */ - {0,}, /* LANGUAGE_ROMANIAN, */ - {0,}, /* LANGUAGE_SERBIAN, */ - {0,}, /* LANGUAGE_SINHALA, */ - {0,}, /* LANGUAGE_SLOVAK, */ - {0,}, /* LANGUAGE_SLOVENIAN, */ - {0,}, /* LANGUAGE_SWEDISH, */ - {0,}, /* LANGUAGE_TAMIL, */ - {0,}, /* LANGUAGE_TELUGU, */ - {0,}, /* LANGUAGE_THAI, */ - {0,}, /* LANGUAGE_UKRAINIAN, */ - {0,}, /* LANGUAGE_URDU, */ - {0,}, /* LANGUAGE_UZBEK, */ - {0,}, /* LANGUAGE_VIETNAMESE, */ - {0,}, /* LANGUAGE_WELSH, */ - {0,}, /* LANGUAGE_XHOSA, */ - {0,}, /* LANGUAGE_YORUBA, */ - {0,}, /* LANGUAGE_ZULU, */ -}; - #endif |