Arabic is a cursive language; its letters must be joined to form words. This entails that they change their shapes. The change in shape is not straightforward, as a letter can have three different shapes: one at the beginning of the word, one in the middle of the word, and one at…