The last two rows below should be identical.

isolatedinitialmedialfinal
ع
عع‍‍ع‍‍ع

The two lines below should be identical.

ععع
ع‍‍ع‍‍ع