From e5efd5292e51271e5cc391eef288169a11797a3b Mon Sep 17 00:00:00 2001 From: "Jinho, Lee" Date: Thu, 8 Jun 2017 20:28:52 +0900 Subject: [PATCH] Ol_chiki and Baybayin scripts added Change-Id: I07f25309e36ab0d051a8f114161db5eef9179d7c --- text/dali/devel-api/text-abstraction/script.cpp | 14 ++++++++++++++ text/dali/devel-api/text-abstraction/script.h | 4 ++++ text/dali/internal/text-abstraction/shaping-impl.cpp | 2 ++ 3 files changed, 20 insertions(+) diff --git a/text/dali/devel-api/text-abstraction/script.cpp b/text/dali/devel-api/text-abstraction/script.cpp index 3fbe6d1..bb73ca9 100644 --- a/text/dali/devel-api/text-abstraction/script.cpp +++ b/text/dali/devel-api/text-abstraction/script.cpp @@ -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; diff --git a/text/dali/devel-api/text-abstraction/script.h b/text/dali/devel-api/text-abstraction/script.h index ba272bf..9331381 100644 --- a/text/dali/devel-api/text-abstraction/script.h +++ b/text/dali/devel-api/text-abstraction/script.h @@ -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. diff --git a/text/dali/internal/text-abstraction/shaping-impl.cpp b/text/dali/internal/text-abstraction/shaping-impl.cpp index e7380d2..270c406 100644 --- a/text/dali/internal/text-abstraction/shaping-impl.cpp +++ b/text/dali/internal/text-abstraction/shaping-impl.cpp @@ -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 -- 2.7.4