[unsafe-to-concat] Adjust Arabic joining logic

Test failures done one more. Fixed the mongolian-variation-selector
test.  Another test case:

$ util/hb-shape NotoSansArabic-Regular.ttf -u 628,200c,628 --show-flags --verify
This commit is contained in:
Behdad Esfahbod 2022-01-21 15:17:40 -07:00
parent 48c5f26199
commit 235c3a1295
1 changed files with 4 additions and 0 deletions

View File

@ -321,6 +321,10 @@ arabic_joining (hb_buffer_t *buffer)
info[prev].arabic_shaping_action() = entry->prev_action;
buffer->unsafe_to_break (prev, i + 1);
}
else if (2 <= state && state <= 5) /* States that have a possible prev_action. */
{
buffer->unsafe_to_concat (prev, i + 1);
}
info[i].arabic_shaping_action() = entry->curr_action;