Quote:
Originally Posted by Bassam Jarad
About the other problem of changing the letters shapes according to their locations. Is there a way to let the Kindle show a specific glyph instead of providing it with a letter?
|
Since the Simplified Arabic fonts support the
Arabic Presentation Forms-B Unicode block (0xFE80-0xFEFC), you could theoretically encode the Arabic text using initial, medial, final and isolated letters.
However, then you'd also need to code your own contextual shaping algorithm that picks the correct letter forms depending on the position of the letter in the word.
For example you'd need to encode "غير مسؤول" as follows:
ﻝﻭﺆﺴﻣ ﺮﻴﻏ
(Lam-Waw-WawHamza-Seen-Meem Reh-Yeh-Ghain)
However, you'd get exactly the same result by simply rearranging the words. For example, if you compile the following test dictionary with Mobipocket Creator, it will display the two Arabic words in both entries in the correct order.
Code:
<html>
<body>
<idx:entry>
<b><idx:orth>irresponsible</idx:orth></b><br/ >
ﻝﻭﺆﺴﻣ ﺮﻴﻏ<br/ >
(Unicode Arabic Presentation Forms-B)
</idx:entry>
<br/><br/>
<hr/>
<idx:entry>
<b><idx:orth>inaccurate</idx:orth></b><br/ >
دقيق غير<br/ >
(Unicode Arabic: regular characters, reversed word order)
</idx:entry>
<br/><br/>
<hr/>
</body>
</html>