edje/edje_entry : Add more tags(preedit_sub1~4) for supporting a

variety of preediting states.


SVN revision: 77731
This commit is contained in:
WooHyun Jung 2012-10-10 09:15:16 +00:00
parent dbda81582a
commit 311ea71f36
3 changed files with 33 additions and 0 deletions

View File

@ -649,3 +649,7 @@
2012-09-27 Flavio Ceolin
* edje_codegen: adding support for draggable
2012-10-10
* edje_entry: Add more tags(preedit_sub1~4) for a variety of preediting states.

View File

@ -8,6 +8,7 @@ Additions:
* Add nested parts support.
* Add EDJE_INPUT_PANEL_RETURN_KEY_TYPE_SIGNIN
* Add edje_codegen - A code generator to working with edje files.
* Add more tags(preedit_sub1~4) for a variety of preediting states.
Improvements:
* Check the number of parameter for image in edc.

View File

@ -3751,6 +3751,34 @@ _edje_entry_imf_event_preedit_changed_cb(void *data, Ecore_IMF_Context *ctx __UN
attr->end_index - attr->start_index);
eina_strbuf_append(buf, "</preedit_sel>");
}
else if (attr->preedit_type == ECORE_IMF_PREEDIT_TYPE_SUB4)
{
eina_strbuf_append(buf, "<preedit_sub1>");
eina_strbuf_append_n(buf, preedit_string + attr->start_index,
attr->end_index - attr->start_index);
eina_strbuf_append(buf, "</preedit_sub1>");
}
else if (attr->preedit_type == ECORE_IMF_PREEDIT_TYPE_SUB5)
{
eina_strbuf_append(buf, "<preedit_sub2>");
eina_strbuf_append_n(buf, preedit_string + attr->start_index,
attr->end_index - attr->start_index);
eina_strbuf_append(buf, "</preedit_sub2>");
}
else if (attr->preedit_type == ECORE_IMF_PREEDIT_TYPE_SUB6)
{
eina_strbuf_append(buf, "<preedit_sub3>");
eina_strbuf_append_n(buf, preedit_string + attr->start_index,
attr->end_index - attr->start_index);
eina_strbuf_append(buf, "</preedit_sub3>");
}
else if (attr->preedit_type == ECORE_IMF_PREEDIT_TYPE_SUB7)
{
eina_strbuf_append(buf, "<preedit_sub4>");
eina_strbuf_append_n(buf, preedit_string + attr->start_index,
attr->end_index - attr->start_index);
eina_strbuf_append(buf, "</preedit_sub4>");
}
}
}
else