Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/riadvice/Qurani
Adobe Actionscript 3 for AIR/SQLite Quran API
https://github.com/riadvice/Qurani
actionscript air quran quran-api
Last synced: 3 months ago
JSON representation
Adobe Actionscript 3 for AIR/SQLite Quran API
- Host: GitHub
- URL: https://github.com/riadvice/Qurani
- Owner: riadvice
- Created: 2011-06-22T19:52:24.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-09-24T09:42:40.000Z (about 11 years ago)
- Last Synced: 2024-06-23T23:41:42.977Z (4 months ago)
- Topics: actionscript, air, quran, quran-api
- Language: ActionScript
- Homepage:
- Size: 2.89 MB
- Stars: 7
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-actionscript-sorted - Qurani - Adobe Actionscript 3 for AIR/SQLite Quran API (API / Other API)
README
# Qurani AIR API
Furqan is a Quran API for Adobe AIR.
The library contains an embedded SQLite Holy Quran database. The database itself contains uthmanic text and imlai
text.Uthmanic text uses Uhtmanic HAFS official font from King Fahd Glorious Quran Printing Complex.
## Why this API is only for AIR and not for Flex ?
The anwser to this question is detaild in two points :
* The library contains an embedded SQLite databse. SQLite databases are available only for Adobe AIR Runtime.
* Flex do not handle arabic text direction when it is loaded from an XML file, so the text is inverted.## Using Qurani AIR API
Simple create an instance of *Quran* class
quran = new Quran();
#### getSuwarCount()
quran.getSuwarCount() : Returns the number of Sura in Quran => 114
#### getAyatCount()
quran.getAyatCount() : Returns the number of Ayat in Quran => 6236
#### getBasmalah()
quran.getBasmalah() : Returns an Aya instance containing the Basmalah.
#### getAya( suraNumber : int, ayaNumber : int )
quran.getAya( 1, 1 ) : Returns an Aya by specifying its sura number and its number.
#### getAllAyat()
quran.getAllAyat() : Returns an array containign all Ayat of Quran.
#### getSura(suraNumber : int)
quran.getSura(1) : Returns a Sura and all its Aya.
#### getSuraByName(suraName : String)
quran.getSuraByName("الفاتحة") : Returns a Sura and all its Aya.
#### getSuwarNames()
quran.getSuwarNames() : Retursn an array containing names of all Surat in Arabic.