I want to highlight the the arabic diacretics with but it changes the form of the word,
ك<span style="color:blue">َ</span>تَبَ
and this turns into
كَ تَبَ
but it should be like this:
كَتَبَ
Is there's any way of doing this
I want to highlight the the arabic diacretics with but it changes the form of the word,
ك<span style="color:blue">َ</span>تَبَ
and this turns into
كَ تَبَ
but it should be like this:
كَتَبَ
Is there's any way of doing this
Although the question is different from Partially colored Arabic word in HTML, the basic answer is the same: use the ZERO WIDTH JOINER (ZWJ) character to request for cursive joining, which might not otherwise take place across element boundaries. Using ZWJ multiple times is the safest bet:
ك‍<span style="color:blue">‍َ‍</span>‍تَبَ
This seems to fix the issue in Chrome. In firefox, the problem does not seem to exist, but there is the problem that the diacritic is not colored. For some odd reason, the ZWJ code fixes this, too. On IE 11, the situation is the same but the ZWJ code does not fix the color issue.