[3.0] Meitei script added. 91/134991/2
authorVictor Cebollada <v.cebollada@samsung.com>
Tue, 20 Jun 2017 11:21:19 +0000 (12:21 +0100)
committerVictor Cebollada <v.cebollada@samsung.com>
Tue, 20 Jun 2017 13:23:34 +0000 (14:23 +0100)
Change-Id: I6233ca73a8a99b4a006353b0e5063c6e4575a98f
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 bb73ca9..2314f2d 100644 (file)
@@ -244,6 +244,10 @@ Script GetCharacterScript( Character character )
   // Ol Chiki Script
   // 0x1c50 - 0x1c7f Ol Chiki
 
+  // Meitei Script
+  // 0xabc0 - 0xabff Meetei Mayek
+  // 0xaae0 - 0xaaff Meetei Mayek Extensions
+
   // The Emoji which map to standardized Unicode characters
   // 1. Emoticons ( 1F601 - 1F64F )
   // 2. Dingbats ( 2702 - 27B0 )
@@ -739,6 +743,14 @@ Script GetCharacterScript( Character character )
         {
           return LATIN;
         }
+        if( ( 0xaae0 <= character ) && ( character <= 0xaaff ) )
+        {
+          return MEITEI;
+        }
+        if( ( 0xabc0 <= character ) && ( character <= 0xabff ) )
+        {
+          return MEITEI;
+        }
         if( ( 0xac00 <= character ) && ( character <= 0xd7af ) )
         {
           return HANGUL;
index 9331381..93d1021 100644 (file)
@@ -94,6 +94,7 @@ enum Script
   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.
+  MEITEI,        ///< The Meitei script used for the Meitei language in Manipur, India.
 
   EMOJI,         ///< The Emoji which map to standardized Unicode characters.
 
@@ -166,6 +167,7 @@ const char* const ScriptName[] =
   "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.
+  "MEITEI",        ///< The Meitei script used for the Meitei language in Manipur, India.
 
   "EMOJI",         ///< The Emoji which map to standardized Unicode characters.
 
index 270c406..3eb3488 100644 (file)
@@ -100,6 +100,7 @@ const hb_script_t SCRIPT_TO_HARFBUZZ[] =
   HB_SCRIPT_ETHIOPIC,
   HB_SCRIPT_OL_CHIKI,
   HB_SCRIPT_TAGALOG,
+  HB_SCRIPT_MEETEI_MAYEK,
 
   HB_SCRIPT_UNKNOWN, // EMOJI
   HB_SCRIPT_UNKNOWN, // SYMBOLS1