quran / quran_android

a quran reading application for android
http://android.quran.com
GNU General Public License v3.0
2.01k stars 889 forks source link

New Madina Mushaf print images #575

Closed khalid-hussain closed 5 years ago

khalid-hussain commented 9 years ago

Assalamuʻalaikum,

I would like to ask if there are any plans for incorporating the newer Madina mushaf images? The images can be generated by downloading the vector (Adobe Illustrator) files from King Fahad Glorious Quran Printing Complex's website and processing them using Inkscape to create bitmaps.

I have attached a resized page from Surah Baqarah for reference: page - copy

ahmedre commented 9 years ago

wa3laikum alsalam, in theory, could do this, but likely would be another app (just like we did with Naskh and Qaloon), since replacing the images in Quran now will cause people to be in an uproar :) well, either another app, or another app for "old Madani style" and this being the new one moving forward, but probably less complaints from users to just make new madani a new app.

in any case, wouldn't even need to process their images, because i have permission from the brother who wrote Ayah on iOS to use the pages for Android (see Ayah for Android as an example).

perhaps one day insha'Allah, we'll have a "choose page type" and merge all the various Quran apps into one with settings, but for now, probably a new app with the new images makes sense. walsalam 3alaikum.

hatimarqam commented 8 years ago

Assalam alikom, Dear Mr.Ahmed, how can we use ayah-detection to generate ayahinfo.db for qurancomplex pages. Hope your nice help.

ahmedre commented 8 years ago

wa3laikum alsalam, i am actually planning on doing this insha'Allah sometime in the near future insha'Allah (and already have pages and data for this) - if you want to do it yourself, please see the instructions in the ayah-detection repository here - they're a bit incomplete and would need some tweaking, but they do generally work. walsalam 3alaikum.

muktyas commented 8 years ago

Assalaamu'alaikum wa rahmatullaah wa barakaatuh. Ahmedre, i hope this can be realize soon.. Barakallaahu fik. :)

ahmedre commented 8 years ago

wa3laikum alsalam wa ra7matullahi wa barakatuh, actually pretty straight forward to do this (i have all the data already al7amdulillah and the pages and permission to use them), but i am just trying to figure out the best strategy for the app overall moving forward - whether to move the whole page selection concept into the app (so there's just a single app instead of an app for each flavor, and people can choose what page(s) to download). walsalam 3alaikum.

om4rawad commented 7 years ago

Is this still in the picture (no pun intended) :)?

hatimarqam commented 7 years ago

Alhamdulillah , finally I did it. We downloaded AI images from quran complex website then exported to the main sizes : 512 , 800 , 1024 , 1260 then generated ayahinfo.db using ayah-detection project. I would like to share the result. So, I'm preparing to upload all the data on a host and give you the links.

hatimarqam commented 7 years ago

Many thanks for Mr.ahmedre and all androidquran team Jazakom Allah khayran

dajdouj10 commented 7 years ago

how generated ayahinfo.db using ayah-detection project please help me

adnan commented 6 years ago

Assalaamo 'Alaykum @hatimarqam

Great news to hear about your work with the new Mushaf, I have also been working on this process, specifically to get individual Ayahs, however as each line isn't the same height and also certain letters such as Jeem and 'Ain sometimes will be drawn in to the line below.

Would be interesting to see your approach and maybe share ideas.

Jazakum Allahu Khayraa

hatimarqam commented 6 years ago

Assalam Alikom I uploaded ayahinfo.db for the new images in the link below: https://drive.google.com/open?id=1x0XOaEzZD78ZdDorsMXRsyH-m9l66FfJ It is a compressed file contains : ayahinfo_512.db ayahinfo_800.db ayahinfo_1024.db ayahinfo_1260.db BaseQuranData.java the last one is important to define the start and the end of each page, because these data is different in the new press of Mushaf Al-Madinah than the old one. Hope all of you to benefit from it. And Sorry for late. Many thanks for android quran team Jazakom Allah khairan Hatem Mahdy

ahmedre commented 6 years ago

wa3laikum alsalam, jazakAllah khairan for this - i prepared something this weekend, but it was only for the 1260 size. i'll look at yours and may end up using it instead of the one i was preparing then in sha' Allah. will keep you posted. the plan is not to release this as a new app, but as part of the existing app - new installations would get a preference (old or new madani pages) and existing apps would find a setting in preferences.

jazakAllah khairan, walsalam 3alaikum.

hatimarqam commented 6 years ago

It's my pleasure to contribute in this holy project. By the way, although I tweaked the python code to maximize the accuracy , but I was forced to handle many problems manually after testing all the 6236 ayah on the new images. Also, If you face any problems, plz just let me know.

ahmedre commented 6 years ago

@hatimarqam one more question - can you link me to the images you used? the zip only contains the ayahinfo files and the updated java file for indices.

hatimarqam commented 6 years ago

Sure. I will contact the graphic designer to provide me the transparent images for all sizes.

ahmedre commented 6 years ago

one question first - those don't have borders (so not like the image at the top of this ticket, right?) - if they have borders, i can just use the ones i have in this case.

hatimarqam commented 6 years ago

As I know from the designer, that he removed that gray borders and generate the four sizes. I attached a sample here with white background for size 512. 003

ahmedre commented 6 years ago

great JazakAllah khairan - please do share then.

On Mon, Mar 12, 2018, 3:22 AM hatimarqam notifications@github.com wrote:

As I know from the designer, that he removed that gray borders and generate the four sizes. I attached a sample here with white background for size 512. [image: 003] https://user-images.githubusercontent.com/19638673/37259788-9fc7f6ae-2593-11e8-8d5c-23fa1a3c3850.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/quran/quran_android/issues/575#issuecomment-372159129, or mute the thread https://github.com/notifications/unsubscribe-auth/AAC6m_2JBLu5SqkIMGQtJlEACReRgmIWks5tdbGpgaJpZM4GMNtb .

muktyas commented 6 years ago

Alhamdulillah.. barakallahu lakum. If it will be done, could someone make images every page for indopak mushaf using Utsmani style? I have the link for it, here:

http://quran.kemenag.go.id/app/source/FONT_STANDAR.zip

It contains ttf files and .doc file per page. Thank you.

Pada tanggal 12 Mar 2018 10.39 AM, "Ahmed El-Helw" notifications@github.com menulis:

great JazakAllah khairan - please do share then.

On Mon, Mar 12, 2018, 3:22 AM hatimarqam notifications@github.com wrote:

As I know from the designer, that he removed that gray borders and generate the four sizes. I attached a sample here with white background for size 512. [image: 003] https://user-images.githubusercontent.com/19638673/37259788-9fc7f6ae- 2593-11e8-8d5c-23fa1a3c3850.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/quran/quran_android/issues/575# issuecomment-372159129, or mute the thread https://github.com/notifications/unsubscribe-auth/AAC6m_ 2JBLu5SqkIMGQtJlEACReRgmIWks5tdbGpgaJpZM4GMNtb .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/quran/quran_android/issues/575#issuecomment-372185653, or mute the thread https://github.com/notifications/unsubscribe-auth/AMe1ednZi5Hjoi6AJhadAsS7A08HOHz2ks5tde34gaJpZM4GMNtb .

ahmedre commented 6 years ago

is this different than what we have in Quran Naskh?

muktyas commented 6 years ago

Yes, it is different. The layout of every page is same to the new mushaf Utsmani. But it is indopak style. So the ayah detection also can be used on it.

Pada tanggal 20 Mar 2018 6.47 PM, "Ahmed El-Helw" notifications@github.com menulis:

is this different than what we have in Quran Naskh https://play.google.com/store/apps/details?id=com.quran.labs.androidquran.naskh&hl=en ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/quran/quran_android/issues/575#issuecomment-374568812, or mute the thread https://github.com/notifications/unsubscribe-auth/AMe1eTRfp-UmfEaBrww78rJNXOLTLBPkks5tgOxEgaJpZM4GMNtb .

muktyas commented 6 years ago

Assalamu'alaikum warahmatullahi wabarakatuh. Here is the example of what i mean. It is using the same layout as mushaf Utsmani, but it is indopak style.

Pada tanggal Sel, 20 Mar 2018 23.03, muktyas muktyas@gmail.com menulis:

Yes, it is different. The layout of every page is same to the new mushaf Utsmani. But it is indopak style. So the ayah detection also can be used on it.

Pada tanggal 20 Mar 2018 6.47 PM, "Ahmed El-Helw" < notifications@github.com> menulis:

is this different than what we have in Quran Naskh https://play.google.com/store/apps/details?id=com.quran.labs.androidquran.naskh&hl=en ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/quran/quran_android/issues/575#issuecomment-374568812, or mute the thread https://github.com/notifications/unsubscribe-auth/AMe1eTRfp-UmfEaBrww78rJNXOLTLBPkks5tgOxEgaJpZM4GMNtb .

khalid-hussain commented 6 years ago

@muktyas, the file you posted has otf files and a docx file. I can't get the docx file to show properly. Is there a special procedure? I have Word 2016.

image

I'm not an expert but this doesn't look like IndoPak style at all.

muktyas commented 6 years ago

Thank you Mohammad, first we must install that fonts. For just try, maybe install one file, example: MSI_Z003.otf. After that, we open the file page003.docx. (I use Libreoffice, but we also can use ms. Word, i think). Then select All textile, and change font to MSI_Z003. That's All.

Now, how to automatically do that for another pages? Ia there anyone could do that? Thank you. Now I still doing that manually, page by page.

Pada tanggal Min, 25 Mar 2018 15.20, Mohammad Khalid Hussain < notifications@github.com> menulis:

@muktyas https://github.com/muktyas , the file you posted has otf files and a docx file. I can't get it to show properly. Is there a special procedure? I'm on Word 2016.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/quran/quran_android/issues/575#issuecomment-375953563, or mute the thread https://github.com/notifications/unsubscribe-auth/AMe1eVrLYfdGF_Drs_g8eY7Wz_35DNAeks5th1NhgaJpZM4GMNtb .

khalid-hussain commented 6 years ago

image

This is how it looks in Word 2016.

image

However, it looks fine in LibreOffice Writer (6.0.2.1). I still don't see how this is IndoPak style though...

muktyas commented 6 years ago

I think the difference is on 'mad'. اللّٰه - اللَّه مٰلِكِ - مَـٰلِكِ نَسْتَعِيْنُ - نَسْتَعِينُ We can see the different sign between Mad wajib muttashil and mad Jaiz munfashil in indopak style. page003 I'm sorry because my last comment is from email. So the attachment picture does not appear. We can see, the layout ia very equal to the Utsmani style. But it is use different sign on 'mad' and waqaf position. So, the ayah detection also can be used on this.

We must set the margin of page and font size to make that same with Utsmani layout.

ahmedre commented 6 years ago

@hatimarqam any update on this? would love to use your data if possible, otherwise can use the other data set i have.

hatimarqam commented 6 years ago

Sure, it is almost done. We have 29 juz2 done and we are working on the last juze. Hope it will be ready during the next few days.

ahmedre commented 6 years ago

sounds good, jazakAllah khairan.

hatimarqam commented 6 years ago

@ahmedre Alhamdulillah, we finished two sizes you can find them below: For 1260px: http://www.mediafire.com/file/0w0uuq797dmuuxj/1260.rar For 1024px: https://drive.google.com/open?id=1Kna7yS-jiV9gxRrtx5sglWrYCW1VT3Wp

And we are working on sizes: 800 , 512 will post them when finished.

hatimarqam commented 6 years ago

For sizes : 800px, 512px, 480px, 320px http://www.mediafire.com/file/9cbplbgdwbg76t1/800-320.rar

ahmedre commented 6 years ago

jazakAllah khairan, managed to download all of them!

hatimarqam commented 6 years ago

Alhamdulillah. Good news.

ahmedre commented 6 years ago

@hatimarqam this is an apk for new madani - my intention is to write an interface so that someone can choose which one to use (new vs classic madani) - note: zip file contains the apk, but github doesn't support direct apk uploads on issues.

did a very quick test and it looks fine to me, with minor exceptions:

  1. pages 1 and 2 could be a lot bigger
  2. the gray sura header doesn't look great on the page
  3. despite lots of compression runs that i ran (zopfli, pngquant, etc), i can't make the images any smaller than this without seeing a quality difference - they are just under 100mb (will likely only include 1260 images for this release).

if i get a chance, i can try replacing these with the images i have which let us draw the sura header and the ayah numbers - but i prefer to get it out for Ramadan like it is now and iterate later.

try it out and let me know in sha' Allah.

(updated with a fixed apk url)

Abdullah076 commented 6 years ago

App installation fails in my device : /

On Sat, 28 Apr 2018 4:50 pm Ahmed El-Helw, notifications@github.com wrote:

@hatimarqam https://github.com/hatimarqam here's an apk for new madani

  • my intention is to write an interface so that someone can choose which one to use (new vs classic madani).

did a very quick test and it looks fine to me, with minor exceptions:

  1. pages 1 and 2 could be a lot bigger
  2. the gray sura header doesn't look great on the page
  3. despite lots of compression that i ran, i can't make the images any smaller than this without seeing a quality difference - they are just under 100mb (will likely only include 1260 images for this release).

if i get a chance, i can try replacing these with the images i have which let us draw the sura header and the ayah numbers - but i prefer to get it out for Ramadan like it is now and iterate later.

new_madani.zip https://github.com/quran/quran_android/files/1957604/new_madani.zip - zip file contains the apk, but github doesn't support direct apk uploads on issues.

try it out and let me know in sha' Allah.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/quran/quran_android/issues/575#issuecomment-385165313, or mute the thread https://github.com/notifications/unsubscribe-auth/AZlz5i1dnRlkAEs-Lman6r5GepoK2DOSks5ttEmGgaJpZM4GMNtb .

ahmedre commented 6 years ago

@Abdullah076 what error are you getting? this is a debug build so it should work side by side with the existing Quran for Android version.

OmarXawad commented 6 years ago

on my device It just ends with App not installed.

Abdullah076 commented 6 years ago

After opening the apk and clicking install, this is displayed.

Somehow, the app can't be installed.

My device: Samsung j2 android 5.1

I have Quran Naskh in my device.

ahmedre commented 6 years ago

my fault, please try this one.

OmarXawad commented 6 years ago

It works now,jazakAllah khairan.

Abdullah076 commented 6 years ago

Yes, worked in my device also now. Alhamdulillah.

ArielSidiqErdana commented 5 years ago

Assalamu 'alaikum, can you please make the Quran page layout like Madinah Mushaf, but I want to Indonesian Mushaf like the font. (Remember, like Madinah Mushaf in new standard)

ahmedre commented 5 years ago

closing this since we already released the new madani mushaf since Ramadan al7amdulillah.

afifkamali commented 5 years ago

Alhamdulillah.. barakallahu lakum. If it will be done, could someone make images every page for indopak mushaf using Utsmani style? I have the link for it, here: http://quran.kemenag.go.id/app/source/FONT_STANDAR.zip It contains ttf files and .doc file per page. Thank you. Pada tanggal 12 Mar 2018 10.39 AM, "Ahmed El-Helw" notifications@github.com menulis: great JazakAllah khairan - please do share then. On Mon, Mar 12, 2018, 3:22 AM hatimarqam @.***> wrote: > As I know from the designer, that he removed that gray borders and > generate the four sizes. > I attached a sample here with white background for size 512. > [image: 003] > <https://user-images.githubusercontent.com/19638673/37259788-9fc7f6ae- 2593-11e8-8d5c-23fa1a3c3850.png> > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <#575# issuecomment-372159129>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AAC6m_ 2JBLu5SqkIMGQtJlEACReRgmIWks5tdbGpgaJpZM4GMNtb> > . > — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#575 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AMe1ednZi5Hjoi6AJhadAsS7A08HOHz2ks5tde34gaJpZM4GMNtb .

bisa minta file ini mas http://quran.kemenag.go.id/app/source/FONT_STANDAR.zip mau download link tersbut sudah gak bisa

ahmedre commented 5 years ago

we already have this: https://play.google.com/store/apps/details?id=com.quran.labs.androidquran.naskh

muktyas commented 5 years ago

I have this FONT_STANDAR.zip in my google drive. But the font name does not correct yet. We must correct it our self. https://drive.google.com/open?id=1R8LQGTp7z9G3J74EEbhowc9tbaCMEMZx

ahmedre commented 5 years ago

we already published Quran for Android with new Madani images - in the app, go to settings, page type, and choose the new madani type.

ghost commented 5 years ago

السلام عليكم و رحمة الله و بركاته , How can i download this font? 37909854-4353f2ac-3136-11e8-9986-ed4bd9a8a086

ghost commented 5 years ago

And how we can use this font standard on android devices?

fauzie811 commented 4 years ago

For sizes : 800px, 512px, 480px, 320px http://www.mediafire.com/file/9cbplbgdwbg76t1/800-320.rar

Could anyone who have downloaded this please reupload it?

جزاكم الله خيرا