[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: al quraan
- To: <developer at arabeyes dot org>
- Subject: Re: al quraan
- From: "Hatem Ben" <reflex_news at hotmail dot com>
- Date: Thu, 31 Oct 2002 12:10:55 +0100
Salam
[I'm back again to check my email, sorry can't do it for long time :-( ]
Just some suggestion about Quraan text and mp3 (and audio in general), it's
better to use specific attributes for text, audio ! xml allow that, and
that's better like :
<quran lang="{LANG}" version="{VERSION}">
<sura id="{SURA_ID}" name="{SURA_NAME}" audio="{SURA_MP3_FILE_NAME}"
audiotype="{SURA_MP3_FILE_TYPE}">
<aya id="{AYA_ID}" audio="{AYA_MP3_FILE_NAME}"
audiotype="{AYA_MP3_FILE_TYPE}">{AYA_TEXT}</aya>
</sura>
</quran>
This is a proposal for DTD :
<?xml version="1.0" encoding="UTF-8"?>
<!--
Quraan dtd
-->
<!ELEMENT quran (surat | meta)+>
<!ATTLIST quran
lang NMTOKEN #IMPLIED
version CDATA #REQUIRED
>
<!ELEMENT meta EMPTY>
<!ATTLIST meta
name NMTOKEN #IMPLIED
content CDATA #REQUIRED
http-equiv NMTOKEN #IMPLIED
>
<!ENTITY % lang "NMTOKEN">
<!ENTITY % version "NMTOKEN">
<!ELEMENT sura aya #REQUIRED>
<!ATTLIST sura
id ID #REQUIRED
name NMTOKEN #REQUIRED
audio CDATA #IMPLIED
audiotype CDATA #IMPLIED
>
<!ELEMENT aya CDATA>
<!ATTLIST aya
id ID #REQUIRED
audio CDATA #IMPLIED
audiotype CDATA #IMPLIED
>
Otherwise if you want to include offset :
<quran lang="{LANG}" version="{VERSION}">
<sura id="{SURA_ID}" name="{SURA_NAME}">
<audio suraid="{SURA_ID}" audio="{SURA_MP3_FILE_NAME}"
audiotype="{SURA_MP3_FILE_TYPE}" offset="{OFFSET}"
offsetlength="{OFFSET_LENTGH}"/>
<aya id="{AYA_ID}">{AYA_TEXT}</aya>
<audio ayaid="{AYA_ID}" audio="{AYA_MP3_FILE_NAME}"
audiotype="{AYA_MP3_FILE_TYPE}" offset="{OFFSET}"
offsetlength="{OFFSET_LENTGH}"/>
</sura>
</quran>
Hope this will help
and greetings for all :)
Hatem
----- Original Message -----
From: "Mohammad DAMT" <md at mt dot web dot id>
To: <developer at arabeyes dot org>
Sent: Thursday, October 31, 2002 5:16 AM
Subject: Re: al quraan
> On Wed, Oct 30, 2002 at 10:35:32PM +0200, Mohammed Sameer wrote:
> > well done, i had a look at the code, however i didn't understand why we
pass the first argument to guran_init ?
>
> I'm going to change the quran_init API, so the only argument is the
> location of the file. Quran lang will be determined by XML file, so we
> must alter XML file to something like this
>
> <quran lang="ar" mediatype="text">
> <quran lang="ar" mediatype="mp3">
>
> for "mp3" media type, we will have
> <sura id=1 name="al fatiha">
> <aya id=1>
> <qurandata file="alfatiha.mp3" offset=0/>
> </aya>
> <aya id=2>
> <qurandata file="alfatiha.mp3" offset=xxxxx length=zzzzz/>
> </aya>
> <aya id=3>
> <qurandata file="alfatiha.mp3" offset=yyyyy length=ttttt/>
> </aya>
> ...
> </sura>
>
> where xxxxx and yyyyy are offset to mp3 stream. In the implementation,
> if we want to hear aya#2 of alfatiha, we just open the alfatiha.mp3 as
stream and play the stream starting from offset
> xxxxx for zzzzzz bytes.
>
> what do you think?
>
>
> > ok now ? the library is GPLed ? what's the license for the data files ??
>
> yes it is GPL
> but for the data file, I have no idea.
> should we make a new license, say, "ISLAM License"?
>
> > I think it's time to start coding ;)
>
> Last night, I've started the GNOME client, I hope it will be available
> soon.
>
> --
> Mohammad DAMT <mdamt at mdamt dot com> http://www.mdamt.net
> "biar kate disruduk kambing abang mati kaku, asal bisa idup ame nyai
dasime", Nyai Dasime Kembang Pejambon, Benjamin S.
> _______________________________________________
> Developer mailing list
> Developer at arabeyes dot org
> http://arabeyes.org/mailman/listinfo/developer
>