Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-29-2011, 12:25 PM   #1
Doitsu
Wizard
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: 1,990
Karma: 4633978
Join Date: Dec 2010
Device: Kindle PW2
Arabic support in Duokan/Duokan Lite?

I'm interested in Arabic epubs and wanted to give Duokan a try after both CoolReader and FBKindle failed. But so far I was unsuccessful in installing Duokan Lite on my Kindle 3.3 system.
Before I do a factory reset, I'd appreciate it if someone who has either Duokan or Duokan Lite installed could open my epub and test the rendering of the Arabic text for me.

The first two lines should read:

Arabic pangram

نص حكيم له سر قاطع وذو شأن عظيم مكتوب على ثوب أخضر ومغلف بجلد أزرق


(The Arabic text is one of the Arabic equivalents of "The quick brown fox...")

If you see question marks or disjointed letters, it means that Arabic is not supported.
Attached Files
File Type: epub RTL_Test_Sheherazade.epub (112.2 KB, 334 views)
Doitsu is offline   Reply With Quote
Old 10-29-2011, 01:38 PM   #2
thomass
Wizard
thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.
 
Posts: 1,642
Karma: 1928001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
Quote:
Originally Posted by Doitsu View Post
I'm interested in Arabic epubs and wanted to give Duokan a try after both CoolReader and FBKindle failed. But so far I was unsuccessful in installing Duokan Lite on my Kindle 3.3 system.
Before I do a factory reset, I'd appreciate it if someone who has either Duokan or Duokan Lite installed could open my epub and test the rendering of the Arabic text for me.

The first two lines should read:

Arabic pangram

نص حكيم له سر قاطع وذو شأن عظيم مكتوب على ثوب أخضر ومغلف بجلد أزرق


(The Arabic text is one of the Arabic equivalents of "The quick brown fox...")

If you see question marks or disjointed letters, it means that Arabic is not supported.
I used traditional arabic font and DLite displayed it correctly
Attached Images
File Type: bmp 20110731012021.bmp (469.8 KB, 425 views)

Last edited by thomass; 10-29-2011 at 01:42 PM.
thomass is offline   Reply With Quote
Old 10-29-2011, 02:16 PM   #3
Doitsu
Wizard
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: 1,990
Karma: 4633978
Join Date: Dec 2010
Device: Kindle PW2
Thanks for your quick test, thomass! I'll give Duokan Lite a try.

Quote:
Originally Posted by thomass View Post
I used traditional arabic font and DLite displayed it correctly
Actually, I embedded an Arabic font in the epub. Theoretically, an ePub reader should be able to display it without having to specify a font. ADE does, but doesn't do RTL and character shaping. I'll do some more tests once I get Duokan Lite running.
Doitsu is offline   Reply With Quote
Old 10-30-2011, 05:33 PM   #4
bchaplin
Member
bchaplin began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Oct 2009
Location: Boston, MA
Device: iPhone, K3 (Kindle Keyboard)
Please let me know if you do get it to work. I'd be interested in installing both Arabic and Hebrew fonts on my Kindle, if it's possible & if they could be resized like regular fonts. It surprises me a lot that we have to 'hack' the Kindle for this; it is a very mature platform at this point. On my little iPhone I can read or type in any alphabet I could possibly need.
bchaplin is offline   Reply With Quote
Old 10-31-2011, 06:35 AM   #5
Matan
Enthusiast
Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'
 
Posts: 42
Karma: 39430
Join Date: May 2011
Device: none
How exactly did FBReader fail?

I tried this file and it displayed (to my untrained eye) exactly what you wanted. FBReader does not recognize the epub as Arabic, and thus displays it left aligned, but manually setting the language solves this issue. I don't know if the font used is from the epub, or a font installed on my system.

This might be a problem in your epub, since I have two Hebrew epubs, and FBReader does recognize their language as Hebrew.
Matan is offline   Reply With Quote
Old 10-31-2011, 07:25 AM   #6
Doitsu
Wizard
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: 1,990
Karma: 4633978
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Matan View Post
How exactly did FBReader fail?
It did display Arabic letters, but they were displayed isolated and from left to right. I.e. it behaved exactly as ADE. (I did change the language to Arabic.)

BTW, I did my tests with Andy Wooden's fbKindle (FBReader 0.12.10)

Please find attached a screenshot that illustrates the problem. The letters should have looked like this:

نص حكيم له سر قاطع وذو شأن عظيم مكتوب على ثوب أخضر ومغلف بجلد أزرق
Attached Images
File Type: bmp fbKindle.bmp (234.5 KB, 331 views)
Doitsu is offline   Reply With Quote
Old 10-31-2011, 08:19 AM   #7
Doitsu
Wizard
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: 1,990
Karma: 4633978
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by bchaplin View Post
Please let me know if you do get it to work. I'd be interested in installing both Arabic and Hebrew fonts on my Kindle[...]
Hebrew seems to work, too. I just tested it with a Hebrew pangram. But since it has been ages since I last looked at a Hebrew text I'm not 100% sure.

Please find attached a simple Hebrew test .epub and a screen capture that shows the Kindle display.

BTW, my installation on a Kindle 3.3 WiFi went as follows:

1. I backed up all my Kindle ebooks and uninstalled the jailbreak
2. I downloaded Lite1014.1225.rtm.rar from here
3. I copied the DK_System folder from the archive to the Kindle root directory
4. I copied the large update_duokan_0b008.bin from the 升级包\k3升级包\kindle3.2.1升级包\ folder to the Kindle root directory (If you don't have a WiFi model, you'll have to pick one of the other .bin files.)
5. I started the firmware update (Settings > Update Your Kindle)
6. After the update was complete, Duokan Lite displayed the Chinese welcome screen. After a while I figured out that I had to select the 5th menu item [S] in the rightmost menu to change the language to English.
7. I connected the Kindle to the computer and copied Arial.ttf from my PC to the \DK_System\Lite\res\userfonts folder. (Arial supports both Arabic and Hebrew).
Attached Images
File Type: bmp ivrit.bmp (234.5 KB, 379 views)
Attached Files
File Type: epub Ivrit.epub (2.1 KB, 213 views)

Last edited by Doitsu; 12-18-2011 at 07:27 AM.
Doitsu is offline   Reply With Quote
Old 10-31-2011, 09:07 AM   #8
bchaplin
Member
bchaplin began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Oct 2009
Location: Boston, MA
Device: iPhone, K3 (Kindle Keyboard)
Doitsu, thank you for the step-by-step! I will try this.
bchaplin is offline   Reply With Quote
Old 10-31-2011, 09:38 AM   #9
Matan
Enthusiast
Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'
 
Posts: 42
Karma: 39430
Join Date: May 2011
Device: none
This is how it looks on my kindle. If it is OK (please check), we can try to find out the difference between your and my setups.
Attached Thumbnails
Click image for larger version

Name:	screenshot.bmp.png
Views:	464
Size:	9.2 KB
ID:	78425  
Matan is offline   Reply With Quote
Old 10-31-2011, 10:02 AM   #10
Doitsu
Wizard
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: 1,990
Karma: 4633978
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Matan View Post
This is how it looks on my kindle. If it is OK (please check), we can try to find out the difference between your and my setups.
The text in your screen capture looks exactly as it should be. Most likely we're using different software versions.

I downloaded fbKindle from here, because I assumed that this is the latest version.

If yours is more up-to-date or you're using a different version, please let me know where you downloaded it from and I'll re-test FBReader.
Doitsu is offline   Reply With Quote
Old 10-31-2011, 10:48 AM   #11
Matan
Enthusiast
Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'Matan can spell AND pronounce 'liseuse.'
 
Posts: 42
Karma: 39430
Join Date: May 2011
Device: none
The font I use is arial.ttf. I copied it to the directory /mnt/us/fbKindle/qtKindle/lib/fonts, and selected family Arial in the Styles tab in Options dialog. Can you try to use the same font?

I use the same distribution of fbKindle, but I replaced the FBReader binary with one I compiled that fixes some line breaking issues in RTL texts. You can download it from here. The downloaded file FBReader should replace the file /mnt/us/fbKindle/FBReader .
Matan is offline   Reply With Quote
Old 11-28-2011, 04:46 PM   #12
Doitsu
Wizard
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: 1,990
Karma: 4633978
Join Date: Dec 2010
Device: Kindle PW2
I tested Matan's custom version and can confirm that it indeed displays Arabic correctly.

Last edited by Doitsu; 11-28-2011 at 04:50 PM.
Doitsu is offline   Reply With Quote
Reply

Tags
arabic, duokan, hebrew, kindle, rtl

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tools Duokan 2013 thomass Kindle Developer's Corner 1392 09-15-2014 05:31 AM
Duokan Lite released by duokan.com, English menus? Nigovic Kindle Developer's Corner 7 02-18-2013 08:08 AM
Duokan Lite? h1uke Kindle Developer's Corner 61 02-01-2013 08:30 AM
Updated to Duokan Lite 1014.1225, launchpad stopped working! Help! linnx88 Amazon Kindle 6 10-29-2011 12:36 AM
Duokan Bugs FethryDuck Kindle Developer's Corner 2 11-12-2010 12:34 PM


All times are GMT -4. The time now is 10:06 PM.


MobileRead.com is a privately owned, operated and funded community.