be less aggressive inserting LTR following bidi #850

pull/1050/head
nick black 4 years ago committed by Nick Black
parent 4466f1aaff
commit 23bd4a2ac8

@ -910,7 +910,8 @@ egc_rtl(const char* egc, int* bytes){
if(r == (size_t)-1 || r == (size_t)-2){
return NULL;
}
if(!uc_bidi_category(w)){ // FIXME too aggressive, counts punctuation etc
const int bidic = uc_bidi_category(w);
if(bidic != UC_BIDI_R && bidic != UC_BIDI_RLE && bidic != UC_BIDI_RLO){
return NULL;
}
// insert U+200E, "LEFT-TO-RIGHT MARK". This ought reset the text direction

Loading…
Cancel
Save