evas textblock: support ZWJ, ZWNJ, LRM, RLM in escaped form 81/149481/1
authorYoungbok Shin <youngb.shin@samsung.com>
Mon, 11 Sep 2017 05:53:04 +0000 (08:53 +0300)
committerYoungbok Shin <youngb.shin@samsung.com>
Tue, 12 Sep 2017 09:24:17 +0000 (18:24 +0900)
Summary:
The patch supports the following escaped string from Evas Textblock.
These unicodes are frequently used.
ZWNJ U+200C - &zwnj;
ZWJ  U+200D - &zwj;
LRM  U+200E - &lrm;
RLM  U+200F - &rlm;
@feature

Test Plan: N/A

Reviewers: raster, cedric, herdsman, jpeg, woohyun

Differential Revision: https://phab.enlightenment.org/D5173

Change-Id: I782ec01a4b21906c64727a9792706c108c5199be

src/lib/evas/canvas/evas_object_textblock.c

index e2113cd..b5c76d1 100644 (file)
@@ -1105,6 +1105,10 @@ static const char escape_strings[] =
 "&dagger;\0"   "\xe2\x80\xa0\0"
 "&Dagger;\0"   "\xe2\x80\xa1\0"
 "&bull;\0"     "\xe2\x80\xa2\0"
+"&zwnj;\0"     "\xe2\x80\x8c\0"
+"&zwj;\0"      "\xe2\x80\x8d\0"
+"&lrm;\0"      "\xe2\x80\x8e\0"
+"&rlm;\0"      "\xe2\x80\x8f\0"
 ;
 
 /**