quran-json/README.md

68 lines
2.8 KiB
Markdown
Raw Normal View History

2023-12-04 15:20:23 +01:00
## About
2022-04-26 14:12:16 +02:00
2023-03-11 15:55:59 +01:00
quran-json is a dual purpose project where on the one hand it provides a
2023-03-27 05:43:01 +02:00
command-line utility for downloading the content of The Quran in multiple
languages, and on the other hand it provides a copy of the content that
can be downloaded. The content is provided in the JSON format.
2022-12-26 06:42:01 +01:00
2023-12-04 15:20:23 +01:00
## share/
2022-04-26 14:12:16 +02:00
* [share/quran-json/TheQuran/ar/](share/quran-json/TheQuran/ar/) contains The Quran in its original Arabic.
* [share/quran-json/TheQuran/en/](share/quran-json/TheQuran/en/) contains an English translation of The Quran.
* [share/quran-json/TheQuran/fa/](share/quran-json/TheQuran/fa/) contains a Farsi translation of The Quran.
* [share/quran-json/TheQuran/pt/](share/quran-json/TheQuran/pt/) contains a Portuguese translation of The Quran.
2023-02-09 16:30:02 +01:00
* [share/quran-json/TheQuran/nl/](share/quran-json/TheQuran/nl/) contains a Dutch translation of The Quran.
2023-02-12 17:41:59 +01:00
* [share/quran-json/TheQuran/fr/](share/quran-json/TheQuran/fr/) contains a French translation of The Quran.
2023-02-12 17:57:36 +01:00
* [share/quran-json/TheQuran/it/](share/quran-json/TheQuran/it/) contains an Italian translation of The Quran.
2022-07-11 23:08:58 +02:00
The
[share/quran-json/TheQuran](share/quran-json/TheQuran/)
directory contains multiple sub-directories, where each sub-directory represents
a locale (eg `en` for English, `ar` for Arabic, and so on). Within each sub-directory,
there is a JSON file for each surah (also known as a chapter).
2022-06-20 18:37:22 +02:00
The structure of each JSON file can be described as an array where the first element is
an object that contains information about a surah, and the rest of the array contains
the content of the surah. The content is composed of two-element arrays - where the first
element is the ayah number (also known as a verse number), and the second element is the
content of the ayah.
2022-06-20 18:37:22 +02:00
See [Surah Al-Fatihah (English)](share/quran-json/TheQuran/en/1.json) for an example.
2023-02-02 06:54:30 +01:00
2023-12-04 15:20:23 +01:00
## bin/
2022-07-11 23:16:07 +02:00
The [bin/quran-json](bin/quran-json) executable is a utility for downloading
the content of The Quran in multiple languages.
2022-07-11 23:26:55 +02:00
2023-03-11 15:55:59 +01:00
*Usage*
2022-05-28 08:54:34 +02:00
2023-03-27 06:52:31 +02:00
<pre>
Usage: quran-json pull [OPTIONS]
-l, --locale LOCALE A locale (eg 'en')
-r, --replace Replace existing JSON files
-u, --update Update surah metadata
</pre>
2022-04-27 01:57:03 +02:00
2023-12-04 15:20:23 +01:00
## Thanks
2022-04-26 14:12:16 +02:00
2024-05-20 03:44:11 +02:00
Alhamdulillah
2022-04-26 14:12:16 +02:00
Thanks to the following websites for providing the downloadable content:
2022-05-29 19:27:59 +02:00
2024-05-20 03:44:11 +02:00
* https://searchtruth.com for the original Arabic, and the Farsi, Italian translations
* https://quran.com for the English, Portuguese, Dutch, and French translations
2022-05-29 19:27:59 +02:00
2024-05-20 03:44:11 +02:00
Thanks to the translators:
2023-02-13 05:00:09 +01:00
2024-05-20 03:44:11 +02:00
* _Dr. Mustafa Khattab_ for the English translation
* _Hussain Ansarian_ for the Farsi translation
* _Sofian S. Siregar_ for the Dutch translation
* _Muhammad Hamidullah_ for the French translation
* _Hamza Roberto Piccardo_ for the Italian translation
2023-02-13 05:00:09 +01:00
2023-12-04 15:20:23 +01:00
## License
2022-07-19 21:54:10 +02:00
2024-05-20 03:44:11 +02:00
The "source code" is released under the [GPL](./LICENSE) license
2023-02-13 05:00:09 +01:00
<br>
2024-05-20 03:44:11 +02:00
The translators hold the copyright for the translated content