Zeitgeist - warwickfoster/qurantools GitHub Wiki

File: app/rhyme/rhyme_counts_per_sura.php

Purpose

The provided code is a PHP script that generates a table displaying the number of different verse ending (rhyme) patterns per sura in the Quran.

Key Features

  • Sorting Users can sort the table by different criteria, including sura number, provenance, number of verses, number of distinct rhyme patterns, and verse ending homogeneity.
  • Charts The script includes a chart tooltip that provides access to visualizations of rhyme data.
  • Table Display The table shows the sura number, provenance, number of verses, number of distinct rhyme patterns, and verse ending homogeneity for each sura.

Functionality

  1. Database Query The script queries a database to retrieve the necessary data, including sura number, provenance, number of verses, number of distinct rhyme patterns, and verse ending homogeneity.
  2. Table Generation The script dynamically generates a table based on the retrieved data, allowing users to sort and view the information.
  3. Chart Tooltip The script includes a chart tooltip that provides access to interactive charts based on the selected data.

Usage

The script can be accessed at the URL rhyme_counts_per_sura.php.

Additional Notes

  • The script requires authentication and includes necessary PHP files for database connection and data retrieval.
  • The QURAN-VERSE-ENDINGS and SURA-DATA tables are assumed to exist in the database.
  • The script may need to be modified based on the specific database structure and requirements.