const char *code;
Input_Language lang;
Eina_Unicode punc_code;
- Eina_Bool auto_capital_valid;
} LanguageInfo;
static LanguageInfo __language_infos [] = {
- { "ur_PK", INPUT_LANG_URDU, 0x06D4, EINA_TRUE },
- { "hi_IN", INPUT_LANG_HINDI, 0x0964, EINA_FALSE },
- { "bn_IN", INPUT_LANG_BENGALI_IN, 0x0964, EINA_TRUE },
- { "bn_BD", INPUT_LANG_BENGALI_BD, 0x0964, EINA_TRUE },
- { "as_IN", INPUT_LANG_ASSAMESE, 0x0964, EINA_TRUE },
- { "pa_IN", INPUT_LANG_PUNJABI, 0x0964, EINA_TRUE },
- { "ne_NP", INPUT_LANG_NEPALI, 0x0964, EINA_TRUE },
- { "or_IN", INPUT_LANG_ORIYA, 0x0964, EINA_TRUE },
- { "mai_IN", INPUT_LANG_MAITHILI, 0x0964, EINA_TRUE },
- { "hy_AM", INPUT_LANG_ARMENIAN, 0x0589, EINA_TRUE },
- { "zh_CN", INPUT_LANG_CN, 0x3002, EINA_FALSE },
- { "zh_HK", INPUT_LANG_CN_HK, 0x3002, EINA_FALSE },
- { "zh_TW", INPUT_LANG_CN_TW, 0x3002, EINA_FALSE },
- { "ja_JP", INPUT_LANG_JAPANESE, 0x3002, EINA_FALSE },
- { "km_KH", INPUT_LANG_KHMER, 0x17D4, EINA_TRUE },
- { "ko_KR", INPUT_LANG_KOREAN, 0x002E, EINA_FALSE },
- { "asb_IN", INPUT_LANG_ASSAMESE_BN, 0x0964, EINA_TRUE },
- { "bna_IN", INPUT_LANG_BENGALI_AS, 0x0964, EINA_TRUE },
- { "brx_IN", INPUT_LANG_BODO, 0x0964, EINA_TRUE },
- { "doi_IN", INPUT_LANG_DOGRI, 0x0964, EINA_TRUE },
- { "mni_IN", INPUT_LANG_MANIPURI, 0xabeb, EINA_TRUE },
- { "mnia_IN",INPUT_LANG_MANIPURI_AS, 0x0964, EINA_TRUE },
- { "mnib_IN",INPUT_LANG_MANIPURI_BN, 0x0964, EINA_TRUE },
- { "kok_IN", INPUT_LANG_KONKANI, 0x0964, EINA_TRUE },
- { "sd_IN", INPUT_LANG_SINDHI, 0x0964, EINA_TRUE },
+ { "ur_PK", INPUT_LANG_URDU, 0x06D4 },
+ { "hi_IN", INPUT_LANG_HINDI, 0x0964 },
+ { "bn_IN", INPUT_LANG_BENGALI_IN, 0x0964 },
+ { "bn_BD", INPUT_LANG_BENGALI_BD, 0x0964 },
+ { "as_IN", INPUT_LANG_ASSAMESE, 0x0964 },
+ { "pa_IN", INPUT_LANG_PUNJABI, 0x0964 },
+ { "ne_NP", INPUT_LANG_NEPALI, 0x0964 },
+ { "or_IN", INPUT_LANG_ORIYA, 0x0964 },
+ { "mai_IN", INPUT_LANG_MAITHILI, 0x0964 },
+ { "hy_AM", INPUT_LANG_ARMENIAN, 0x0589 },
+ { "zh_CN", INPUT_LANG_CN, 0x3002 },
+ { "zh_HK", INPUT_LANG_CN_HK, 0x3002 },
+ { "zh_TW", INPUT_LANG_CN_TW, 0x3002 },
+ { "ja_JP", INPUT_LANG_JAPANESE, 0x3002 },
+ { "km_KH", INPUT_LANG_KHMER, 0x17D4 },
+ { "ko_KR", INPUT_LANG_KOREAN, 0x002E },
+ { "asb_IN", INPUT_LANG_ASSAMESE_BN, 0x0964 },
+ { "bna_IN", INPUT_LANG_BENGALI_AS, 0x0964 },
+ { "brx_IN", INPUT_LANG_BODO, 0x0964 },
+ { "doi_IN", INPUT_LANG_DOGRI, 0x0964 },
+ { "mni_IN", INPUT_LANG_MANIPURI, 0xabeb },
+ { "mnia_IN",INPUT_LANG_MANIPURI_AS, 0x0964 },
+ { "mnib_IN",INPUT_LANG_MANIPURI_BN, 0x0964 },
+ { "kok_IN", INPUT_LANG_KONKANI, 0x0964 },
+ { "sd_IN", INPUT_LANG_SINDHI, 0x0964 },
};
struct _WaylandIMContext
break;
}
}
-
- if (_focused_ctx)
- set_autocapital (_focused_ctx);
}
static void autoperiod_allow_changed_cb (keynode_t *key, void* data)
if (hw_keyboard_mode) return;
- if (input_lang != INPUT_LANG_OTHER && (!__language_infos[input_lang].auto_capital_valid))
- return;
-
if (ecore_imf_context_input_panel_layout_get (ctx) != ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL)
return;