The Mushaf Layout refers to the structured data of pages in any Mushaf (printed copy of the Quran). This layout data is essential for accurately rendering Mushaf pages in digital applications and tools. QUL provides a Mushaf Layout Tool that allows you to design layouts for any Mushaf or export existing layouts as a downloadable SQLite database.
To render a Mushaf layout, you'll need the actual Quran script in word by word format and an appropriate font that supports the script.
The exported SQLite database includes a pages
table that contains data for each line on a page. The table has the following structure:
Column | Description |
---|---|
page_number |
The number of the page in the Mushaf. |
line_number |
The line number on the page. |
line_type |
Specifies the type of line:
|
is_centered |
A boolean value indicating whether the text on the line should be center-aligned(true) or fully justified(false). |
first_word_id |
The ID of the first word on this line. |
last_word_id |
The ID of the last word on this line. |
surah_number |
Identifies the Surah displayed on this line. |