rockneverdies55 / quran-epub

Holy Quran epub version to read on mobile, ios or android smartphones as well as ereader devices such as kindle
30 stars 1 forks source link

Two major character issues: sukun and لا #2

Open tarkeez opened 7 months ago

tarkeez commented 7 months ago

First issue is that in many cases, instead of sukun (\u{0652} ◌ْ ), there is the upper zero character (\u{06DF} ◌۟). This seems to happen on alif ا and waw و

In Uthmani Hafs script this causes the following in the epub: image Instead of (same epub after replacing with sukun): image

Second issue is lam alif لا is sometimes rendered wrong. This seems to at least happen when there is hamza and fatha on the alif.

This causes the following in the epub: image

Which on quran.com looks like this: image

The second issue has to do with rendering I think, because the characters they use are not regular (لْأَ) but are actually encoded like this: لْـَٔا. If you look at the quran.com picture, the hamza and fatha are between the lam and alif, so they look like this: image Whereas if I write لْأَ and render it in Hafs, it looks like this: image

Which is not as nice as the quran.com rendering but much better than this: image

I don't know that they do at quran.com to get لْـَٔا to show nicely with the hamza and fatha in the middle.

tarkeez commented 7 months ago

I realize now that the sukun used in the cases I mentioned is meant to be different, same as the lam alif ligature is meant to be different to get the hamza and fatha in the middle.

On quran.com, the regular sukun (\u{0652} ◌ْ ) look like this (same as you see in the above picture from quran.com): image

Where the second sukun (\u{06DF} ◌۟) over alif and waw (at least) looks like this: image

Does anyone know how to get both these things to show correctly like they do on the quran.com site?

rockneverdies55 commented 6 months ago

I guess this is all about the arabic font I have chosen. We can try a different one if you know a good arabic font that we can use.

suryanto commented 5 months ago

I tried to change the font with me_quran.

https://fontsgeek.com/fonts/me_quran-regular

It fixed the first issue, but it is not yet fixing the second issue.