// 6b. Additional transport and map symbols ( 1F681 - 1F6C5 )
// 6c. Other additional symbols ( 1F30D - 1F567 )
+ if( IsCommonScript( character ) )
+ {
+ return COMMON;
+ }
+
if( character <= 0x0cff )
{
if( character <= 0x09ff )
return CHAR_TS == character;
}
+bool IsCommonScript( Character character )
+{
+ return ( IsWhiteSpace( character ) ||
+ IsZeroWidthNonJoiner( character ) ||
+ IsZeroWidthJoiner( character ) ||
+ IsZeroWidthSpace( character ) ||
+ IsLeftToRightMark( character ) ||
+ IsRightToLeftMark( character ) ||
+ IsThinSpace( character ) ||
+ IsNewParagraph( character ) );
+}
+
} // namespace TextAbstraction
} // namespace Dali
*/
enum Script
{
+ COMMON, ///< Valid for all scripts. i.e white space or '\n'.
+
CYRILLIC, ///< The Cyrillic script. Used by Russian, Bulgarian, Ukrainian, Macedonian, ...
GREEK, ///< The Greek script. Used by Greek.
LATIN, ///< The latin script. Used by many western languages and others around the world.
const char* const ScriptName[] =
{
+ "COMMON", ///< Valid for all scripts. i.e white space or '\n'.
+
"CYRILLIC", ///< The Cyrillic script. Used by Russian, Bulgarian, Ukrainian, Macedonian, ...
"GREEK", ///< The Greek script. Used by Greek.
"LATIN", ///< The latin script. Used by many western languages and others around the world.
*/
DALI_IMPORT_API bool IsThinSpace( Character character );
+/**
+ * @brief Whether the character is common within all scripts.
+ *
+ * @param[in] character The character.
+ *
+ * @return @e true if the character is common within all scripts.
+ */
+DALI_IMPORT_API bool IsCommonScript( Character character );
+
} // namespace TextAbstraction
} // namespace Dali