quran-json/README.md

68 lines
3 KiB
Markdown
Raw Normal View History

2023-03-08 17:11:22 +01:00
## About
2022-04-26 14:12:16 +02:00
2023-03-08 22:29:08 +01:00
quran-json is a dual purpose project where on the one hand it provides a 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-02-09 05:38:06 +01:00
## <a id='share/quran-json'>share/ directory</a>
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
### JSON layout
2022-04-26 14:12:16 +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-02-09 05:38:06 +01:00
## <a id='bin/quran-json'>bin/ directory</a>
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
### Usage
2022-05-28 08:54:34 +02:00
Usage: quran-json pull [OPTIONS]
2023-02-12 17:41:59 +01:00
-l, --locale LOCALE ar, en, pt, fa, nl, fr, or it (default: en)
2023-02-13 10:15:04 +01:00
-r, --replace Replace existing JSON files (default: no)
-u, --update Only update the surah metadata (implies -r, default: no)
2022-04-27 01:57:03 +02:00
## Thanks
2022-04-26 14:12:16 +02:00
First and foremost, Alhamdulillah.
2022-04-26 14:12:16 +02:00
2023-03-08 20:49:15 +01:00
Thanks to the following websites for making the content available to download:
2022-05-29 19:27:59 +02:00
2023-02-12 17:41:59 +01:00
* https://searchtruth.com for the original Arabic, and the Italian translation.
* https://quran.com for the English, Farsi, Portuguese, Dutch, and French translations.
2022-05-29 19:27:59 +02:00
2023-03-08 20:49:15 +01:00
And thanks to the translators of the content:
2023-02-13 05:00:09 +01:00
* _Dr. Mustafa Khattab_ for the English translation.
* _Hussein Taji Kal Dari_ for the Farsi translation.
* _Sofian S. Siregar_ for the Dutch translation.
* _Muhammad Hamidullah_ for the French translation.
* _Hamza Roberto Piccardo_ for the Italian translation.
## License
2022-07-19 21:54:10 +02:00
2023-03-08 20:49:15 +01:00
The "source code" is released under the [BSD0L](./LICENSE) license.
2023-02-13 05:00:09 +01:00
<br>
2023-03-08 20:49:15 +01:00
The content is copyrighted to the translators (named above).