04-14-2009, 08:18 AM | #1 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Apr 2009
Device: Sony PRS-700BC, Hanlin V3
|
openinkpot and middle eastern languages Arabic, Persian (Farsi)
I was working on creating a reasonably smart parser for eastern languages Arabic, Persian (Farsi) - which have are right to left and depending on the position of the letter in the word, the letter forms change, and are included in Unicode fonts.
My initial direction was to try to figure out the SDK from Jinke and try and write a new parser for Arabic using epub. The second thing i did was study the code of nano-x (http://www.microwindows.org/) which is a lightweight X server which can run on appliance to find out if I can enable the Arabic support right from there. There is a viewer in nano-x which seems quite capable. However as I am getting to know openinkpot more and more now I am wondering if a better approach is to go ahead with this project. Do you have any pointers to give me? Does openinkpot support Arabic intrinsically? |
04-14-2009, 10:36 AM | #2 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Why do you need a parser? If the right Unicode character/glyph are used, all you need is pick it from the font, dont you? (and maybe switch between left-to-right and right-to-left rendering).
|
Advert | |
|
04-14-2009, 02:02 PM | #3 | |
OpenInkpot co-founder
Posts: 407
Karma: 845
Join Date: Dec 2007
Device: Kindle Oasis
|
Quote:
Probably some OI UI is not RTL-aware, and this may be fixed if you point out what need to be fixed. |
|
04-15-2009, 01:58 AM | #4 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Apr 2009
Device: Sony PRS-700BC, Hanlin V3
|
Are OI readers pango enabled?
|
04-15-2009, 03:19 AM | #5 |
OpenInkpot co-founder
Posts: 407
Karma: 845
Join Date: Dec 2007
Device: Kindle Oasis
|
FBreader uses Pango to output text, IIRC. Though it need to be double-checked
|
Advert | |
|
04-15-2009, 03:34 AM | #6 |
OpenInkpot developer
Posts: 211
Karma: 5627
Join Date: Mar 2008
Location: Stuttgart, Germany
Device: N516,V3,PRS505,iLiad,eSlick,E60,K3,K4NT,M90,PB912,KoboMini
|
I've rewritten the rendering part of FBReader using only freetype2, because pango was too slow. Right now RTL languages are not supported. However, I've tried to add RTL rendering and I was able to read hebrew (without nekudot). But it's much harder to render arabic.
|
04-15-2009, 03:40 AM | #7 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Apr 2009
Device: Sony PRS-700BC, Hanlin V3
|
So one has to do what is done in Pango using freetype2 to render Arabic or you would suggest working with pango developers to create a light-weight pango enabled library for ebook readers?
|
04-15-2009, 04:49 AM | #8 |
OpenInkpot co-founder
Posts: 407
Karma: 845
Join Date: Dec 2007
Device: Kindle Oasis
|
Better work with Pango devs -- OI is just a one distribution amongst the horde, and pango optimizations will benefit many (including desktop users).
If you will, please keep us informed |
04-16-2009, 04:53 AM | #9 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Apr 2009
Device: Sony PRS-700BC, Hanlin V3
|
I contacted Pango devs and they believed that I should profile to find where the slowness comes from, could you please let me know where to tweak in OI to enable Pango support to start debugging the slow performance.
|
04-16-2009, 05:07 AM | #10 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Apr 2009
Device: Sony PRS-700BC, Hanlin V3
|
Kdrive as OI X windows system seem to pose some problems rendering complex scripts, have you considered an alternative?
|
04-16-2009, 05:08 AM | #11 |
OpenInkpot co-founder
Posts: 407
Karma: 845
Join Date: Dec 2007
Device: Kindle Oasis
|
Oh SHIT.
NO, WE DID NOT CONSIDER SWITCHING, BECAUSE THIS F**KING X SERVER HAS NOTHING TO DO WITH FONT RENDERING. And I hate explaining it AGAIN and AGAIN. |
04-16-2009, 05:12 AM | #12 |
OpenInkpot developer
Posts: 211
Karma: 5627
Join Date: Mar 2008
Location: Stuttgart, Germany
Device: N516,V3,PRS505,iLiad,eSlick,E60,K3,K4NT,M90,PB912,KoboMini
|
It's in the FBReader: zlibrary/ui/src/ewl/view/ZLEwlPaintContext.cpp.
You can compare it with gtk backend: zlibrary/ui/src/gtk/view/ZLGtkPaintContext.cpp |
04-16-2009, 05:21 AM | #13 |
Enthusiast
Posts: 26
Karma: 10
Join Date: Apr 2009
Device: Sony PRS-700BC, Hanlin V3
|
Really sorry to upset you, And thanks for the pointer for tweaking FBReader.
|
04-16-2009, 05:22 AM | #14 |
OpenInkpot co-founder
Posts: 407
Karma: 845
Join Date: Dec 2007
Device: Kindle Oasis
|
Ok, apologies accepted
Regarding pango speed - it's also possible to build some pango examples and run'em on device to test the speed. |
04-18-2009, 04:58 AM | #15 |
OpenInkpot developer
Posts: 211
Karma: 5627
Join Date: Mar 2008
Location: Stuttgart, Germany
Device: N516,V3,PRS505,iLiad,eSlick,E60,K3,K4NT,M90,PB912,KoboMini
|
ali_sade, here is a simple RTL patch for FBReader: http://users.openinkpot.org/~lunohod/fbreader-rtl.patch
|
Tags |
openinkpot; hanlin; |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to make a PRC book file in Persian (Farsi) | golagha | iRex | 7 | 01-29-2013 09:19 PM |
What should I get? PRS 300/600 or the Nook Wi-Fi?(Middle Eastern User) | PaperConfederacy | Which one should I buy? | 5 | 07-23-2010 07:32 PM |
Hi, I am working on middle eastern lanuages support | ali_sade | Introduce Yourself | 3 | 04-07-2009 08:11 PM |
The Middle Eastern Conflict | gollu | Lounge | 5 | 12-31-2008 04:24 AM |
How can I read Farsi(Persian) Ebooks on my Sony ereader 505 ? | Ha3hem | Sony Reader Dev Corner | 4 | 09-15-2008 07:24 AM |