I don't know what you are talking about.. English also have the same.. discrete and scripting.. r r r and R R R, this is discrete letters like ع ع ع.. and they also have
the same letter connected together and hand writing or computer script.. example Brush Script MT.. and the editor is smart it can recognize when to hook the
letter to the next one.. for example it detects it is (if both connectable and no space between them) ....etc. MS Word is so smart that can perform reverse processing
depending on current situation.. for example if you are writing in Arabic or Urdu or Persian and the last letter is عـ it will print it عـ but if this is the last letter in the word
and you made a space then MS Word will know this was the last later and should be written differently and goes back and change it to ـع - completely transparent to you.
This is the smartness.. but the letters shape themselves are language rules and not smartness.. and all, Arabic, English, Persian and Urdo are the same in having different shapes for a single letter.