Ge'ez (Ethiopic) script added. 87/129487/2
authorVictor Cebollada <v.cebollada@samsung.com>
Tue, 16 May 2017 13:45:45 +0000 (14:45 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 7 Jun 2017 12:55:11 +0000 (12:55 +0000)
Change-Id: If4eb00d531bc65755aa2f1d985f3e9480c4e104c
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
text/dali/devel-api/text-abstraction/script.cpp
text/dali/devel-api/text-abstraction/script.h
text/dali/internal/text-abstraction/shaping-impl.cpp

index e0e4c26..3fbe6d1 100644 (file)
@@ -232,6 +232,12 @@ Script GetCharacterScript( Character character )
   // 0x1b80 - 0x1bbf Sundanese
   // 0x1cc0 - 0x1ccf Sundanese supplement
 
+  // Ge'ez script (Ethiopic)
+  // 0x1200 - 0x137f Ethiopic
+  // 0x1380 - 0x139f Ethiopic supplement
+  // 0x2d80 - 0x2ddf Ethiopic Extended
+  // 0xab00 - 0xab2f Ethiopic Extended-A
+
   // The Emoji which map to standardized Unicode characters
   // 1. Emoticons ( 1F601 - 1F64F )
   // 2. Dingbats ( 2702 - 27B0 )
@@ -438,6 +444,14 @@ Script GetCharacterScript( Character character )
         {
           return HANGUL;
         }
+        if( ( 0x1200 <= character ) && ( character <= 0x137f ) )
+        {
+          return GEEZ;
+        }
+        if( ( 0x1380 <= character ) && ( character <= 0x139f ) )
+        {
+          return GEEZ;
+        }
         if( ( 0x1780 <= character ) && ( character <= 0x17ff ) )
         {
           return KHMER;
@@ -602,6 +616,10 @@ Script GetCharacterScript( Character character )
         {
           return GEORGIAN;
         }
+        if( ( 0x2d80 <= character ) && ( character <= 0x2ddf ) )
+        {
+          return GEEZ;
+        }
         if( ( 0x2de0 <= character ) && ( character <= 0x2dff ) )
         {
           return CYRILLIC;
@@ -699,6 +717,10 @@ Script GetCharacterScript( Character character )
         {
           return JAVANESE;
         }
+        if( ( 0xab00 <= character ) && ( character <= 0xab2f ) )
+        {
+          return GEEZ;
+        }
         if( ( 0xab30 <= character ) && ( character <= 0xab6f ) )
         {
           return LATIN;
index 163aae2..ba272bf 100644 (file)
@@ -91,6 +91,8 @@ enum Script
   JAVANESE,      ///< The Javanese script. Used by the Javanese language.
   SUNDANESE,     ///< The Sundanese script. Used by the Sundanese language.
 
+  GEEZ,          ///< The Ge'ez script. Used by the Amharic, Tigrinya and other languages in Ethiopia and Eritrea.
+
   EMOJI,         ///< The Emoji which map to standardized Unicode characters.
 
   SYMBOLS1,      ///< Some symbols.
@@ -159,6 +161,8 @@ const char* const ScriptName[] =
   "JAVANESE",      ///< The Javanese script. Used by the Javanese language.
   "SUNDANESE",     ///< The Sundanese script. Used by the Sundanese language.
 
+  "GEEZ",          ///< The Ge'ez script also known as Ethiopic. Used by the Amharic, Tigrinya and other languages in Ethiopia and Eritrea.
+
   "EMOJI",         ///< The Emoji which map to standardized Unicode characters.
 
   "SYMBOLS1",      ///< Some symbols.
index 3df10a2..e7380d2 100644 (file)
@@ -97,6 +97,8 @@ const hb_script_t SCRIPT_TO_HARFBUZZ[] =
   HB_SCRIPT_JAVANESE,
   HB_SCRIPT_SUNDANESE,
 
+  HB_SCRIPT_ETHIOPIC,
+
   HB_SCRIPT_UNKNOWN, // EMOJI
   HB_SCRIPT_UNKNOWN, // SYMBOLS1
   HB_SCRIPT_UNKNOWN, // SYMBOLS2