problem playing recitation audio

131 views
Skip to first unread message

Imran Malik

unread,
Oct 10, 2007, 8:46:07 PM10/10/07
to zekr
السلام و علیکم برادران اسلام
i m unable to play audio recitation after updating to 0.6.6 version.
do i need to update any file or folder?
i m using windows xp professional.
plz help
اللہ حافذ

Imran Malik

unread,
Oct 10, 2007, 8:57:57 PM10/10/07
to zekr
السلام و علیکم برادران اسلام
sorry i was mistaken, actually i m unable to play only سورہ المزمل
( surah no 73) rest are playing fine.

Mohsen Saboorian

unread,
Oct 11, 2007, 3:44:08 AM10/11/07
to ze...@googlegroups.com
Salaam.

Imran, which recitation you are using? Minshawi's online?

MP3 files may have problems. I'll check them later. Anyone can confirm
this problem? I have no audio support to check it by now.

Imran Malik

unread,
Oct 11, 2007, 5:21:35 PM10/11/07
to zekr
السلام و علیکم برادران اسلام
i m using minshawi's offline. i have checked the all (20 nos) mp3 of
73rd Surah Al-Muzammil, these r playing fine in all media players.

On Oct 11, 12:44 pm, "Mohsen Saboorian" <mohs...@gmail.com> wrote:
> Salaam.
>
> Imran, which recitation you are using? Minshawi's online?
>
> MP3 files may have problems. I'll check them later. Anyone can confirm
> this problem? I have no audio support to check it by now.
>

serge.m...@gmail.com

unread,
Oct 11, 2007, 7:32:14 PM10/11/07
to zekr
Salaam & Eid Mubarak Brothers & Sisters
Let me start by saying thank you and may Allah bless and reward you
for providing such a wonderful tool. It has all functionality a new
muslim could hope for, to learn the noble Qur'an.
I'm using Zekr on a Mac and I'm unable to play audio. I haven't been
able at all on the Mac with either the new version or the previous
one. I have tried both online and offline (downloaded the MP3's and
followed the instructions on the wiki).
The MP3's play fine in a standalone media player btw.
Perhaps I'm missing something?
Wasalaam


On Oct 11, 9:44 am, "Mohsen Saboorian" <mohs...@gmail.com> wrote:
> Salaam.
>
> Imran, which recitation you are using? Minshawi's online?
>
> MP3 files may have problems. I'll check them later. Anyone can confirm
> this problem? I have no audio support to check it by now.
>

Mohsen Saboorian

unread,
Oct 11, 2007, 10:04:55 PM10/11/07
to ze...@googlegroups.com
Salamun alaikum,

> i m using minshawi's offline. i have checked the all (20 nos) mp3 of
> 73rd Surah Al-Muzammil, these r playing fine in all media players.

There seems to be no problem. I double checked both online and offline
Minshawi recitation. Sura 73 is playing fine using both of them.
Anyone elese had this problem with Minshawi recitation?

Are you able to play other suras?
Do you have the latest version of Flash player for your Internet
Explorer (if using Windows)? It's 9,0,47,0 for now. Check it here:
http://www.macromedia.com/software/flash/about/

Mohsen.

Mohsen Saboorian

unread,
Oct 11, 2007, 10:31:42 PM10/11/07
to ze...@googlegroups.com
Salaam,

> Salaam & Eid Mubarak Brothers & Sisters

Also for you, inshaAllah.

> Let me start by saying thank you and may Allah bless and reward you
> for providing such a wonderful tool. It has all functionality a new
> muslim could hope for, to learn the noble Qur'an.

You are welcome. I'm really happy to here that :)

> I'm using Zekr on a Mac and I'm unable to play audio. I haven't been
> able at all on the Mac with either the new version or the previous
> one. I have tried both online and offline (downloaded the MP3's and
> followed the instructions on the wiki).
> The MP3's play fine in a standalone media player btw.
> Perhaps I'm missing something?
> Wasalaam

We had no feedback yet if recitation feature works on Mac. Someone
else also reported that this isn't working on Mac:
http://groups.google.com/group/zekr/browse_thread/thread/d96e46858349005c

Please check if you have latest flash plugin for your Safari:
http://www.macromedia.com/software/flash/about/

Is MP3 player shown on the bottom of the page? You should see a player
like the one on the bottom of this screenshot:
http://zekr.googlegroups.com/web/zekr-ramadan-edition-mixed.png

As of Zekr 0.6.6, it's possible to use XULRunner as the default
browser (e.g. instead of Safari on Mac). I was able to play
recitations using XULRunner on Windows, and it's also reported to work
on Debian as well.

Firstly, install flash plugin for your Firefox on Mac (and check if
you are able to watch youtube), then follow instructions here to
install XULRunner:
http://developer.mozilla.org/en/docs/XULRunner_1.8.0.4_Release_Notes#Installing_XULRunner

After that, open ~/.zekr/config/config.properties and set useMozilla
property to true:
options.browser.useMozilla = true

Now start Zekr and check if you can see Quran ayas and browse through the Quran.

If you are still unable to see flash on the page, follow these steps
to enable flash for your XULRunner, and check again if this works with
Zekr:
http://groups.google.com/group/mozilla.dev.tech.plugins/browse_thread/thread/94bda6a4f35a9a0f/0c193cf4a9fd2235?#0c193cf4a9fd2235

Please let us know if these hints helped. I never touched a Mac in my life ;)

Regards,
Mohsen.

serge.m...@gmail.com

unread,
Oct 12, 2007, 10:44:52 AM10/12/07
to zekr
Salaam Mohsen,
I installed the XULRunner, the latest Flash (works in Mozilla) and
enabed the mozillabrowser in config.properties. Unfortunately that
didn't work on my system. I got the following error and Zekr exists
after that:

org.eclipse.swt.SWTError: No more handles [Failed to use detected
XULRunner: /Library/Frameworks/XUL.framework/Versions/1.8.0.4]
org.eclipse.swt.SWT.error(Unknown Source)
org.eclipse.swt.browser.Mozilla.create(Unknown Source)
org.eclipse.swt.browser.Browser.<init>(Unknown Source)
net.sf.zekr.ui.QuranForm.makeFrame(QuranForm.java:380)
net.sf.zekr.ui.QuranForm.init(QuranForm.java:257)
net.sf.zekr.ui.QuranForm.<init>(QuranForm.java:233)
net.sf.zekr.ZekrMain.startZekr(ZekrMain.java:52)
net.sf.zekr.ZekrMain.main(ZekrMain.java:86)

I hope this gives some further hints as to the cause of the problem.

Wasalaam,
Amir

On Oct 12, 4:31 am, "Mohsen Saboorian" <mohs...@gmail.com> wrote:
> Salaam,
>
> > Salaam & Eid Mubarak Brothers & Sisters
>
> Also for you, inshaAllah.
>
> > Let me start by saying thank you and may Allah bless and reward you
> > for providing such a wonderful tool. It has all functionality a new
> > muslim could hope for, to learn the noble Qur'an.
>
> You are welcome. I'm really happy to here that :)
>
> > I'm using Zekr on a Mac and I'm unable to play audio. I haven't been
> > able at all on the Mac with either the new version or the previous
> > one. I have tried both online and offline (downloaded the MP3's and
> > followed the instructions on the wiki).
> > The MP3's play fine in a standalone media player btw.
> > Perhaps I'm missing something?
> > Wasalaam
>
> We had no feedback yet if recitation feature works on Mac. Someone

> else also reported that this isn't working on Mac:http://groups.google.com/group/zekr/browse_thread/thread/d96e46858349...


>
> Please check if you have latest flash plugin for your Safari:http://www.macromedia.com/software/flash/about/
>
> Is MP3 player shown on the bottom of the page? You should see a player
> like the one on the bottom of this screenshot:http://zekr.googlegroups.com/web/zekr-ramadan-edition-mixed.png
>
> As of Zekr 0.6.6, it's possible to use XULRunner as the default
> browser (e.g. instead of Safari on Mac). I was able to play
> recitations using XULRunner on Windows, and it's also reported to work
> on Debian as well.
>
> Firstly, install flash plugin for your Firefox on Mac (and check if
> you are able to watch youtube), then follow instructions here to

> install XULRunner:http://developer.mozilla.org/en/docs/XULRunner_1.8.0.4_Release_Notes#...


>
> After that, open ~/.zekr/config/config.properties and set useMozilla
> property to true:
> options.browser.useMozilla = true
>
> Now start Zekr and check if you can see Quran ayas and browse through the Quran.
>
> If you are still unable to see flash on the page, follow these steps
> to enable flash for your XULRunner, and check again if this works with

> Zekr:http://groups.google.com/group/mozilla.dev.tech.plugins/browse_thread...

Imran Malik

unread,
Oct 12, 2007, 5:19:50 PM10/12/07
to zekr
>Are you able to play other suras?
yes dear i m playing all the rest surah very fine. only 73rd is not
playing (all the aya's r not playing)
i have the latest flash installed, also if all other r playing well
then y not 73rd? strange?

On Oct 12, 7:44 pm, "a...@meeuwsen.bz" <serge.meeuw...@gmail.com>
wrote:

Mohsen Saboorian

unread,
Oct 13, 2007, 3:54:28 AM10/13/07
to ze...@googlegroups.com
Salaam,

Try this and tell if it's still not working (if you are in Windows):
Internet Explorer > Tools > Optins > (General Tab) Click Delete Files
(Alf+F) > OK.

Then launch Zekr again and see if recitation for sura 73 works. Flash
caches MP3s on your IE cache, so once you downloaded a buggy MP3, it
doesn't download it again, unless you delete the cache manually

Mohsen.

Mohsen Saboorian

unread,
Oct 13, 2007, 4:15:05 AM10/13/07
to ze...@googlegroups.com
Salaam,

> I installed the XULRunner, the latest Flash (works in Mozilla) and
> enabed the mozillabrowser in config.properties. Unfortunately that
> didn't work on my system. I got the following error and Zekr exists
> after that:

Sorry, you have an old version of XULRunner, which doesn't work on Mac
according to this:
http://www.eclipse.org/swt/faq.php#howusemozilla

On OSX, you should have 1.8.1.2 or newer. Download the latest
XULRunner from here:
http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.8.1.3/contrib/mac/

Before installing, follow instructions here to fully uninstall previous version:
http://developer.mozilla.org/en/docs/XULRunner_1.8.0.4_Release_Notes#Uninstalling_XULRunner

Also make sure that you have "Java for Mac OS X 10.4, Release 5" or
newer (agian according to
http://www.eclipse.org/swt/faq.php#howusemozilla).

Having options.browser.useMozilla = true in config file, test again if
you can launch Zekr, and have recitation support.

Let's know if this worked.

Best,
Mohsen.

serge.m...@gmail.com

unread,
Oct 13, 2007, 7:58:17 AM10/13/07
to zekr
Salaam Mohsen,
I executed all the steps listed and now have the latest version of
XULRunner and Java version 1.5.0_07.
Zekr now starts but alas still no audio recitation.
I hope there is something else we can check/try as it would be helpful
having this feature working. In any case thanks for you support so
far.
Wasalaam

On Oct 13, 10:15 am, "Mohsen Saboorian" <mohs...@gmail.com> wrote:
> Salaam,
>
> > I installed the XULRunner, the latest Flash (works in Mozilla) and
> > enabed the mozillabrowser in config.properties. Unfortunately that
> > didn't work on my system. I got the following error and Zekr exists
> > after that:
>
> Sorry, you have an old version of XULRunner, which doesn't work on Mac
> according to this:http://www.eclipse.org/swt/faq.php#howusemozilla
>
> On OSX, you should have 1.8.1.2 or newer. Download the latest

> XULRunner from here:http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.8.1....
>
> Before installing, follow instructions here to fully uninstall previous version:http://developer.mozilla.org/en/docs/XULRunner_1.8.0.4_Release_Notes#...


>
> Also make sure that you have "Java for Mac OS X 10.4, Release 5" or

> newer (agian according tohttp://www.eclipse.org/swt/faq.php#howusemozilla).

Mohsen Saboorian

unread,
Oct 13, 2007, 3:18:08 PM10/13/07
to ze...@googlegroups.com
Salaam,

Can you send here screen shots using both Safari and XULRunner as the
browser for Zekr?

Also give this a try:
1. Launch Zekr
2. Goto 1:1, chosing Shakir's translation in Mixed layout.
3. Open Safari, and go to
http://127.0.0.1:8920/[cache]/mixed/1_shakir.html. Check if recitation
works that way (a screen shot is again appreciated).

Thanks.

serge.m...@gmail.com

unread,
Oct 13, 2007, 6:23:13 PM10/13/07
to zekr
Salaam once again :-)
Ok tried that, but no luck, mailing the screenshots to you seperately.
Wasalaam,
Amir

On Oct 13, 9:18 pm, "Mohsen Saboorian" <mohs...@gmail.com> wrote:
> Salaam,
>

> Can you send here screen shots using both Safari and XULRunner as the
> browser for Zekr?
>
> Also give this a try:
> 1. Launch Zekr
> 2. Goto 1:1, chosing Shakir's translation in Mixed layout.

> 3. Open Safari, and go tohttp://127.0.0.1:8920/[cache]/mixed/1_shakir.html. Check if recitation


> works that way (a screen shot is again appreciated).
>
> Thanks.
>

Imran Malik

unread,
Oct 13, 2007, 6:38:23 PM10/13/07
to zekr
>Try this and tell if it's still not working (if you are in Windows):
>Internet Explorer > Tools > Optins > (General Tab) Click Delete Files
>(Alf+F) > OK.
Salam and EID Mubarak
i triedbut still the same...i even deleted the files and re-pasted
these but no use :(
thanx

On Oct 13, 12:54 pm, "Mohsen Saboorian" <mohs...@gmail.com> wrote:
> Salaam,
>

> Try this and tell if it's still not working (if you are in Windows):
> Internet Explorer > Tools > Optins > (General Tab) Click Delete Files
> (Alf+F) > OK.
>
> Then launch Zekr again and see if recitation for sura 73 works. Flash
> caches MP3s on your IE cache, so once you downloaded a buggy MP3, it
> doesn't download it again, unless you delete the cache manually
>
> Mohsen.
>

serge.m...@gmail.com

unread,
Oct 13, 2007, 6:43:15 PM10/13/07
to zekr
Ok... I realized I can't tell what your email address is...

So trying this way:
1. screenshot of Zekr ; <a title="Zekr Screenshot" href="http://
www.flickr.com/photos/93967075@N00/1563351620/"><img src="http://
static.flickr.com/2207/1563351620_7356ee9388_m.jpg" border="0" /></a>
2. screenshot of Safari ; <a title="Safari Screenshot" href="http://
www.flickr.com/photos/93967075@N00/1562473245/"><img src="http://
static.flickr.com/2181/1562473245_7ad00bc778_m.jpg" border="0" /></a>

Hope the above works...

Wasalaam


On Oct 14, 12:23 am, "a...@meeuwsen.bz" <serge.meeuw...@gmail.com>
wrote:

Mohsen Saboorian

unread,
Oct 13, 2007, 11:50:07 PM10/13/07
to ze...@googlegroups.com
Salaam,

Amir, from the following screenshot (Safari?), it means that you have
no flash support on that, otherwise you should see the SWF object on
the bottom of the page:
http://www.flickr.com/photo_zoom.gne?id=1562473245&size=o

something like:
http://zekr.googlegroups.com/web/zekr-ramadan-edition-mixed.png

If your flash doesn't work on Safari, try to load this page on Firefox:
http://127.0.0.1:8920/[cache]/mixed/1_shakir.html, and see if flash is shown.

How about this page: http://www.jeroenwijering.com/?item=jw_mp3_player
Can you see MP3 player on that using Safari (a screenshot is attached
from the player)?

Mohsen.

jwplayer-website.png

serge.m...@gmail.com

unread,
Oct 14, 2007, 7:52:10 PM10/14/07
to zekr
Salaam Mohsen,
Thanks for your patience :-) I suppose in the end this would also help
out other Mac users (assuming I'm not the only one with this problem).

Ok, I tried the http://127.0.0.1:8920/[cache]/mixed/1_shakir.html link
in Firefox and indeed the flashplayer appeared on the page (although
switching back n forth a few times I noticed some problems with
redrawing the controls back on the screen, but that's prolly a flash
issue on Mac).
Next I tried was opening http://www.jeroenwijering.com/?item=jw_mp3_player
with Safari. Low n behold, the player appeared on that page and I was
able to play the music. So it seems that flash is definitely working
in Safari, except for some reason not on the page served by
http://127.0.0.1:8920/[cache]/mixed/1_shakir.html...
Doesn't seem logical. 2 things puzzle me:
1. how come Safari shows the flashplayer on that one page but not the
one served by the internal webserver Zekr uses?
2. how come firefox can display the flashplayer but Zekr (using
XULRunner, which as I understand it is a Mozilla app too) doesn't?

1. leads me too believe that Safari interprets the HTML or rather the
javascripts that 'generate' the flashplayer on the page incorrectly.
Maybe cuz the function that calls it is in a seperate .js file?? or it
has a problem with the nr of nested levels of javascript functions??
2. this boggles me and leads me to believe XULRunner is:
a) not really being used
b) interprets javascript differently then firefox does and also
not 'compatible' with the Zekr scripts.

Anyway just guessing, hope it makes more sense to you :-)

Thanks and InshAllah we'll find a way to make it work. Let me know
what else I can do/test. Just f.y.i, I have the Apple supplied
developer tools installed on my Mac as well in case you need more
thorough testing done (since as you mentioned you don't have access to
a Mac).

Allah Hafez & wasalaam,
Amir


On Oct 14, 5:50 am, "Mohsen Saboorian" <mohs...@gmail.com> wrote:
> Salaam,
>

> Amir, from the following screenshot (Safari?), it means that you have
> no flash support on that, otherwise you should see the SWF object on
> the bottom of the page:http://www.flickr.com/photo_zoom.gne?id=1562473245&size=o
>
> something like:http://zekr.googlegroups.com/web/zekr-ramadan-edition-mixed.png
>
> If your flash doesn't work on Safari, try to load this page on Firefox:http://127.0.0.1:8920/[cache]/mixed/1_shakir.html, and see if flash is shown.
>
> How about this page:http://www.jeroenwijering.com/?item=jw_mp3_player
> Can you see MP3 player on that using Safari (a screenshot is attached
> from the player)?
>
> Mohsen.
>

> jwplayer-website.png
> 273KViewDownload

Mohsen Saboorian

unread,
Oct 15, 2007, 4:29:05 PM10/15/07
to ze...@googlegroups.com
Salaam,

> Thanks for your patience :-) I suppose in the end this would also help
> out other Mac users (assuming I'm not the only one with this problem).

Me too!

> Ok, I tried the http://127.0.0.1:8920/[cache]/mixed/1_shakir.html link
> in Firefox and indeed the flashplayer appeared on the page (although
> switching back n forth a few times I noticed some problems with
> redrawing the controls back on the screen, but that's prolly a flash
> issue on Mac).
> Next I tried was opening http://www.jeroenwijering.com/?item=jw_mp3_player
> with Safari. Low n behold, the player appeared on that page and I was
> able to play the music. So it seems that flash is definitely working
> in Safari, except for some reason not on the page served by
> http://127.0.0.1:8920/[cache]/mixed/1_shakir.html...
> Doesn't seem logical. 2 things puzzle me:
> 1. how come Safari shows the flashplayer on that one page but not the
> one served by the internal webserver Zekr uses?

The only reasonable difference is the JS library used to dynamically
load flash on the page. That website uses swfobject, while Zekr uses
ufo which although should act similar, but are actually different.
Most notably, swfobject uses <embed> tag (deprecated in favor of the
<object> tag), while ufo inserts <object> tags to embed flash objects.

I made some changes to player.js so that being comatible with
SWFObjects library. Please download these 2 files, and replace
exsiting one with them on [zekr]/res/ui/js:
http://zekr.googlegroups.com/web/player.js
http://zekr.googlegroups.com/web/ufo.js

The former is modified player.js to work with SWFObject instead of
UFO. The latter is actually SWFObject, but renamed to ufo.js for
compatibility.

If Safari problem is about the use of <object> element, this should be
resolved, inshaAllah.

> 2. how come firefox can display the flashplayer but Zekr (using
> XULRunner, which as I understand it is a Mozilla app too) doesn't?

I don't know exactly, but this should not be strange because XULRunner
might not see plugin folder of Firefox. Just Google if this is
possible to have flash work on XULRunner... This is possible on my
Windows machine.

> 1. leads me too believe that Safari interprets the HTML or rather the
> javascripts that 'generate' the flashplayer on the page incorrectly.
> Maybe cuz the function that calls it is in a seperate .js file?? or it
> has a problem with the nr of nested levels of javascript functions??
> 2. this boggles me and leads me to believe XULRunner is:
> a) not really being used
> b) interprets javascript differently then firefox does and also
> not 'compatible' with the Zekr scripts.

It's used actually. You can see the difference in text rendering (see
small alef rendering problem in two screenshots you sent). B is also
not correct, since their JavaScript engine is the same. The problem is
plugin installation, which is not detected by XULRunner. See,
XULRunner is still not a production release. It's yet in it's
development stage.

> Thanks and InshAllah we'll find a way to make it work. Let me know
> what else I can do/test. Just f.y.i, I have the Apple supplied
> developer tools installed on my Mac as well in case you need more
> thorough testing done (since as you mentioned you don't have access to
> a Mac).

Can you investigate how to solve the rendering problem with small alef
characters on Mac (for example see 1:3, the word " الرَّحْمٰنِ " is
rendered incorrectly with the font being used in your screenshot). I
think this can be solved by using another Arabic-compatible font
(Tools > Options > View > Theme settings > quran_fontName). Did you
tried Scheherazade?

Regards,
Mohsen.

serge.m...@gmail.com

unread,
Oct 15, 2007, 10:52:12 PM10/15/07
to zekr
Salaam Mohsen,
We've solved the 'mystery' Alhamdulilah :D

I downloaded and installed the new .js files. They did not make a
difference initially. Nor for XULRunner (still using the
mozilla.browser =true setting) nor for Safari (using the localhost
link from earlier).
So it doesn't seems related to the <object> element.

I downloaded the WebRunner 0.7 Application for Mac (which is a
packaged XULRunner) version shows; rv:1.9a9pre Gecko/2007092308. I
ran it with the http://127.0.0.1:8920/[cache]/mixed/1_shakir.html uri
parameter and indeed, the flashplayer showed! Note tho that it did not
display the Arabic font correctly (same problem as Safari).
This was promising so I continued my quest and I finally figured out
what was meant in that other link to a google groups article about the
flash plugin not working on XULRunner on the Mac. There is a plugin
folder in the /Library/frameworks/xul.framework directory and I copied
the flash plugin in there and that did it! So it now works cept for
that strange screen redraw issue (where the buttons don't show
fully).
Conclusion; your analysis was right about XULRunner. The missing link
was how to get XULRunner to recognize and use the flashplugin...
Alhamdulilah :-)

I have also included another screenshot showing both Safari n Zekr.
You can see the Zekr renders the Arabic font correctly but Safari for
some reason doesn't, no matter what font or theme I use (tried
several, sherezade,...
http://zekr.googlegroups.com/web/amir_m-screendump1.png?gda=s4SmbEcAAACihKM40EQ_XKwDhDEzQkIWGt3IR5OmGU6JSruvHqV0F2G1qiJ7UbTIup-M2XPURDRyuMo5maUt3RXIU5nqhfn9j7rrnI2TR4ZYG-A-MGIxOg

Wasalaam

On Oct 15, 10:29 pm, "Mohsen Saboorian" <mohs...@gmail.com> wrote:
> Salaam,
>
> > Thanks for your patience :-) I suppose in the end this would also help
> > out other Mac users (assuming I'm not the only one with this problem).
>
> Me too!
>

> > Ok, I tried thehttp://127.0.0.1:8920/[cache]/mixed/1_shakir.html link


> > in Firefox and indeed the flashplayer appeared on the page (although
> > switching back n forth a few times I noticed some problems with
> > redrawing the controls back on the screen, but that's prolly a flash
> > issue on Mac).

> > Next I tried was openinghttp://www.jeroenwijering.com/?item=jw_mp3_player


> > with Safari. Low n behold, the player appeared on that page and I was
> > able to play the music. So it seems that flash is definitely working
> > in Safari, except for some reason not on the page served by
> >http://127.0.0.1:8920/[cache]/mixed/1_shakir.html...
> > Doesn't seem logical. 2 things puzzle me:
> > 1. how come Safari shows the flashplayer on that one page but not the
> > one served by the internal webserver Zekr uses?
>
> The only reasonable difference is the JS library used to dynamically
> load flash on the page. That website uses swfobject, while Zekr uses
> ufo which although should act similar, but are actually different.
> Most notably, swfobject uses <embed> tag (deprecated in favor of the
> <object> tag), while ufo inserts <object> tags to embed flash objects.
>
> I made some changes to player.js so that being comatible with
> SWFObjects library. Please download these 2 files, and replace

> exsiting one with them on [zekr]/res/ui/js:http://zekr.googlegroups.com/web/player.jshttp://zekr.googlegroups.com/web/ufo.js

Mohsen Saboorian

unread,
Oct 15, 2007, 11:58:26 PM10/15/07
to ze...@googlegroups.com
Salaam,

> We've solved the 'mystery' Alhamdulilah :D

Good news :) Alhamdulillah.

> I downloaded and installed the new .js files. They did not make a
> difference initially. Nor for XULRunner (still using the
> mozilla.browser =true setting) nor for Safari (using the localhost
> link from earlier).
> So it doesn't seems related to the <object> element.
>
> I downloaded the WebRunner 0.7 Application for Mac (which is a
> packaged XULRunner) version shows; rv:1.9a9pre Gecko/2007092308. I
> ran it with the http://127.0.0.1:8920/[cache]/mixed/1_shakir.html uri
> parameter and indeed, the flashplayer showed! Note tho that it did not
> display the Arabic font correctly (same problem as Safari).
> This was promising so I continued my quest and I finally figured out
> what was meant in that other link to a google groups article about the
> flash plugin not working on XULRunner on the Mac. There is a plugin
> folder in the /Library/frameworks/xul.framework directory and I copied
> the flash plugin in there and that did it! So it now works cept for
> that strange screen redraw issue (where the buttons don't show
> fully).

Still I have no clue why
http://www.jeroenwijering.com/?item=jw_mp3_player is shown correctly
in Safari, but localhost Zekr HTMLs are not!

Linux has the same thing with plugin folder of XULRunner, and I don't
know why Windows just works perfectly without any need for those
configuration :)

Regarding font issue, I've heard that OSX has problems with rendering
Arabic text using OpenType fonts. Can you use other kind of fonts like
XW Zar, XB Zar, Geeza Pro or other non-OT fonts available there.

> Conclusion; your analysis was right about XULRunner. The missing link
> was how to get XULRunner to recognize and use the flashplugin...
> Alhamdulilah :-)
>
> I have also included another screenshot showing both Safari n Zekr.
> You can see the Zekr renders the Arabic font correctly but Safari for
> some reason doesn't, no matter what font or theme I use (tried
> several, sherezade,...
> http://zekr.googlegroups.com/web/amir_m-screendump1.png?gda=s4SmbEcAAACihKM40EQ_XKwDhDEzQkIWGt3IR5OmGU6JSruvHqV0F2G1qiJ7UbTIup-M2XPURDRyuMo5maUt3RXIU5nqhfn9j7rrnI2TR4ZYG-A-MGIxOg
>
> Wasalaam

Can you please add these notes to Mac installation manual here (if you
find some free time):
http://siahe.com/zekr/wiki/index.php?title=Installation#Mac
There seems to be tricks for having XULRunner, installing flash
player, and having XULRunner's flash work in Zekr...

Best,
Mohsen.

P.S.
I'll be out on a trip until Oct. 21, so cannot answer any email here till then.

serge.m...@gmail.com

unread,
Oct 16, 2007, 6:36:06 PM10/16/07
to zekr
Salaam Mohsen,
I will write up the notes for the Mac Install in the coming days
InshAllah.
With regards to the font issue, I have a whole number of them listed
currently. Is it just the first one in that line (seperated by
comma's) that it uses? I couldn't tell easily. I did try the Geeza Pro
font also (put that as first in the line that shows the multiple font,
but this didn't not change anything.
So maybe I need to have only one font there at a time?
Wasalaam,
Amir


On Oct 16, 5:58 am, "Mohsen Saboorian" <mohs...@gmail.com> wrote:
> Salaam,
>
> > We've solved the 'mystery' Alhamdulilah :D
>
> Good news :) Alhamdulillah.
>
>
>
> > I downloaded and installed the new .js files. They did not make a
> > difference initially. Nor for XULRunner (still using the
> > mozilla.browser =true setting) nor for Safari (using the localhost
> > link from earlier).
> > So it doesn't seems related to the <object> element.
>
> > I downloaded the WebRunner 0.7 Application for Mac (which is a
> > packaged XULRunner) version shows; rv:1.9a9pre Gecko/2007092308. I

> > ran it with thehttp://127.0.0.1:8920/[cache]/mixed/1_shakir.html uri


> > parameter and indeed, the flashplayer showed! Note tho that it did not
> > display the Arabic font correctly (same problem as Safari).
> > This was promising so I continued my quest and I finally figured out
> > what was meant in that other link to a google groups article about the
> > flash plugin not working on XULRunner on the Mac. There is a plugin
> > folder in the /Library/frameworks/xul.framework directory and I copied
> > the flash plugin in there and that did it! So it now works cept for
> > that strange screen redraw issue (where the buttons don't show
> > fully).
>

> Still I have no clue whyhttp://www.jeroenwijering.com/?item=jw_mp3_playeris shown correctly


> in Safari, but localhost Zekr HTMLs are not!
>
> Linux has the same thing with plugin folder of XULRunner, and I don't
> know why Windows just works perfectly without any need for those
> configuration :)
>
> Regarding font issue, I've heard that OSX has problems with rendering
> Arabic text using OpenType fonts. Can you use other kind of fonts like
> XW Zar, XB Zar, Geeza Pro or other non-OT fonts available there.
>
> > Conclusion; your analysis was right about XULRunner. The missing link
> > was how to get XULRunner to recognize and use the flashplugin...
> > Alhamdulilah :-)
>
> > I have also included another screenshot showing both Safari n Zekr.
> > You can see the Zekr renders the Arabic font correctly but Safari for
> > some reason doesn't, no matter what font or theme I use (tried
> > several, sherezade,...

> >http://zekr.googlegroups.com/web/amir_m-screendump1.png?gda=s4SmbEcAA...

Mohsen Saboorian

unread,
Oct 19, 2007, 12:48:31 AM10/19/07
to ze...@googlegroups.com
On 10/17/07, am...@meeuwsen.bz <serge.m...@gmail.com> wrote:
>
> Salaam Mohsen,
> I will write up the notes for the Mac Install in the coming days
> InshAllah.
> With regards to the font issue, I have a whole number of them listed
> currently. Is it just the first one in that line (seperated by
> comma's) that it uses?

Yes, the whole line is put as "font-family" CSS property, which
accepts a list of font names, selecting the first one available on the
system.

> I couldn't tell easily. I did try the Geeza Pro
> font also (put that as first in the line that shows the multiple font,
> but this didn't not change anything.

No idea. OSX seems to select Geeza Pro when not other fonts in the
list were available.

> So maybe I need to have only one font there at a time?

No problem with a list. The first one (if available) is selected.

Mohsen.

rast...@gmail.com

unread,
Oct 21, 2007, 9:40:05 AM10/21/07
to zekr
Salaam,
I'm very happy to see another mac user is helping to make mac version
more on par with other versions.
Unfortunately current version of Geeza Pro can not place vowels in the
middle of ligatures properly and does not have some very important
glyphs such as superscript Alef. I don't know whether Leopard version
is improved in this regard or not.
Instead you can install and use Scheherazade-AAT or XB Zar font which
does not have those problems:
http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&format=file&media_id=scheherazade_aat&filename=ScheherazadeRegAAT_ttf.zip
http://irmug.org/portal/index.php?name=Downloads&req=getit&lid=30
---
I do not suggest using XUL Runner on mac because of its big size and
some Gecko engine problems on Mac OS X, specially regarding Persian &
Arabic text.(It has improved a lot in the latest releases, but I don't
think all problems are solved yet.)
So, what should we do?!
- If you are using Tiger:
You can download & install Safari 3 beta:
http://www.apple.com/safari/download/
I suggest you to wait until October 26, hopefully Safari 3 final will
also be released for Tiger.
- If you are using Leopard you should have recitation out of the box.
While the recitation works with Safari 3, it has still some redraw
issues on both Firefox & Safari 3. If it is possible to use Quicktime
plugin instead, it will be far better for mac version.
Sorry for my bad English!
Good Luck

On Oct 19, 7:48 am, "Mohsen Saboorian" <mohs...@gmail.com> wrote:

serge.m...@gmail.com

unread,
Oct 21, 2007, 11:15:01 AM10/21/07
to zekr
Salaam,
I hope more mac users will join me :-)
There appear to be several problems still.
1. the audio control buttons do not show correctly
2. I've now notice that the audio control does not always appear on
subsequent loads of Zekr (meaning if I had it open previously, closed
it and then open it again. I am not really sure yet as to what
sequence of actions reproduces this problem
3. the Geeza Pro font (and other fonts, like Baghdad) works fine in
XULRunner. No problems with rendering at all. It seems Safari (or its
engine rather) is at fault here.

I agree with you that we shouldn't have to install additional browsers
(that take up space), but currently it seems the price we have to pay
to get all features working. With that I mean not only the fonts, but
also the audio recitation.

I will follow-up on your advise to try the new Safari. Altho I must
admit that my experiences with it so far have not been entirely
positive, in fact the beta I tried about 2 months ago broke stuff on
my mac, so I uninstalled it. Perhaps the newer beta is more stable and
'plays nice' with other applications.
Anyway I'll try it and report my findings.

Wasalaam

On Oct 21, 3:40 pm, "raste...@gmail.com" <raste...@gmail.com> wrote:
> Salaam,
> I'm very happy to see another mac user is helping to make mac version
> more on par with other versions.
> Unfortunately current version of Geeza Pro can not place vowels in the
> middle of ligatures properly and does not have some very important
> glyphs such as superscript Alef. I don't know whether Leopard version
> is improved in this regard or not.
> Instead you can install and use Scheherazade-AAT or XB Zar font which

> does not have those problems:http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&f...http://irmug.org/portal/index.php?name=Downloads&req=getit&lid=30

Ali Rastegar

unread,
Oct 23, 2007, 5:08:11 AM10/23/07
to ze...@googlegroups.com
Salaam,
I hope more mac users will join me :-)
I hope too :)

1. the audio control buttons do not show correctly

It was because of  opacity. Mohsen sent me a modified css of Sky theme that removes opacity and it now works well on both Safari/Webkit and Firefox/Gecko. 
Please take a look at this screenshot:
Unfortunately Safari sometimes needs double clicking on player buttons to work.

 

2. I've now notice that the audio control does not always appear on

subsequent loads of Zekr (meaning if I had it open previously, closed

it and then open it again. I am not really sure yet as to what

sequence of actions reproduces this problem

It did not happen with Safari 3 for me. I will test XUL Runner as soon as possible.

 

3. the Geeza Pro font (and other fonts, like Baghdad) works fine in

XULRunner. No problems with rendering at all. It seems Safari (or its

engine rather) is at fault here.

As you can see in this screenshot it is built-in Mac OS X Arabic fonts fault not Safari's:
I still highly recommend you downloading Scheherazade-AAT or XB Fonts which have all the required characters.
While Geeza Pro and Baghdad do not have super script Alef, Safari/Webkit and Firefox/Gecko need to get that character from another font. It is the reason of character disconnection in my screenshot, square in your Safari and abnormal space between characters in your Firefox.  Strange thing is after setting Zekr to use Geeza Pro on my PowerPC Mac(with Mac OS X 10.4.10) both Safari & Firefox can show superscript Alef using another font, while Safari on your Intel Mac fails. A possible explanation is I have more Arabic fonts installed on my system.

but currently it seems the price we have to pay

to get all features working.

I hope to see Safari 3 final on 26 October so there will be no need for XUL Runner on Tiger. Please note that even Firefox/XULRunner/Gecko add an abnormal space between characters when using Geeza Pro, so the best solution is getting a complete font.

 

I will follow-up on your advise to try the new Safari. Altho I must

admit that my experiences with it so far have not been entirely

positive, in fact the beta I tried about 2 months ago broke stuff on

my mac, so I uninstalled it. Perhaps the newer beta is more stable and

'plays nice' with other applications.

While I agree with you about Safari 3 beta being buggy it is normal to see some Dashboard widgets and applications such as Yahoo Messenger to get broken after installing Safari 3, even the final version. While Safari 3 is a small upgrade in terms of features and user interface changes It includes more than 2 year work on its backend -called Webkit- that makes the new Webkit far better than the old version with the price of some incompatibilities. I prefer to use Adium over Yahoo Messenger and fortunately none of my favorite widgets were incompatible with new Webkit. I'm sure many incompatible widgets and applications will be updated and become compatible soon and I have heard that Yahoo Messenger 3.0 beta 2 should work well with Safari 3.
Sorry again or my bad English!

Mohsen Saboorian

unread,
Oct 23, 2007, 8:08:01 AM10/23/07
to ze...@googlegroups.com
Salaam,

>> 1. the audio control buttons do not show correctly

It is also a problem with Firefox/XULRunner on Linux. Will try to fix
it for the next release inshaAllah.


>> 2. I've now notice that the audio control does not always appear on
>> subsequent loads of Zekr (meaning if I had it open previously, closed
>> it and then open it again. I am not really sure yet as to what
>> sequence of actions reproduces this problem

There was a similar problem with 0.6.5 on Linux. This was fixed by
setting a timeout for flash object loading in player.js. If this
happens with large suras (e.g. 2 to 10), then we should increase the
timeout here (currently 100):

$(function() {
setTimeout(playerOnLoad, 100);
});

100 here means that the player is to be loaded 100 milliseconds after
the whole page was loaded.

> It was because of opacity. Mohsen sent me a modified css of Sky theme that
> removes opacity and it now works well on both Safari/Webkit and
> Firefox/Gecko.

I attach the CSS here again. If you are using Sky theme (not tested,
but should also work for other themes), copy it to:
[zekr]/res/ui/theme/sky/css

> I still highly recommend you downloading Scheherazade-AAT or XB Fonts which
> have all the required characters.

Arabic text rendering is also fine with Scheherazade + Safari + WinXP
+ the latest nightly build of Webkit for Windows (SVN-r26759). I
followed Ali's advise to use Webkit nightly build, since Arabic
rendering doesn't work with latest beta release of Safari 3. A
screenshot is attached.

Regarding play/pause and stop buttons, beside player control. Please
note that if you use flash buttons (play/pause, next, previous)
instead of HTML buttons, player state is lost, buttons' text/icon will
not change and aya synchronization will not work, so never use those
flash buttons, instead use HTML buttons provided in the player bar.


Mohsen.

screen-style.css
zekr-html-safari-webkit-nightly.png

serge.m...@gmail.com

unread,
Oct 23, 2007, 1:11:49 PM10/23/07
to zekr
Salaam,
Mohsen and Ali, thanks for both your replies. Ali, no need to excuse
yourself for your English, it is excellent and in any case its not my
(and probably lots of other readers' native language either :-)

I have installed the latest Safari beta and indeed it works with the
flash player. It did break Yahoo Messenger for me, but I'm happy to
see that finally there is a new beta (after more than a year!). I have
yet to see if this solves my problem with chat text not scrolling
correctly. Other than that it seems fine.

I also downloaded and applied the new CSS as well as putting in the
load delay as Mohsen suggested, but this doesn't seem to fully resolve
the flash player controls display issues. It looks fine on initial
load but after scrolling down through the aya's the controls are
somewhat faded in appearance. Hovering over them with the mouse brings
them back (partially).

Finally, does anyone know where I can download the Scheherazade-AAT
fonts for the Mac? I don't think I can open the .deb files for Ubuntu
and use those on the Mac.

Wasalaam,
Amir

> screen-style.css
> 6KDownload
>
> zekr-html-safari-webkit-nightly.png
> 265KViewDownload

Mohsen Saboorian

unread,
Oct 23, 2007, 10:52:36 PM10/23/07
to ze...@googlegroups.com
Salaam,

> Finally, does anyone know where I can download the Scheherazade-AAT
> fonts for the Mac? I don't think I can open the .deb files for Ubuntu
> and use those on the Mac.

Ali suggested this once in prveious mails:
original download page:
http://scripts.sil.org/ArabicFonts_Download
direct download URL:
http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&format=file&media_id=scheherazade_aat&filename=ScheherazadeRegAAT_ttf.zip

Mohsen.

Ali Rastegar

unread,
Oct 24, 2007, 5:49:55 AM10/24/07
to ze...@googlegroups.com
Salaam,

I followed Ali's advise to use Webkit nightly build, since Arabic
rendering doesn't work with latest beta release of Safari 3. A
screenshot is attached.
The correct is Arabic rendering doesn't work with latest beta release of Safari 3 on Windows. Safari 3 beta works well with arabic scripts on Mac. ;)

Regarding play/pause and stop buttons, beside player control. Please
note that if you use flash buttons (play/pause, next, previous)
instead of HTML buttons, player state is lost, buttons' text/icon will 
not change and aya synchronization will not work, so never use those
flash buttons, instead use HTML buttons provided in the player bar.
Unfortunately HTML buttons except the Continous/Discrete do not work with Safari 3!

Ali, no need to excuse yourself for your English, it is excellent and in any case its not my(and probably lots of other readers' native language either :-)
Thanks ;-)
---
Now that I have used both Safari3/Webkit and XulRunner/Gecko I want to compare them.
XUL runner 1.8.3 benefits:
- HTML player buttons work as expected.
- Print finally works on Mac version!
- When selecing an Aya it now auto-scrolls to the selected Aya as expected.
XUL runner 1.8.3 Cons:
- It is slower than Safari, mostly notable on old PowerPC Macs.
- User should download about 16mb of data and even after installation he has to copy Flash Player plugin manually to XUL.Framework which needs Administrator's Password.
- No matter what font you select in Zekr's Config, it always uses Geeza Pro and the abnormal space between characters remains. As far as I know the latest unstable Gecko engine used in Firefox 3 does not have this problem, so it will probably be fixed in future versions of XUL Runner.
- It cannot show both Shadda(tashdid) and fatḥa on top of lām in the word Allah.(It is just an example of Arabic-related flaws in current Gecko for Mac.)

Safari 3 beta benefits:
- Does not have mentioned Cons of XUL.
- While it is not a small update too,it is recommended by Apple-I mean the final version!- and many users normally download and install it.
Safari 3 Beta Cons:
- Not all HTML player buttons work.
- Print does not work.
- Incorrect Auto-scroll on big Suras.
---
I think most or all of Safari's problems are related to incompatible scripts and it is easier to fix them than waiting for the next XUL/Gecko release!
Good Luck

serge.m...@gmail.com

unread,
Nov 2, 2007, 11:16:57 AM11/2/07
to zekr
Salaam,
Having installed the Sheherazade and Lateef fonts it now seems to
display correctly with Safari, so I'll keep that despite the problems
you noted with Safari. The final release of Safari for Tiger and
Windows is still not available it seems but the latest beta seems to
work fine for me now. In conclusion I would say that I agree with Ali
and that Safari 3 (eventhough still beta) is the best way to go on the
Mac right now.
Wasalaam

On Oct 24, 10:49 am, "Ali Rastegar" <raste...@gmail.com> wrote:
> Salaam,
>
> I followed Ali's advise to use Webkit nightly build, since Arabic
>
> rendering doesn't work with latest beta release of Safari 3. A
>
> screenshot is attached.
>
> The correct is Arabic rendering doesn't work with latest beta release of
> Safari 3 on Windows. Safari 3 beta works well with arabic scripts on Mac. ;)
>
> Regarding play/pause and stop buttons, beside player control. Please
>
> note that if you use flash buttons (play/pause, next, previous)
>
> instead of HTML buttons, player state is lost, buttons' text/icon will
>
> not change and aya synchronization will not work, so never use those
>
> flash buttons, instead use HTML buttons provided in the player bar.
>
> Unfortunately HTML buttons except the Continous/Discrete do not work with
> Safari 3!
>
> Ali, no need to excuse yourself for your English, it is excellent and in any
> case its not my(and probably lots of other readers' native language either
> :-)
>
> Thanks ;-)
> ---
> Now that I have used both Safari3/Webkit and XulRunner/Gecko I want to
> compare them.

> *XUL runner 1.8.3 benefits:*


> - HTML player buttons work as expected.
> - Print finally works on Mac version!
> - When selecing an Aya it now auto-scrolls to the selected Aya as expected.

> *XUL runner 1.8.3 Cons:*


> - It is slower than Safari, mostly notable on old PowerPC Macs.
> - User should download about 16mb of data and even after installation he has
> to copy Flash Player plugin manually to XUL.Framework which needs
> Administrator's Password.
> - No matter what font you select in Zekr's Config, it always uses Geeza Pro
> and the abnormal space between characters remains. As far as I know the
> latest unstable Gecko engine used in Firefox 3 does not have this problem,
> so it will probably be fixed in future versions of XUL Runner.
> - It cannot show both Shadda(tashdid) and fatḥa on top of lām in the word
> Allah.(It is just an example of Arabic-related flaws in current Gecko for
> Mac.)
>

> *Safari 3 beta benefits:*


> - Does not have mentioned Cons of XUL.
> - While it is not a small update too,it is recommended by Apple-I mean the
> final version!- and many users normally download and install it.

> *Safari 3 Beta Cons:*


> - Not all HTML player buttons work.
> - Print does not work.
> - Incorrect Auto-scroll on big Suras.
> ---
> I think most or all of Safari's problems are related to incompatible scripts
> and it is easier to fix them than waiting for the next XUL/Gecko release!
> Good Luck
>

Ali Rastegar

unread,
Nov 2, 2007, 12:23:17 PM11/2/07
to ze...@googlegroups.com
Salaam,
Nice to see Safari 3 Beta is not causing major problems for you. I still hope for final version on Tiger!
I have upgraded to Leopard and it has many problems with Java. I'm waiting for a Java Update to really test Zekr on Leopard. There are some good news too:
- Leopard version of Geeza Pro seems to include superscript Alef!
- Leopard can use Arabic/Persian OpenType fonts too!
Good Luck


Salaam,
Having installed the Sheherazade and Lateef fonts it now seems to
display correctly with Safari, so I'll keep that despite the problems
you noted with Safari. The final release of Safari for Tiger and
Windows is still not available it seems but the latest beta seems to
work fine for me now. In conclusion I would say that I agree with Ali
and that Safari 3 (eventhough still beta) is the best way to go on the
Mac right now.
Wasalaam

Reply all
Reply to author
Forward
0 new messages