Hi, EFL developers.
In composing japanese, preedit string wasn't splitted normally.
For example, you can see '会社員�です' when you tried to input that text. (it
means that (I'm) company employee).
It should be displayed as ''会社員です'.
This patch will fix the bug that preedit string doesn't display ordinarilly.
Would you please review this patch and apply in svn?
Index: src/modules/immodules/scim/scim_imcontext.cpp
===================================================================
--- src/modules/immodules/scim/scim_imcontext.cpp (revision 66594)
+++ src/modules/immodules/scim/scim_imcontext.cpp (working copy)
@@ -1109,7 +1109,7 @@ isf_imf_context_preedit_string_with_attributes_get
if (attr == NULL)
continue;
attr->start_index = start_index;
- attr->end_index = end_index;
+ attr->end_index = end_index - 1;
if (i->get_value () ==
SCIM_ATTR_DECORATE_UNDERLINE)
{
Index: src/modules/immodules/xim/ecore_imf_xim.c
===================================================================
--- src/modules/immodules/xim/ecore_imf_xim.c (revision 66579)
+++ src/modules/immodules/xim/ecore_imf_xim.c (working copy)
@@ -414,7 +414,7 @@ add_feedback_attr (Eina_List **attrs,
{
attr = (Ecore_IMF_Preedit_Attr *)calloc(1,
sizeof(Ecore_IMF_Preedit_Attr));
attr->start_index = start_index;
- attr->end_index = end_index;
+ attr->end_index = end_index - 1;
*attrs = eina_list_append(*attrs, (void *)attr);
}
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel