Inserting HTML tag in the middle of Arabic word breaks word connection (cursive)

后端 未结 2 837
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-01 04:52

From wikipedia:

Cursive (from Latin curro, currere, cucurri, cursum, to run, hasten) is any style of handwriting that is designed for writing notes an

2条回答
  •  难免孤独
    2020-12-01 05:25

    I'm not sure if there's any HTML way to do it, but you can fix it by adding a zero-width joiner Unicode character before the opening span tag:

    كت‍ب

    You can use the actual Unicode character instead of the HTML character entity, of course, but that wouldn't be visible here. Or you can use the prettier entity.

    Here it is in action (using an invisible tag, since I can't do color here), without the joiner:

    كتب

    and with the joiner:

    كت‍ب

    It's supposed to work without the joiner as far as I understand it, though, and it does in some browsers, but clearly not all of them.

提交回复
热议问题