Giter VIP home page Giter VIP logo

Comments (21)

meezaan avatar meezaan commented on June 7, 2024 2

Alaykum salaam @vipafattal worth trying. I will add it to the API.

I also have some ideas on how to fix this issue, but I need a good few hours of time to try them out.

I will try and add the edition for you this week insha'Allah.

from alquran.cloud.

meezaan avatar meezaan commented on June 7, 2024 2

@vipafattal I have spent some time on this today. The changes I had thought I might make to quran-uthmani are already the ones made by Quran Academy. The problem is that these changes make it impossible for most of the fonts to render some parts of the text, except for Kitab.

The solution, of course, is to fix the fonts. I've mentioned somewhere else in another issue that this likely happened around 2016 after some proposed changes to the way Arabic was rendered within unicode, before that the text from Tanzil.net would have worked fine.

I have also created https://alquran.cloud/arabic-font-edition-tester to test various fonts and editions. The working combinations are Quran ME 2 with quran-uthmani and and Kitab / Kitab Bold with quran-uthmani-quran-academy.

Please test the new combination (I've already applied it to the web app to see how it works). If it does not work for you, we can re-open this issue.

In due course, it may be that we open another issue to fix an existing Uthmanic font to render quran-uthmani-quran-academy properly (something that is closer to Uthmani calligraphy than Kitab / Scheherazade).

FYI - I've seen some of these unicode issues even in the printed Qur'ans. The only place I don't see them (naturally) is in hand-written (more like retraced) ones from Turkey or lithographic type prints of hand written sub-continent editions.

Insha Allah, I hope this helps.

from alquran.cloud.

meezaan avatar meezaan commented on June 7, 2024

Al Salaamu Alaykum.

I think you should look for this in the tajweed edition, not the uthmanic edition, as this is specific to tajweed and not to written Arabic in the Qur'an.

from alquran.cloud.

vipafattal avatar vipafattal commented on June 7, 2024

Shouldn't Quran Uthmani match the original Quran notation as quran-tajweed add complexity not required for just showing original Quran purposes?

from alquran.cloud.

meezaan avatar meezaan commented on June 7, 2024

I do not think it was never intended to match it.

Even today, you can buy physical Qur'ans with Uthmanic text that do not contain the twajeed notation - in fact, I have several of them - Alhamdulillah!

I don't think the purpose of every phyiscal Qur'an is recitation out aloud - the intention of many versions is to read it to contemplate the meaning - so the specific tajweed pronunciation markings do not necessarily add value there.

I think whilst quran-tajweed may add complexity from a programming point of view, the tajweed markings don't belong in the uthmanic edition, semantically speaking.

from alquran.cloud.

vipafattal avatar vipafattal commented on June 7, 2024

Fair enough, I understand that Quran Uthmani doesn't have to be the same as the original Quran, but as far as accuracy is concerned Quran Uthmani doesn't have to look the same as the original but also - as I think - mustn't add wrong Arabic punctuation or Quranic punctuation.

from alquran.cloud.

meezaan avatar meezaan commented on June 7, 2024

Agreed!

from alquran.cloud.

vipafattal avatar vipafattal commented on June 7, 2024

So any chances to make progress in this issue in the future.

from alquran.cloud.

meezaan avatar meezaan commented on June 7, 2024

Sorry, maybe I misunderstood the comment. I thought the agreement was to not change the uthmani edition because the tajweed edition already has the tajweed pronunication marks. Is this edition adding anything that is wrong?

from alquran.cloud.

vipafattal avatar vipafattal commented on June 7, 2024

from alquran.cloud.

meezaan avatar meezaan commented on June 7, 2024

Can you share 3 or 4 verse references numbers with me, please, and I will investigate. The original issue states:

As far as I know, l مْ + ب cause to convert م to ن, and in this places Quran notation should show small Mim, but There are numerous of places where this case (مْ + ب) doesn't happen but there is no Mim,...

Did you mean:

but There are numerous of places where this case (مْ + ب) doesn't happen but there is a Mim

Reopening the issue.

from alquran.cloud.

vipafattal avatar vipafattal commented on June 7, 2024

Please head to the first comment I add few of them they all show wrong Iqlab Mim.

from alquran.cloud.

meezaan avatar meezaan commented on June 7, 2024

I need ayah numbers, please.

from alquran.cloud.

vipafattal avatar vipafattal commented on June 7, 2024

There are many in juz' 26 and this Ayat are obtained from pages 514-517
numbers:
رُكَّعًۭا سُجَّدًۭا يَبْتَغُونَ 4612

4638 تَبْصِرَةًۭ وَذِكْرَىٰ لِكُلِّ

4633 أَءِذَا مِتْنَا وَكُنَّا تُرَابًۭا ۖ

4626 إِنَّ ٱللَّهَ غَفُورٌۭ رَّحِيمٌ

4625 ذَكَرٍۢ وَأُنثَىٰ وَجَعَلْنَٰكُمْ شُعُوبًۭا

4625 إِنَّ أَكْرَمَكُمْ عِندَ ٱللَّهِ أَتْقَىٰكُمْ ۚ إِنَّ ٱللَّهَ عَلِيمٌ خَبِيرٌۭ

4624 ٱجْتَنِبُوا۟ كَثِيرًۭا مِّنَ

4624 ٱلظَّنِّ إِثْمٌۭ ۖ وَلَا

4624 إِنَّ ٱللَّهَ تَوَّابٌۭ رَّحِيمٌۭ

and sadly there are more.

(Numbers are obtained from http://api.alquran.cloud/v1/juz/26/quran-uthmani)

from alquran.cloud.

meezaan avatar meezaan commented on June 7, 2024

So this is very interesting - https://alquran.cloud/ayah/4612/quran-uthmani does not show the 'additional' meems when displaying with the font - but the raw response has them. So me-quran must be a super intelligent font!

Leave it with me - I will create a new edition in the API with https://github.com/khaledhosny/quran-data - God willing - today. Please note that this text uses a different indicator for sukun, as explained on https://en.wikipedia.org/wiki/Arabic_diacritics#Sukun:

The sukūn may have also an alternative form of the small high dotless head of khāʾ (U+06E1 ۡ ), particularly in some Qurans. Other shapes may exist as well (for example, like a small comma above ⟨ʼ⟩ or like a circumflex ⟨ˆ⟩ in nastaʿlīq).[5]

If you want to change it, this can be easily replace by a search and replace - and if we find the text is OK, we can even create another variation of this with a sukoon.

At this point, the only way to make correct changes to quran-uthmani is to manually read through the text, find the errors, and fix them. Because the mim can be an iqlab or the mandatory stop, there is no pattern to programatically pick it up, unless there is an existing map of ayahs where these must exist.

The new edition name is quran-unicode. So, https://api.alquran.cloud/juz/26/quran-unicode.

Let us leave the issue open for discussion. May Allah help us!

from alquran.cloud.

vipafattal avatar vipafattal commented on June 7, 2024

Thank for this amazing effort & details, I will test it and push it to beta users

from alquran.cloud.

meezaan avatar meezaan commented on June 7, 2024

This may very well be a font display issue related to a proposal like https://www.unicode.org/L2/L2017/17377-proposal-tanwin-inline.html. We are investigating further.

from alquran.cloud.

vipafattal avatar vipafattal commented on June 7, 2024

Salaam brother
While using kitab-bold font with quran-unicode Quran edition, it turns out to they are not fully compatible with each other see.
The Kitab designer team recommends using Kitab fonts with this Quran edition, so is this version available in the API? If not can is it possible to be added.

from alquran.cloud.

vipafattal avatar vipafattal commented on June 7, 2024

@meezaan
one more thing, Do you think using the aforementioned Quran edition, will open up another old issue, because of the known issues in that version.

from alquran.cloud.

meezaan avatar meezaan commented on June 7, 2024

Al Salaamu Alaykum @vipafattal. The edition has been added. You can access it via 'quran-uthmani-quran-academy'. For example: https://api.alquran.cloud/v1/ayah/2:4/quran-uthmani-quran-academy.

from alquran.cloud.

meezaan avatar meezaan commented on June 7, 2024

@vipafattal Even the Droid Kufi, Droid Naskh and Amiri (about 80% there) fonts work fine, although one has to wonder why the Droid family was invented - it's almost an insult to the beauty of the Arabic language.

from alquran.cloud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.