X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Ftext-abstraction%2Fscript.h;h=f79d8ec9c0f6f28311294344e6dd47940c0f8c80;hb=ae2b1c4450434f6da9c25ee245359423f5728ed3;hp=d63e2671c6c585939413248c306c6d5473ef49b0;hpb=f32f04052accfe880a9141d554091d4cfe922d47;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/devel-api/text-abstraction/script.h b/dali/devel-api/text-abstraction/script.h index d63e267..f79d8ec 100644 --- a/dali/devel-api/text-abstraction/script.h +++ b/dali/devel-api/text-abstraction/script.h @@ -19,8 +19,10 @@ */ // INTERNAL INCLUDES +#include #include #include +#include namespace Dali { @@ -100,7 +102,12 @@ enum Script SYMBOLS4, ///< Some symbols. SYMBOLS5, ///< Some symbols. - UNKNOWN ///< The script is unknown. + UNKNOWN, ///< The script is unknown. + EMOJI_TEXT, ///< The Emoji request a text presentation for an emoji character. + EMOJI_COLOR, ///< The Emoji request a color-emoji presentation for an emoji character. + SYMBOLS_NSLCL ///< THe Negative Squared Latin Capital Letter + + //Note: update ScriptName and GetNumberOfScripts when adding new script }; const char* const ScriptName[] = @@ -173,7 +180,10 @@ const char* const ScriptName[] = "SYMBOLS4", ///< Some symbols. "SYMBOLS5", ///< Some symbols. - "UNKNOWN" ///< The script is unknown. + "UNKNOWN", ///< The script is unknown. + "EMOJI_TEXT", ///< The Emoji request a text presentation for an emoji character. + "EMOJI_COLOR", ///< The Emoji request a color-emoji presentation for an emoji character. + "SYMBOLS_NSLCL" ///< THe Negative Squared Latin Capital Letter }; /** @@ -204,6 +214,15 @@ DALI_ADAPTOR_API Script GetCharacterScript(Character character); DALI_ADAPTOR_API bool IsWhiteSpace(Character character); /** + * @brief Whether the character is a space. + * + * @param[in] character The character. + * + * @return @e true if the character is a space. + */ +DALI_ADAPTOR_API bool IsSpace(Character character); + +/** * @brief Whether the character is a new paragraph character. * * @param[in] character The character. @@ -286,6 +305,14 @@ DALI_ADAPTOR_API bool IsCommonScript(Character character); * @return @e true if the script has ligatures that must be 'broken'. */ DALI_ADAPTOR_API bool HasLigatureMustBreak(Script script); + +/** + * @brief Get the number of elements in enum Script + * + * @return returns the number of Scripts + */ +DALI_ADAPTOR_API Length GetNumberOfScripts(); + } // namespace TextAbstraction } // namespace Dali