quran / quran.com-images

images using fonts from King Fahed Complex / qurancomplex.org
http://quran.com
390 stars 125 forks source link

How to get info about Ayah positions in page, if available? #25

Open osamana opened 6 years ago

osamana commented 6 years ago

I want to show the ayahs like this https://quran.com/18 I want to be able to render it just like the original Quran and highlight them. thanks

ahmedre commented 6 years ago

the database has the character for each line and the positions relative to each line - so you can use the fonts (which exist in this repository) along with the data in the database to do it yourself, but we don't have an open source solution for generating this for you right now.

highlighting them is nothing special though - it's just applying a foreground or background on the span of the respective word.