quran-json/README.md

56 lines
2.3 KiB
Markdown
Raw Normal View History

2022-12-26 06:42:01 +01:00
## About
2022-04-26 14:12:16 +02: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. In both scenarios, 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.
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-09 16:30:02 +01:00
-l, --locale LOCALE ar, en, pt, fa, or nl (default: en)
-o, --overwrite Overwrite existing JSON files that might exist (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
I'd also like to extend thanks to the following websites for providing
the content that quran-json downloads:
2022-05-29 19:27:59 +02:00
* https://searchtruth.com for the original Arabic.
* https://quran.com for the English, Portuguese, and Farsi translations.
2022-05-29 19:27:59 +02:00
## License
2022-07-19 21:54:10 +02:00
Public domain.