Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to derive the actual sura_number for sura or bismillah line types? #39

Open
AlGantori opened this issue Feb 28, 2021 · 1 comment
Open

Comments

@AlGantori
Copy link

AlGantori commented Feb 28, 2021

I am able to generate the line types for page 604 with a query like so

image

I can cross-reference the sura_number by joining the glyph_ayah table like so:

image

However, the above only works for "ayah" line types because the glyph_ids for sura and bismillah types are not in glyph_ayah table.

Did I miss something? like a glyph_sura and glyph_bismillah table :)

or is this info you never needed in this image generating project.

Any pointers would be helpful. Thank you.

@murtraja
Copy link

murtraja commented May 9, 2021

At least for Sura, you can get the respective details by:
select gpl.page_number, gpl.line_number, glyph_type_meta as sura from glyph_page_line as gpl left join glyph on gpl.glyph_id = glyph.glyph_id where gpl.page_number=604 and glyph_type_meta <> 0 and line_type='sura';
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants