News:

About us: a forum for monotheists, and discussion of Islam based on The Quran

Main Menu

Programming geeks, I need your help

Started by selim, January 27, 2018, 01:43:55 PM

Previous topic - Next topic

selim

I want to download corpus.quran.com website and be able to use it offline by any common program. There are Quran sites that I can do this just by clicking .html files. But it does not work on every site. Why, you would ask? If it goes down someday, what will you use then?

عوني

Hi what part of the site are you trying to download? The Qur'an corpus site seems to built using Java but it's not really relevant I suppose. You can easily save any site of the Corpus Qur'an by just copying all of the source code of the site you're currently viewing (which is the front-end code) and inserting it into an .html file and the the CSS code seperately into a .css file (the design). Keep in mind you'd need to edit the html code a bit too to get the design working but the content would still be there. But if you wanted to access say the search bar to search a verse in your downloaded file you wouldn't be able to do so since you've only copied the front-end code (of the current page you're viewing) and the back-end code (which is run from the server and is triggered by the search bar) is not something you can view nor have access to. Each page has a different output too, you could just view the source code of the current page you're viewing and copy it into your own files. Let's say you wanted to access verse 1:1 and 1:2 from your downloaded site, you'd need the source code for both in two seperate .html files. So if you wanted to access all the verses you'd basically have to create that many files for each verse but you'd probaly need to write/modify some code to get it to work too. I think people have made backups for the site incase it goes down, corpus quran site is a pretty great site for learning and very popular so I'd assume they would be careful with losing the site by creating things like backups etc so it's pretty much no worries. They've also got their own API which I'm pretty sure a lot of developers have used so there should be things like softwares or websites out there that are able to use that which exists on Corpus Qur'an e.g verses etc.

Wakas

Does anyone know of an android app version of the corpus quran website, or an app that has similar functionality, e.g. type in verse and it displays the English/Arabic word for word and the grammar?


Source code: http://corpus.quran.com/java/download.jsp
All information in my posts is correct to the best of my knowledge only and thus should not be taken as a fact. One should seek knowledge and verify: 17:36, 20:114, 35:28, 49:6, 58:11. [url="http://mypercept.co.uk/articles/"]My articles[/url]

[url="//www.studyquran.org"]www.studyQuran.org[/url]

Cerberus

I'm not sure if you're downloading the website properly. Are you using HTTrack ? You should be.
Otherwise, that website is actually a web app. That's why you'll probably have issues.

عوني

I found this, I'm not sure if it helps you but it does use seem to support the feature corpus Qur'an uses including root searching etc although judging by the site not all of the features seem to be done yet as it's still in development. http://qurandev.github.io/

The way you install it is download the file, extract it to a folder and inside the folder open the file index.html with chrome, firefox or any other web browser and you'll be able to use it.

عوني

Quote from: Wakas on January 27, 2018, 05:27:07 PM
Does anyone know of an android app version of the corpus quran website, or an app that has similar functionality, e.g. type in verse and it displays the English/Arabic word for word and the grammar?


Source code: http://corpus.quran.com/java/download.jsp

Salam Wakas I think there's an app that sorta does what you're looking for, the app is named "Al Quran (Tafsir & By Word)".

Quote from: Cerberus on January 27, 2018, 06:11:33 PMI'm not sure if you're downloading the website properly. Are you using HTTrack ? You should be.
Otherwise, that website is actually a web app. That's why you'll probably have issues.

True. But I think what he wants to be able to do is to e.g search in his downloaded site which is a feature that wouldn't work. Anything that requires server-side code won't work. Anything that requires client-side code would.

Wakas

Quote from: عوني on January 28, 2018, 03:20:17 PM
Salam Wakas I think there's an app that sorta does what you're looking for, the app is named "Al Quran (Tafsir & By Word)".


That's a useful app, thanks. It's similar to corpus but less grammar info.
All information in my posts is correct to the best of my knowledge only and thus should not be taken as a fact. One should seek knowledge and verify: 17:36, 20:114, 35:28, 49:6, 58:11. [url="http://mypercept.co.uk/articles/"]My articles[/url]

[url="//www.studyquran.org"]www.studyQuran.org[/url]

عوني

Quote from: Wakas on January 28, 2018, 06:16:09 PM
That's a useful app, thanks. It's similar to corpus but less grammar info.

No worries you're welcome. I think that site qurandev (http://qurandev.github.io/) works too but it's still in development. The website says that it can run on "PC, mobile, iPad, iPhone, Android... or offline." although I'm not sure how you install it on the Android but someone wrote something regarding it in the comment section but it was a 5 years old comment not sure if it still works now.