Help Adding Arabic Support to NST

Search This thread

mrhamed

Senior Member
Apr 19, 2014
469
43
My primary language is Persian it's very Arabic like but with some extra chars: گ ژ پ چ anyway... I'm excited read epub file with Persian font. the most famous & free Persian font is Vazir: https://rastikerdar.github.io/vazir-font to utilize the Vazir:
I flashed the "flashable_cwm_framework_nst_1.2.1.zip" then I rename Vazir as "DroidSans.ttf" & "DroidSansFallback.ttf" fonts and copy them to /system/fonts dir, the device reboot successfully but the mantano app does not shown the Persian chars of the epub file :cry: How I can fix it? Can you suggest me an app to support Persian epub please?!
I tried "FBReaderJ.apk" app too and it shown the chars correctly but the words of a sentence is reversed (I tried to fix it by change some setting but it doesn't fix)

I tried with the original nook reader but it has own fonts, How I can change Amasis , Caecilia, Gill-Sans, Malabar fonts ? I tried replace them (or each one) with Vazir font but the nook doesn't boot :(
 

nmyshkin

Recognized Contributor
Nov 21, 2013
2,003
528
My primary language is Persian it's very Arabic like but with some extra chars: گ ژ پ چ anyway... I'm excited read epub file with Persian font. the most famous & free Persian font is Vazir: https://rastikerdar.github.io/vazir-font to utilize the Vazir:
I flashed the "flashable_cwm_framework_nst_1.2.1.zip" then I rename Vazir as "DroidSans.ttf" & "DroidSansFallback.ttf" fonts and copy them to /system/fonts dir, the device reboot successfully but the mantano app does not shown the Persian chars of the epub file :cry: How I can fix it? Can you suggest me an app to support Persian epub please?!
I tried "FBReaderJ.apk" app too and it shown the chars correctly but the words of a sentence is reversed (I tried to fix it by change some setting but it doesn't fix)

I tried with the original nook reader but it has own fonts, How I can change Amasis , Caecilia, Gill-Sans, Malabar fonts ? I tried replace them (or each one) with Vazir font but the nook doesn't boot :(
I can't help much but I can tell you that Mantano only sees custom fonts in /sdcard/Mantano/fonts. So that's where you need to place your font. No need to replace onboard fonts if you are not going to use the stock reader.

However, if there are the equivalents of emphasized fonts (italic, bold), Mantano will default to its native font.

Also, I don't know whether Mantano can be set up for RTL reading, but it's not likely that the framework change would address that.
 
  • Like
Reactions: mrhamed

mrhamed

Senior Member
Apr 19, 2014
469
43
I can't help much but I can tell you that Mantano only sees custom fonts in /sdcard/Mantano/fonts. So that's where you need to place your font. No need to replace onboard fonts if you are not going to use the stock reader.

However, if there are the equivalents of emphasized fonts (italic, bold), Mantano will default to its native font.

Also, I don't know whether Mantano can be set up for RTL reading, but it's not likely that the framework change would address that.
Thank you for your reply,
I placed my fonts to /sdcard/Mantano/fonts/ and reboot device, open the epub file with Mantano Reader Premium v2.2.12 app (has it font selector?!), the book title shown correctly but the page contents doesn't :( the result as same as before:


1641020255478.png

My device is NSTG & I'm using FW.1.2.2.US rooted with NookManager does the "flashable_cwm_framework_nst_1.2.1.zip" compatible with it?!
How I can select specific font in mantano app? such as: from /sdcard/Mantano/fonts/Vazir.ttf
 
Last edited:

nmyshkin

Recognized Contributor
Nov 21, 2013
2,003
528
My device is NSTG & I'm using FW.1.2.2.US rooted with NookManager does the "flashable_cwm_framework_nst_1.2.1.zip" compatible with it?!
How I can select specific font in mantano app? such as: from /sdcard/Mantano/fonts/Vazir.ttf
I do not believe the framework alteration is needed for Mantano Reader. In fact, I'm not sure what it does. I downloaded a copy of the font. Can you post a Persian epub? Everything I have been able to find is a PDF.

Aspects of epub display in Mantano (Font, margins, etc.) are handled with Profiles. When you are in the reader itself, the context menu (tap on the screen) contains (among other things) an icon that looks like a painter's palette. If you tap that you will be given the option to edit the default profile or create a new one. Either way, you will see the font option. See screenshots below.
 

Attachments

  • droid@screen-1.png
    droid@screen-1.png
    58.7 KB · Views: 8
  • droid@screen-2.png
    droid@screen-2.png
    24.2 KB · Views: 8
  • droid@screen-3.png
    droid@screen-3.png
    26.3 KB · Views: 8
  • Like
Reactions: mrhamed

mrhamed

Senior Member
Apr 19, 2014
469
43
Thank you for reply.
Ok, I sent you persian epub book as private message.
The launcher show Persian correctly because the "flashable_cwm_framework_nst_1.2.1.zip" installed
1641070934863.png
 

nmyshkin

Recognized Contributor
Nov 21, 2013
2,003
528
Thank you for reply.
Ok, I sent you persian epub book as private message.
The launcher show Persian correctly because the "flashable_cwm_framework_nst_1.2.1.zip" installed
OK, so the framework mod and the fonts you swapped in /system/fonts is allowing general display of Persian--but apparently not in the stock Reader.
 
  • Like
Reactions: mrhamed

mrhamed

Senior Member
Apr 19, 2014
469
43
I follow your guide and setup fonts in profile and it works! Thank you!
Can you suggest best reader app (with Persian support) for FW 1.2.2 please?
 

nmyshkin

Recognized Contributor
Nov 21, 2013
2,003
528
I follow your guide and setup fonts in profile and it works! Thank you!
Can you suggest best reader app (with Persian support) for FW 1.2.2 please?
I'm afraid I have no idea. If the stock reader will not work, then you are limited to Mantano, FB Reader, Cool Reader, Moon+, and AlReader (I think that's all of them).

I know FB Reader allows custom fonts. I'm pretty sure AlReader does as well. I don't know about the others.

There is also the issue of RTL, athough this is really a cognitive dissonance issue more than a reading issue. The book is going to go from page 1 to the end, but how to go to the next page could be odd. A tap on the right side of the screen might send you back one page, rather than forward. If you use buttons to change pages, these may be reversed. You'd have to look at how much the reader allows you to mix up the tap areas and/or use NTMM to reassign the page turn buttons so they make sense in the context of RTL reading.
 
  • Like
Reactions: mrhamed

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    Sorry for adding the guide so late, been a little busy.

    Adding Arabic support usually involves patching both Framework.jar and libwebcore.so files.

    I found that patching libwebcore.so file causes crashes with the default browser, Gmail and Google reader. I've tried to patch the libwebcore.so manually and automatically using the method mentioned in this website : http://blog.devasque.com/?page_id=11
    But it does not work. Also, Default android browser is buggy at best, so using Opera Mini which supports Arabic won't be a problem.

    1-First you need to have your device rooted with any of the methods here in XDA. Also make sure you have the 1.1 version as I didn't try to add Arabic to 1.0 version.

    2-Make a backup of your whole system using the method found here just in case: http://xdaforums.com/showthread.php?t=1142983
    You can also try CWM backup, but I didn't try it.

    3-Download this file:
    https://rapidshare.com/files/2199861553/Arabic_Support_for_NST.rar
    Extract it, and Using Root Explorer copy the file framework.jar for /system/framework/, and copy the libandroid_runtime.so and libicuuc-arabic.so to /system/lib/
    System might restart during copying files, try again after system has restarted.
    Or
    You can try the CWM flashable zip file:
    https://rapidshare.com/files/1924264561/flashable_cwm_framework.zip
    copy the zip file to sd, boot in CWM, flash file from sd.
    Didn't try the CWM flashable file, but I don't find any reason why it won't work.

    3- Add the Arabic font, I use the DejaVuSans. Can be found here : https://rapidshare.com/files/2414620233/DroidSansFallback.rar
    Using Root Explorer copy the file to /system/fonts/ overwriting the exiting file. Reboot.
    If you don't like the font, use any other Arabic Enabled DroidSansFallback.
    All credits go to madmack.
    2
    Hello,

    Arabic, like Hebrew, is a Right to left Language.
    Android 2.1 does not have support for RTL languages.

    This developer here made an application to modify Framework.jar to add RTL support : http://xdaforums.com/showthread.php?t=907635

    The problem for Arabic is that unlike Hebrew letters are connected in some cases (most cases actually).

    Another developer here add support for Arabic reshaping:
    http://code.google.com/p/arabicresh...com/AzizHuss/ArabicRehaper/ArabicReshape.java

    Arabic support usually is done through modifying libskia.so and libwebcore.so located at /system/lib.

    I don't have any knowledge of how to modify those files and add the ArabicReshaper code to those files.

    Can someone please help with this little project?

    Thanks in advance.
    2
    Have they already figured out Hebrew support then? I would love to have both.

    To add Hebrew you just need to replace the font DroidSansFallback.ttf with any font supporting Hebrew, like for example the DejaVu fonts
    http://dejavu-fonts.org/wiki/Main_Page
    Rename the DejaVuSans.ttf to DroidSansFallback.ttf and push it the device /system/fonts.
    But you won't have RTL support, you'll also get Arabic but without the letters connecting nor the RTL support, it's not much but it's a start.
    2
    dark_hawk

    Thank you a lot for these information, I pray for you to get all you wishes..
    I am finally able to post here..
    Please help me,
    http://xdaforums.com/showpost.php?p=22846906&postcount=1

    I don't really understand what you want. If you're more comfortable writing in Arabic, send me a private message.
    2
    thank you brother, i replaced the font with Aljazeera font v2 , and it looks beautiful, one last thing , i tried to add Arabic keyboard ( actually i tried 3 different apps, but with nothing, what do you think ?


    Try Go Keyboard from the market.

    Download it, move the file apk from data/app/ to system/apps/. The use Nook color tools to switch the keyboard. Then install Arabic Go keyboard for the market.