When styling (e.g. with colors) Arabic letters, they may not join in some rendering tools. For exemple, in Firefox letters joins but not in Safari or Chrome.
Arabic presentation forms (FE70-FEFC or FB50-FDFF), even if deprecated by Unicode, may helps solve this problem.
المغرب
المغرب (should be instead of )
المغرب
( should be instead of ) Note the two colors on Lam +
Meem
اﻟﻣﻐﺮب (should be )
اﳌﻐﺮب (should be ) Note the same colors on Lam + Meem
ا ل م غ ر ب (should be instead of or )
abcd
a b c d