Why do Arabic characters behave as separate characters when styling single Arabic character?

后端 未结 6 1417
心在旅途
心在旅途 2020-12-31 06:56

Basically what I am trying to accomplish is Arabic characters misuse highlighter !

To make it easy for understand I will try to explain a similar functionality but f

6条回答
  •  甜味超标
    2020-12-31 07:33

    As Jukka K. Korpela indicated, This is mostly a bug in most WebKit-based browsers(chrome, safari, etc).

    A simple hack other than the TAMDEED char or getting contextual forms for Arabic letters would be to put the zero-width-joiner ( or ) before/after the letter you want to be treated as single Arabic ligature - two chars making up another one. e.g.

    عرب‍‍ي

    demo: jsfiddle
    see also the webkit bug report.

提交回复
热议问题