The last two rows below should be identical.

isolatedinitialmedial
ع
عع‍‍ع‍

The two lines below should be identical.

ععع
ع‍‍ع‍‍ع