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

Go Back   MobileRead Forums > Miscellaneous > Archive > OpenInkpot

Notices

 
 
Thread Tools Search this Thread
Old 04-14-2009, 08:18 AM   #1
ali_sade
Enthusiast
ali_sade began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Apr 2009
Device: Sony PRS-700BC, Hanlin V3
Smile 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?
ali_sade is offline  
Old 04-14-2009, 10:36 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,199
Karma: 4800739
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).
Jellby is online now  
 
Enthusiast
Old 04-14-2009, 02:02 PM   #3
dottedmag
OpenInkpot co-founder
dottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-books
 
dottedmag's Avatar
 
Posts: 402
Karma: 845
Join Date: Dec 2007
Device: Nokia770, Nokia N900, Sony PRS-505, lBook V3, Orsio b721+, Hanvon N516
Quote:
Originally Posted by ali_sade View Post
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.
Not sure what you're trying to achieve. Pango already should support complex scripts rendering, and if it is not, then it's better to work with Pango developers directly to implement it.

Probably some OI UI is not RTL-aware, and this may be fixed if you point out what need to be fixed.
dottedmag is offline  
Old 04-15-2009, 01:58 AM   #4
ali_sade
Enthusiast
ali_sade began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Apr 2009
Device: Sony PRS-700BC, Hanlin V3
Are OI readers pango enabled?
ali_sade is offline  
Old 04-15-2009, 03:19 AM   #5
dottedmag
OpenInkpot co-founder
dottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-books
 
dottedmag's Avatar
 
Posts: 402
Karma: 845
Join Date: Dec 2007
Device: Nokia770, Nokia N900, Sony PRS-505, lBook V3, Orsio b721+, Hanvon N516
FBreader uses Pango to output text, IIRC. Though it need to be double-checked
dottedmag is offline  
Old 04-15-2009, 03:34 AM   #6
lunohod
OpenInkpot developer
lunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toys
 
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.
lunohod is offline  
Old 04-15-2009, 03:40 AM   #7
ali_sade
Enthusiast
ali_sade began at the beginning.
 
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?
ali_sade is offline  
Old 04-15-2009, 04:49 AM   #8
dottedmag
OpenInkpot co-founder
dottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-books
 
dottedmag's Avatar
 
Posts: 402
Karma: 845
Join Date: Dec 2007
Device: Nokia770, Nokia N900, Sony PRS-505, lBook V3, Orsio b721+, Hanvon N516
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
dottedmag is offline  
Old 04-16-2009, 04:53 AM   #9
ali_sade
Enthusiast
ali_sade began at the beginning.
 
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.
ali_sade is offline  
Old 04-16-2009, 05:07 AM   #10
ali_sade
Enthusiast
ali_sade began at the beginning.
 
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?
ali_sade is offline  
Old 04-16-2009, 05:08 AM   #11
dottedmag
OpenInkpot co-founder
dottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-books
 
dottedmag's Avatar
 
Posts: 402
Karma: 845
Join Date: Dec 2007
Device: Nokia770, Nokia N900, Sony PRS-505, lBook V3, Orsio b721+, Hanvon N516
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.
dottedmag is offline  
Old 04-16-2009, 05:12 AM   #12
lunohod
OpenInkpot developer
lunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toys
 
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
lunohod is offline  
Old 04-16-2009, 05:21 AM   #13
ali_sade
Enthusiast
ali_sade began at the beginning.
 
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.
ali_sade is offline  
Old 04-16-2009, 05:22 AM   #14
dottedmag
OpenInkpot co-founder
dottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-booksdottedmag has learned how to read e-books
 
dottedmag's Avatar
 
Posts: 402
Karma: 845
Join Date: Dec 2007
Device: Nokia770, Nokia N900, Sony PRS-505, lBook V3, Orsio b721+, Hanvon N516
Ok, apologies accepted

Regarding pango speed - it's also possible to build some pango examples and run'em on device to test the speed.
dottedmag is offline  
Old 04-18-2009, 04:58 AM   #15
lunohod
OpenInkpot developer
lunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toyslunohod shares his or her toys
 
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
lunohod is offline  
 

Tags
openinkpot; hanlin;

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 08:08 AM.


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