-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for RTL cursive languages? (Arabic in particular) #24
Comments
Good suggestion. Arabic was on my mind years ago when working on the layout algorithm. Perhaps you could be a tester for RTL. |
As a side note, another case is traditional Japanese, which is vertical and RTL. |
I'd be glad to help make it happen, and I sincerely appreciate your work.
Yeah but I don't think it's cursive so I think Arabic would require some additional work. |
You're correct. |
I'd be happy to test for Farsi |
Adding support to Arabic automatically extends to include other languages that share the same alphabet and writing characteristics such as Persian, so that's nothing to worry about. |
The general approach would be to negate the advances provided by the font and allow initialization of each line to be onto the opposite side of the page, all controllable by a "right-to-left" mode alternate to "left-to-right" mode. Most of that is already symbolic (variable). Look to see if a font provides any hint about its direction. |
Using the book and font here, i get mostly blank pages with a few printed characters outside the range of Arabic. Need to turn the debug drawing on to see what's up. |
If you're referring to the font you've recently provided in your comment, I've tried it and my DSi device gave the same result I had reported before when I first started this issue (link for it here. Other than that I don't see how I can provide you with more useful information since I'm not that professional in the field of programming nor all that UTF stuff. |
What version of dslibris are you using? |
I'm using this version (v1.5.1). |
I'm on 1.6.0 with some dev changes, which isn't yet released. That's very possibly the reason. |
I don't mean to rush things up but is there any news concerning Arabic development? |
It's not in the cards from my viewpoint. |
Yeah you're right especially with the DS having gotten so old. Anyway, thanks for the great app. |
ref: #31 |
I've been using this app for reading and it's been great but I was wondering if it can view epub files that are in Arabic language (for a bit of context; the Arabic language is an RTL, cursive language).
I managed to view the file using an Arabic font but the letters were from left to right they weren't conjoined as they should be.
Here is a picture of how it appears in the dslibris app (after using the Arabic font) and here is another one showing how it should be (the app used is Lithium for Android and here is the epub file in Arabic that I'm doing my tests on).
The font file I've used to show the letters in dslibris is DroidNaskh.ttf (link provided), without it the letters would show as squares.
If there's any additional information you'd like to know about the case or the language itself that could help you add Arabic support to the app I'd be glad to help.
The text was updated successfully, but these errors were encountered: