[3.0] Ol_chiki and Baybayin scripts added 17/135017/1
authorJinho, Lee <jeano.lee@samsung.com>
Thu, 8 Jun 2017 11:28:52 +0000 (20:28 +0900)
committerVictor Cebollada <v.cebollada@samsung.com>
Tue, 20 Jun 2017 13:23:05 +0000 (14:23 +0100)
Change-Id: I07f25309e36ab0d051a8f114161db5eef9179d7c

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 3fbe6d1..bb73ca9 100644 (file)
@@ -238,6 +238,12 @@ Script GetCharacterScript( Character character )
   // 0x2d80 - 0x2ddf Ethiopic Extended
   // 0xab00 - 0xab2f Ethiopic Extended-A
 
+  // Baybayin Script
+  // 0x1700 - 0x171f Baybayin
+
+  // Ol Chiki Script
+  // 0x1c50 - 0x1c7f Ol Chiki
+
   // The Emoji which map to standardized Unicode characters
   // 1. Emoticons ( 1F601 - 1F64F )
   // 2. Dingbats ( 2702 - 27B0 )
@@ -452,6 +458,10 @@ Script GetCharacterScript( Character character )
         {
           return GEEZ;
         }
+        if( ( 0x1700 <= character ) && ( character <= 0x171f ) )
+        {
+          return BAYBAYIN;
+        }
         if( ( 0x1780 <= character ) && ( character <= 0x17ff ) )
         {
           return KHMER;
@@ -464,6 +474,10 @@ Script GetCharacterScript( Character character )
         {
           return SUNDANESE;
         }
+        if( ( 0x1c50 <= character ) && ( character <= 0x1c7f ) )
+        {
+          return OL_CHIKI;
+        }
         if( ( 0x1cc0 <= character ) && ( character <= 0x1ccf ) )
         {
           return SUNDANESE;
index ba272bf..9331381 100644 (file)
@@ -92,6 +92,8 @@ enum Script
   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.
+  OL_CHIKI,      ///< The Ol Chiki script. Used by the Santali.
+  BAYBAYIN,      ///< The Baybayin script. Used by the Tagalog, Bikol languages, Ilocano, Pangasinan, Visayan and other languages in Philippines.
 
   EMOJI,         ///< The Emoji which map to standardized Unicode characters.
 
@@ -162,6 +164,8 @@ const char* const ScriptName[] =
   "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.
+  "OL_CHIKI",      ///< The Ol Chiki script. Used by the Santali.
+  "BAYBAYIN",      ///< The Baybayin script. Used by the Tagalog, Bikol languages, Ilocano, Pangasinan, Visayan and other languages in Philippines.
 
   "EMOJI",         ///< The Emoji which map to standardized Unicode characters.
 
index e7380d2..270c406 100644 (file)
@@ -98,6 +98,8 @@ const hb_script_t SCRIPT_TO_HARFBUZZ[] =
   HB_SCRIPT_SUNDANESE,
 
   HB_SCRIPT_ETHIOPIC,
+  HB_SCRIPT_OL_CHIKI,
+  HB_SCRIPT_TAGALOG,
 
   HB_SCRIPT_UNKNOWN, // EMOJI
   HB_SCRIPT_UNKNOWN, // SYMBOLS1