edje/edje_entry : Add more tags(preedit_sub1~4) for supporting a
authorwoohyun <woohyun>
Wed, 10 Oct 2012 09:15:16 +0000 (09:15 +0000)
committerwoohyun <woohyun@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 10 Oct 2012 09:15:16 +0000 (09:15 +0000)
variety of preediting states.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@77731 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

ChangeLog
NEWS
src/lib/edje_entry.c

index 6f289f8..b2056f9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 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.
diff --git a/NEWS b/NEWS
index ef4a070..6ce0072 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -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.
index 9fc5201..eec75ca 100644 (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