add partial support of Arabic reshaping on Linux

This commit is contained in:
Jinhao
2020-03-26 01:41:32 +08:00
parent b46966bf02
commit c9b9451443
5 changed files with 363 additions and 28 deletions

View File

@@ -606,6 +606,11 @@ namespace nana
return reordered;
}
bool unicode_bidi::is_text_right(const entity& e)
{
return ((e.bidi_char_type != unicode_bidi::bidi_char::L) && (e.level & 1));
}
unsigned unicode_bidi::_m_paragraph_level(const char_type * begin, const char_type * end)
{
for(const char_type* i = begin; i != end; ++i)