Comments (11)
yes, your understanding is correct. and yes, it builds one line at a time.
for what you want to do, i'd download and get the database from this repo and then get this data with a query (or with a script that just does this for each page). if i recall, the table here should contain the line information as well.
from quran.com-images.
Are you sure this kind of data is not already available in some XML/JSON resource?
I have done indirectly some node.js based development but I don't recognize the commands installation notes like the following:
ppm install dmake
ppm install dbd-mysql
ppm install yaml
are these expected to be executed inside some CLI? or some linux distro?
Thanks for helping out because at this point I am clueless.
I am running in Windows7
from quran.com-images.
you don't need to do any of those commands nor run this script itself - just download the database and import it and write a script yourself.
from quran.com-images.
By database you mean download the sql folder in this repo.
I have MySQL Workbench, it's a beast I never got acquainted with all of its terms Open Model, ???
It seems oriented to open dbs over some network connection, I am having hard time making it open a local file. It managed to open schema.mwb and throws me into the err diagram mode, I want to see the tables and data.
Which of these files should I be attempting to open?
Would you suggest a better tool than MySQL Workbench 5.2.44 CE?
By me writing scrips you mean write SQL queries to retrieve info, perhaps from glyph_line_page table?
Thank you for holding my hands thru this.
from quran.com-images.
-
So after upgrading MySQL Workbench to 8.0.20 it quit working and has error, these companies Oracle, Microsoft just ruin any piece of software they grab onto and make it a monster. At the end, I just ditched this garbage/ziballa software installing so much junk on my system.
-
I have not worked with SQL from like 1987 Sybase SQL prior to MS SQL 👎
-
I guess you have to have a local server installed, HeidiSQL insisted on a connection.
-
So I installed XAMPP as the server.
-
Was able to open the 02-database.sql
-
Is the glyph_ayah the table I should be deriving word count from?
-
Since I am purely guessing can you confirm the row below refers to the first verse of Fatiha in this case Basmallh and the row is actually the verse number which in my case I won't be counting as a word.
Will tajweed markings (eg. small-meen etc..) be appearing as separate rows in this table or lumped with the previous word (as a single glyph)?
I feel like this is terrible, I would have to query and group count on ayah_number and minus one for the aya_number (hindi thingy) to get my word count???
I have a feeling I am going about this the wrong/difficult way
from quran.com-images.
- Oh that table does not give the line_number, glyph_page_line is what I should be looking into, for this line wrapping (word/token count) I am after.
- This particular 1st line of chapter2 (but numbered as the 3rd line because counting sura title + basmallah as page lines/rows)
- We have 7 words + 2 tajweed markers + 1 verse-number = 10 tokens
This would be its data, matching the 7 words + 2 tajweed markers + 1 verse-number = 10 tokens
How can I derive/detect that glyph_id = 264 is a verse number, I do not want to count???
from quran.com-images.
Specifically for Page#2 this database is about this particular layout
Matching query
SELECT COUNT(line_number) FROM `glyph_page_line` WHERE page_number = 2 GROUP BY line_number;
The raw/net count of tokens per line follows:
I happen to be working with the Tajweed version page2 is a bit different, that's ALRIGHT I will handle that.
Again my current road block is detecting a token is a verse number???
from quran.com-images.
the glyph table will tell you what "type" the glyph is - so you can exclude the ayah markers that way.
from quran.com-images.
Wow I can't believe I am doing a 3 way join to get this, it appears that all verse-numbers are typed as "end"
Mission almost accomplished !!! ALLAHU AKBAR !!!
from quran.com-images.
awesome al7amdulillah! make sure to not include other things like pauses (so just include words).
from quran.com-images.
-
In my current hacking I am including the Tajweed-marker (here a pause) and verse-numbers as well in the rendering. It's just that my algorithm is based on word count and Uthmani script (word/token sequences) which has the Tajweed-markers inline in the case the two "pause".
-
I probably should use a similar approach in my JSON and expand it perhaps and tag the Tajweed tokens with their type and perhaps even sub-type.
-
I don't see verse-number as belonging to a hard-coded line position but rather a floating one. I would not be calling verse-number "end" as I want to flow them either as aaya-prefix (default) or suffix in future renderings.
from quran.com-images.
Related Issues (20)
- How to get info about Ayah positions in page, if available? HOT 1
- [ASK] Can I get word by word?
- Remove White stroke above ayah HOT 3
- Images Helper [TOOL] HOT 4
- generate.pl not working
- basmallah should have a shadda in 95 and 97 HOT 1
- Images are created but no sql file when using docker
- How to generate images without ayat numbers? HOT 2
- Pngs created but size is 1kb (valid png but empty) HOT 2
- Multilayer coloured images for Tajweed (Feature request)
- How to derive the actual sura_number for sura or bismillah line types? HOT 1
- Can this detect new madani font that is being currently being used as mushaf? HOT 1
- Two words as one value in word_arabic table
- Page 585 image not render correctly on line 6 HOT 2
- Can I use this with react native (expo)? HOT 4
- القرآن الكريم
- Are there any copyright or legal issues with fonts, if I use them? Are these links reliable? HOT 6
- Generate line by line images HOT 3
- Failing to install with docker method HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quran.com-images.