All Projects → islamic-network → alquran-tools

islamic-network / alquran-tools

Licence: GPL-3.0 license
Various tools for Parsing Quran Tajweed, Buck, etc.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to alquran-tools

quran-api
Free Quran API Service with 90+ different languages and 400+ translations
Stars: ✭ 210 (+147.06%)
Mutual labels:  quran, quran-api
quran-api
Open source quran api, not only quran text, this api is also equipped with audio recitation and you can change the audio according to the recitation of the Imam that you like
Stars: ✭ 38 (-55.29%)
Mutual labels:  quran, quran-api
vue-quran
vue quran
Stars: ✭ 13 (-84.71%)
Mutual labels:  quran, quran-api
IslamBot
A Discord bot that supports Qur'an, hadith, prayer times, tafsir and more.
Stars: ✭ 59 (-30.59%)
Mutual labels:  quran, islam
QuranJSON
Simplified Perfect Complete Quran JSON (Indonesia Translation, Tafsir, and Audio) with API
Stars: ✭ 83 (-2.35%)
Mutual labels:  quran, islam
quran-align
Word-accurate timestamps for Qur'anic audio.
Stars: ✭ 139 (+63.53%)
Mutual labels:  quran, islam
quran-api-id
REST API Al-Quran Indonesia dengan terjemahan, tafsir (Kemenag, Quraish Shihab, Al-Jalalain), audio murottal (per surah dan ayat dari 6 qori), random ayat.
Stars: ✭ 26 (-69.41%)
Mutual labels:  quran, quran-api
quran-data
Unicode-encoded Quran data
Stars: ✭ 67 (-21.18%)
Mutual labels:  quran
quran
An easy way to typeset The Holy Quran in XeLaTeX.
Stars: ✭ 18 (-78.82%)
Mutual labels:  quran
baca-quran.id
📖 Read Qur'an from Your Web Browser. No Ads, No Analytics, It's Totally Free.
Stars: ✭ 306 (+260%)
Mutual labels:  quran
quranicaudio-app
QuranicAudio.com Mobile App
Stars: ✭ 44 (-48.24%)
Mutual labels:  quran
api.alquran.cloud
The AlQuran.Cloud API - https://alquran.cloud/api
Stars: ✭ 141 (+65.88%)
Mutual labels:  quran-api
prayer-times-extension
Under Development: Prayer Time Calculation based on Geolocation for Chromium and Firefox
Stars: ✭ 61 (-28.24%)
Mutual labels:  islam
pyIslam
pyIslam, a Python library to calculate prayer times, hijri date, qiblah direction and more
Stars: ✭ 68 (-20%)
Mutual labels:  islam
quranize
transform transliteration to Quran text
Stars: ✭ 13 (-84.71%)
Mutual labels:  quran
quran-extension
Replace the new tab page with Quran verses and beautiful nature pictures.
Stars: ✭ 47 (-44.71%)
Mutual labels:  quran
Quran-Pro-iOS
Description Qur’an Pro - القرآن الكريم offers all muslims the complete Holy Quran with verse by verse recitation, translation and transcription. The application is written in SWIFT 2.0
Stars: ✭ 21 (-75.29%)
Mutual labels:  quran
Azkar-App
Desktop Application 💻 for Calculating Muslim prayer times 🕌 , Morning and Nights Azkar 🤲 with notification for random Azkar that pops-up in specific time.
Stars: ✭ 64 (-24.71%)
Mutual labels:  islam
quran app
Quran app built with Flutter
Stars: ✭ 155 (+82.35%)
Mutual labels:  quran
quran-online
Read and Listen to Qur'an online. Built with NuxtJS and TailwindCSS.
Stars: ✭ 51 (-40%)
Mutual labels:  quran

بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ

Quran Tools for Parsing Tajweed and Buck

These PHP tools are to be used with the AlQuran.cloud and GlobalQuran.com APIs. They are made available so you may get the most out of the APIs.

What do they contain

For now, a Tajweed and Buck helper. Each section is detailed below.

Install and Get Started

The tools add developer libraries you can use in your application. Install using composer:

composer require alquran/tools

Tajweed Example

To get tajweed text to become legible, use:

<?php
require_once('vendor/autoload.php');

$parser = new \AlQuranCloud\Tools\Parser\Tajweed();
$html = $parser->parse($text); // $text is the output text of a Verse from quran-tajweed edition. For example: http://api.alquran.cloud/ayah/24:35/quran-tajweed. Also see data/tajweed.json.

Buckwalter Transliteration example

To get tajweed text to become legible, use:

<?php
require_once('vendor/autoload.php');

$parser = new \AlQuranCloud\Tools\Parser\Buck();
$arabic = $parser->toArabic($text); // $text is the output text of a Verse from quran-buck edition. For example: http://api.alquran.cloud/ayah/24:35/quran-buck.

Tajweed Documentation

See Tajweed Documentation.

Buck (Buckwalter Transliteration) Documentation

See Buck Documentation.

Are there any known Issues

Yes, with the Tajweed parser. Webkit has a known bug that breaks Arabic with inline tags. There is an experimental fix in the Tajweed Parse class for this using the Zero Width Joiner (‍), but it still needs some work. I've manually tried this on some Ayahs and ZWJ is not smart enough to parse all the characters and join them properly, so this is not ideal. See See https://stackoverflow.com/questions/11155849/partially-colored-arabic-word-in-html and https://bugs.webkit.org/show_bug.cgi?id=6148. The issue with parsing in Chrome seems to have been resolved with Chrome's new layout implementation (https://www.chromium.org/blink/layoutng). It has been tested on version 77.0.3865.90.

Credits

Most of this code is created using logic from the Global Quran website and codebase.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].