View Single Post
Old 04-29-2012, 10:10 AM   #4
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Bassam Jarad View Post
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/ > 
	&#xfedd;&#xfeed;&#xfe86;&#xfeb4;&#xfee3; &#xfeae;&#xfef4;&#xfecf;<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>
Doitsu is offline   Reply With Quote