From: Victor Cebollada Date: Tue, 20 Jun 2017 11:21:19 +0000 (+0100) Subject: [3.0] Meitei script added. X-Git-Tag: accepted/tizen/3.0/common/20170714.174703~4 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git;a=commitdiff_plain;h=b7f4674288c70ae0ae4145e4b0610d0aeccd2661 [3.0] Meitei script added. Change-Id: I6233ca73a8a99b4a006353b0e5063c6e4575a98f Signed-off-by: Victor Cebollada --- diff --git a/text/dali/devel-api/text-abstraction/script.cpp b/text/dali/devel-api/text-abstraction/script.cpp index bb73ca9..2314f2d 100644 --- a/text/dali/devel-api/text-abstraction/script.cpp +++ b/text/dali/devel-api/text-abstraction/script.cpp @@ -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; diff --git a/text/dali/devel-api/text-abstraction/script.h b/text/dali/devel-api/text-abstraction/script.h index 9331381..93d1021 100644 --- a/text/dali/devel-api/text-abstraction/script.h +++ b/text/dali/devel-api/text-abstraction/script.h @@ -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. diff --git a/text/dali/internal/text-abstraction/shaping-impl.cpp b/text/dali/internal/text-abstraction/shaping-impl.cpp index 270c406..3eb3488 100644 --- a/text/dali/internal/text-abstraction/shaping-impl.cpp +++ b/text/dali/internal/text-abstraction/shaping-impl.cpp @@ -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