views:

148

answers:

2

I am looking here to create a Facebook App on Hadeeth.

My first question is for muslim programmers here because other might not be having clue. Is it possible to find hadeeth in csv / sql (at least the popular ones like bukhari, muslim, tirmidhi)

otherwise

Do we have any tools or is it possible to convert CHM files into CSV or SQL ? This way I can create my own database.

Thanks for the help as always :)

+2  A: 

BTW, you should specify the language (English, Arabic...) in which you wish to build this dataset, as this affect both the selection of book sources and the conversion utilities.

Identifiying data content sources:
Interestingly, and for all the [interactive] online Hadeeth Search tools such as the one on the
CRCC's Compendium of Muslim Texts site (original from MSA West, but somehow not available/working at MSA site anymore), there doesn't seem to be any download-able version of the underlying databases!
There are several online versions of books themselves, in particular the popular ones you mention, but you would then need to parse and index them properly in order to retain the references etc. Also, going "back" to the books, you would have to relate them yourself.

With regards to converting CHM files...
There's no open source or freeware program that I'm aware of, but the shareware ABC Amber CHM converter (c. $25.00) appears to be the gold standard for that purpose.
I only had passing exposure to this software a couple of years ago, for a one-time conversion job similar to the one you are contemplating. The Amber converter "did the trick"; Luckily the underlying structure of the help pages exposed much regularity which allowed a relatively straight forward tabulation into CSV/database fields.
ABC Amber converter supports many languages, including Arabic (but I used it for English only).

mjv
+2  A: 

There is a wellknown open source *nix lib called libchm on which most *nix chm viewers are based. It comes with a tool to decompress .chm to its .html originals (from which you then would have to convert the html tables to .csv)

Lazarus/Free Pascal also has libs, that even can write, but afaik no readily made "chm compiler" tool.

Marco van de Voort
thanks +1 .. but I was looking for a windows solution
atif089
There are windows versions I think. Quite some chance that the Amber thing is using it.
Marco van de Voort