Evas language: Split to script even if there's no Harfbuzz.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 2 May 2011 09:27:56 +0000 (09:27 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 2 May 2011 09:27:56 +0000 (09:27 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@59108 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/language/evas_language_utils.c

index bf48be2..0c1145c 100644 (file)
@@ -64,7 +64,6 @@ evas_common_language_script_end_of_run_get(const Eina_Unicode *str,
       const Evas_BiDi_Paragraph_Props *bidi_props, size_t start, int len)
 {
    /* FIXME: Use the standard segmentation instead */
-#ifdef OT_SUPPORT
    Evas_Script_Type first = EVAS_SCRIPT_UNKNOWN;
    int i;
    for (i = 0 ; i < len ; i++, str++)
@@ -83,7 +82,7 @@ evas_common_language_script_end_of_run_get(const Eina_Unicode *str,
              break;
           }
      }
-# ifdef BIDI_SUPPORT
+#ifdef BIDI_SUPPORT
      {
         int bidi_end;
         bidi_end = evas_bidi_end_of_run_get(bidi_props, start, len);
@@ -92,21 +91,10 @@ evas_common_language_script_end_of_run_get(const Eina_Unicode *str,
              i = (i < bidi_end) ? i : bidi_end;
           }
      }
-# else
-   (void) bidi_props;
-   (void) start;
-# endif
-   return (i < len) ? i : 0;
-#elif defined(BIDI_SUPPORT)
-   (void) str;
-   return evas_bidi_end_of_run_get(bidi_props, start, len);
 #else
    (void) bidi_props;
-   (void) start;
-   (void) str;
-   (void) len;
-   return 0;
 #endif
+   return (i < len) ? i : 0;
 }
 
 Evas_Script_Type