by Michael S. Kaplan, published on 2005/10/07 03:01 -04:00, original URI: http://blogs.msdn.com/b/michkap/archive/2005/10/07/478127.aspx
A few months ago, someone emailed me about some trouble they were having with their Arabic keyboard that had created with MSKLC. They were confused about the fact that none of the letters seemedd to ever shape. I asked them to send me the .KLC file so I could take a look. I went ahead and loaded it up in MSKLC on my machine:
It looked okay, although frankly it looked pretty similar to the Arabic 101 keyboard that has been in Windows.
But then I ran a tool that showed the code points instead of the characters:
Yikes! They were using characters in the Arabic Presentation Forms (A and B). Suddenly it became clear.
You see, Arabic is a language that shapes. So let us take U+0628 (ARABIC LETTER BEH). By itself, it looks like this:
But things change when you combine it. Let us say it is at the beginning of the word, followed by U+062a (ARABIC LETTER TEH):
That character on the far right is the BEH -- see how it looks different now?
Ok, let us say that its surrounded by two different letters, say preceeded by U+062e (ARABIC LETTER KHAH) and followed by U+062a (ARABIC LETTER TEH):
See that BEH in the middle there?
And now to round things out, let us say that the BEH is at the end, say after U+062e (ARABIC LETTER KHAH):
Well, these four forms are known as the ISOLATED, INITIAL, MEDIAL, and FINAL forms.
Now back in the days before fonts were smart enough to do this sort of shaping, many legacy standards were built by actually encoding very possible form for each letter, thus:
ﺏ U+fe8f (ARABIC LETTER BEH ISOLATED FORM)
ﺑ U+fe91 (ARABIC LETTER BEH INITIAL FORM)
ﺒ U+fe92 (ARABIC LETTER BEH MEDIAL FORM)
ﺐ U+fe90 (ARABIC LETTER BEH FINAL FORM)
By combining the correct form with the correct form of KHAH or TEH you can make something look right, sometimes (other times the way they shape will cause these presentation forms to look not quite right). Combining that problem with the need for not quite four times the number of letters, and to train people to type the correct letter depending on where it is in the word, and it is just a nightmare.
If you do not know the language this can be hard to conceptualize. So let us try doing with the Latin script, using cursive writing. It is even more complicated, due to the wide variety of attatchment points.
and so on -- to support English alone in such cases would easily require 1000 or more glyphs, and you would have a really hard time writing without constantly picking the right letters.
So, the rule with presentation forms is that they are "pre-shaped" and thus do not need to be shaped again. But, like Latin, the exact attachment points may not always be the same, so it is best to use the real Arabic letter rather than the presentation forms. It will save you from needing to remember every form before you type a letter.... because as the title says, it cannot always pay to be compatible -- especially when one is being compatible with a hard to use legacy standard....
This post brought to you by "ب" (U+0628, a.k.a. ARABIC LETTER BEH)
# Jonathan on 9 Oct 2005 4:00 AM:
# Michael S. Kaplan on 9 Oct 2005 8:01 AM:
2006/06/01 Presentation forms in Microsoft keyboards?
2006/04/22 Dial 911, code page 864 isn't breathing
2006/01/14 Getting out of the compatibility zone, redux
go to newer or older post, or back to index or month or day