maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Holy Quran for N900 (https://talk.maemo.org/showthread.php?t=75557)

rash.m2k 2012-01-29 12:15

Re: [Announce] Holy Quran for N900
 
Quote:

Originally Posted by MSameer (Post 1157201)
N9 port is already available on Ovi store
http://store.ovi.com/content/167044

The version there is 0.4.1 as 0.5 is still in the QA process.

Can I help with some dev work?

I'm pretty decent with QML now and also could do some C++ with a bit of googling.

I've just cloned it using GIT and opened the .pro file for the Nokia N9, but it just complains that it can't find file metadata.h in dataprovider.cpp

MSameer 2012-01-29 13:10

Re: [Announce] Holy Quran for N900
 
Quote:

Originally Posted by rash.m2k (Post 1157327)
Can I help with some dev work?

I'm pretty decent with QML now and also could do some C++ with a bit of googling.

I've just cloned it using GIT and opened the .pro file for the Nokia N9, but it just complains that it can't find file metadata.h in dataprovider.cpp

All contributions and help are greatly welcomed :)

You need to byuild the stuff in data/ first.
There are two README files: data/text/README and data/search/README and there you will find how to get the needed extra files before you can build.

Once you get the needed files, place them in data/text and data/search then build the stuff in data and then you can finally build the stuff underneath n9.

I can also add the needed files to the git repos if it makes your life simple.

Just take into account that I'm not using the qt-components at all. I had to support N900 and qt-components were not available for it so I built mine. They are located in components.

The qml ui is in qml and it's used for both N900 and N9.

common/ has all the common C++ code used for both phones.

n9 has the specific N9 code
n900 has the specific n900 code.

Please ask me and I'll help as much as I can :)

TransTech 2012-01-29 13:11

Re: [Announce] Holy Quran for N900
 
Quote:

Originally Posted by MSameer (Post 1157321)
OK that's fine.

Features for next version then will be:

1) Add an option to disable stopping recitation if phone is flipped.
2) Add play until the end of sura.
3) Replace the recitation icons

Potential features:
1) Add a recite part if I get a more descriptive icon (Cannot ignore a request from TransTech) :).
2) multiple themes.
3) Night mode.

Is that fine for everybody ?

Great.. :)

Potential Features:
1: I'm making a more decriptive icon as you said.. hope that will suite well.. (will be here in a couple of hours)
2: About multiple theme part, can we make ours and directly use them.. just like the recitations function...(need to provide a theme page in settings to select and for selecting colors (if neccessary css file would be great)
3. ---

TransTech 2012-01-29 13:15

Re: [Announce] Holy Quran for N900
 
Quote:

Originally Posted by MSameer (Post 1157345)
All contributions and help are greatly welcomed :)

You need to byuild the stuff in data/ first.
There are two README files: data/text/README and data/search/README and there you will find how to get the needed extra files before you can build.

Once you get the needed files, place them in data/text and data/search then build the stuff in data and then you can finally build the stuff underneath n9.

I can also add the needed files to the git repos if it makes your life simple.

Just take into account that I'm not using the qt-components at all. I had to support N900 and qt-components were not available for it so I built mine. They are located in components.

The qml ui is in qml and it's used for both N900 and N9.

common/ has all the common C++ code used for both phones.

n9 has the specific N9 code
n900 has the specific n900 code.

Please ask me and I'll help as much as I can :)

qt-components is now available for cssu users.. (by installing qt-components and qt-components-examples from extra-devel)

can we simple make the n9 version compatible with that so that the goodness of qt-components will be available for n900 and as well as n9. (just an idea).

btw some liberaries are still missing..

MSameer 2012-01-29 13:24

Re: [Announce] Holy Quran for N900
 
Quote:

Originally Posted by TransTech (Post 1157347)
qt-components is now available for cssu users.. (by installing qt-components and qt-components-examples from extra-devel)

can we simple make the n9 version compatible with that so that the goodness of qt-components will be available for n900 and as well as n9. (just an idea).

btw some liberaries are still missing..

I'm sorry. If it's not available for Maemo5 then I cannot use it.

What goodness are you missing ?

TransTech 2012-01-29 13:29

Re: [Announce] Holy Quran for N900
 
Quote:

Originally Posted by MSameer (Post 1157349)
I'm sorry. If it's not available for Maemo5 then I cannot use it.

What goodness are you missing ?

I mean the look of the qt-components app, ... btw its not officially available so.. its not a good idea..:) the current app is mush better. :)

MSameer 2012-01-29 13:33

Re: [Announce] Holy Quran for N900
 
Quote:

Originally Posted by TransTech (Post 1157353)
I mean the look of the qt-components app, ... btw its not officially available so.. its not a good idea..:) the current app is mush better. :)

I'll have to theme it anyway if we move to qt-components so it will look different.

Yes I'm missing eye candy by not using qt-components but I gain the ability to test it on N900 as I won;t update my N900 to CSSU.

CSSU is great but I'm just satisfied with stock Maemo5.

TransTech 2012-01-29 13:36

Re: [Announce] Holy Quran for N900
 
Quote:

Originally Posted by MSameer (Post 1157360)
I'll have to theme it anyway if we move to qt-components so it will look different.

Yes I'm missing eye candy by not using qt-components but I gain the ability to test it on N900 as I won;t update my N900 to CSSU.

CSSU is great but I'm just satisfied with stock Maemo5.

yeah thats correct.. we will theme it alternately, rather then using qt-components. :)

TransTech 2012-01-29 13:52

Re: [Announce] Holy Quran for N900
 
Ok.. I made two icons, hope they suits well,


Link:
http://www.mediafire.com/?7ugkbpd5uq56r86

rash.m2k 2012-01-29 22:47

Re: [Announce] Holy Quran for N900
 
Hi I ge the following error when i try to build in qt creator???

Quote:

22:46:03: Running build steps for project text...
22:46:03: Configuration unchanged, skipping qmake step.
22:46:03: Starting: "/usr/bin/make" -w
make: Entering directory `/home/tux/workspace-qt/quran/data/text'
make: Nothing to be done for `first'.
make: Leaving directory `/home/tux/workspace-qt/quran/data/text'
22:46:03: The process "/usr/bin/make" exited normally.
22:46:03: Running build steps for project search...
22:46:03: Starting: "/home/tux/QtSDK/Simulator/Qt/gcc/bin/qmake" /home/tux/workspace-qt/quran/data/search/search.pro -r -spec linux-g++
Package sqlite3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sqlite3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sqlite3' found
Package sqlite3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sqlite3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sqlite3' found
Package sqlite3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sqlite3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sqlite3' found
22:46:04: The process "/home/tux/QtSDK/Simulator/Qt/gcc/bin/qmake" exited normally.
22:46:04: Starting: "/usr/bin/make" -w
make: Entering directory `/home/tux/workspace-qt/quran/data/search'
g++ -Wl,-O1 -Wl,-rpath,/home/tux/QtSDK/Simulator/Qt/gcc/lib -o search main.o -L/home/tux/QtSDK/Simulator/Qt/gcc/lib -lQtCore -lpthread
main.o: In function `write(QString const&)':
main.cpp:(.text+0x11bd): undefined reference to `sqlite3_open_v2'
main.cpp:(.text+0x12f5): undefined reference to `sqlite3_exec'
main.cpp:(.text+0x130a): undefined reference to `sqlite3_errmsg'
main.cpp:(.text+0x146d): undefined reference to `sqlite3_exec'
main.cpp:(.text+0x1520): undefined reference to `sqlite3_prepare_v2'
main.cpp:(.text+0x15b6): undefined reference to `sqlite3_bind_int'
main.cpp:(.text+0x15cb): undefined reference to `sqlite3_errmsg'
main.cpp:(.text+0x1839): undefined reference to `sqlite3_errmsg'
main.cpp:(.text+0x1a10): undefined reference to `sqlite3_bind_int'
main.cpp:(.text+0x1a3c): undefined reference to `sqlite3_bind_text'
main.cpp:(.text+0x1a51): undefined reference to `sqlite3_step'
main.cpp:(.text+0x1a67): undefined reference to `sqlite3_finalize'
main.cpp:(.text+0x1c8f): undefined reference to `sqlite3_exec'
main.cpp:(.text+0x1ca4): undefined reference to `sqlite3_errmsg'
main.cpp:(.text+0x1cf1): undefined reference to `sqlite3_errmsg'
main.cpp:(.text+0x1e4c): undefined reference to `sqlite3_errmsg'
main.cpp:(.text+0x1f99): undefined reference to `sqlite3_errmsg'
main.cpp:(.text+0x24f4): undefined reference to `sqlite3_close'
main.cpp:(.text+0x2505): undefined reference to `sqlite3_errmsg'
collect2: ld returned 1 exit status
make: Leaving directory `/home/tux/workspace-qt/quran/data/search'
make: *** [search] Error 1
22:46:04: The process "/usr/bin/make" exited with code 2.
Error while building project search (target: Qt Simulator)
When executing build step 'Make'

MSameer 2012-01-30 00:09

Re: [Announce] Holy Quran for N900
 
Install libsqlite3-dev. It's missing from your build environment.

Unfortunately I don't use QtCreator so I don't know how to install it.

midcex 2012-01-31 10:36

Re: [Announce] Holy Quran for N900
 
Holy Quran why can not I sing the sound
downlod the file when I had what's the solution:(

TransTech 2012-01-31 12:36

Re: [Announce] Holy Quran for N900
 
//Multiple themes

Sorry i dont know if qml can handle .css files

A structure containing all the colors codes ( seperate for night mode included in same file) in a qml file can help.. but i think other files needed to be linked to this file which is like rewriting the whole app. (eg. /theme_name/colorcode.qml ).

Night mode://
(optional) settings for font color in night mode should be available in settings to solve this problem. btw theming didnt touched the main body of the app..i.e surahs and translations font colors is not touched.

TransTech 2012-01-31 12:40

Re: [Announce] Holy Quran for N900
 
Quote:

Originally Posted by midcex (Post 1158300)
Holy Quran why can not I sing the sound
downlod the file when I had what's the solution:(

sorry I couldnt understand much about your problem, but I seems you have problem with the recitations...

for that please carefully read the install recitation instructions in the app itself.

Off topic: did you use google translate to translate from other language, because "sing the sound" is hillarious.. ;) it should be "play the recitation".

MSameer 2012-01-31 12:51

Re: [Announce] Holy Quran for N900
 
Here's Colors.qml for the upcoming version:
http://gitorious.org/quran/quran/blo...qml/Colors.qml

Code:

1        // -*- qml -*-
2        import QtQuick 1.0
3       
4        QtObject {
5                id: colors
6       
7                property color textColor: _settings.nightMode ? "white" : "black"
8                property color backgroundColor: _settings.nightMode ? "black" : "white"
9                property color verseColor: _settings.nightMode ? "white" : "black"
10                property color titleColor: _settings.nightMode ? "black" : "white"
11                property color subtitleColor: _settings.nightMode ? "black" : "white"
12                property color highlightColor: _settings.nightMode ? "red" : "red"
13                property color faderColor: _settings.nightMode ? "black" : "steelblue"
14                property color sectionColor: "#a3daf4" // QColor(163, 218, 244)
15                property color col1: Qt.lighter(colors.sectionColor, 1.2)
16                property color col2: Qt.lighter(colors.sectionColor, 1.3)
17        }

Most of the work on the app side has been done already. Some parts are still missing.

If that file is simple enough then we can ship one with each theme. It defines colors for both normal mode and night mode.

I can also try to use an ini file for reading the colors.
We can ship an ini file with each theme that defines the colors.

The question is: Should the night mode be a separate theme or should it be a property of the used theme ?

I mean should we ship 2 themes by default: Day mode and night mode or should we let each theme define the colors for night mode ?

Option 1 simplifies the creation of themes.
Option 2 guarantees that each theme gets a night mode.

midcex 2012-01-31 13:55

Re: [Announce] Holy Quran for N900
 
I mean could not recitations to detect
but I've downlod files Recitation
please solution

MSameer 2012-01-31 13:56

Re: [Announce] Holy Quran for N900
 
Quote:

Originally Posted by midcex (Post 1158400)
I mean could not recitations to detect
but I've downlod files Recitation
please solution

1) Which file did you download ? Please post a link.
2) Which version are you using ?

midcex 2012-01-31 14:14

Re: [Announce] Holy Quran for N900
 
Quote:

Originally Posted by MSameer (Post 1158403)
1) Which file did you download ? Please post a link.
2) Which version are you using ?

http://zekr.org/resources.html#recitation
(ghamdi-40kbps-offline)
version 0.5.0
please help my
thank

MSameer 2012-01-31 15:20

Re: [Announce] Holy Quran for N900
 
0.5 can play compressed recitations. It will be a bit slow though.

1) Connect the phone to PC in mass storage mode
2) Copy the recitation to .n900-quran/recitations
3) Disconnect the phone.
4) Restart the application and enable recitations.
5) Enjoy :)

aizudean 2012-01-31 15:46

Re: [Announce] Holy Quran for N900
 
Msameer, can i pause the recitation, and then enable it back? i want to pause the recitation for a moment to look at the translation, and then resume the recitation back after done... thanks. :)

MSameer 2012-01-31 16:01

Re: [Announce] Holy Quran for N900
 
Quote:

Originally Posted by aizudean (Post 1158451)
Msameer, can i pause the recitation, and then enable it back? i want to pause the recitation for a moment to look at the translation, and then resume the recitation back after done... thanks. :)

That's unfortunately not yet possible. I'm still thinking how to properly implement it. I hope it will be available in the next release.

aizudean 2012-01-31 16:06

Re: [Announce] Holy Quran for N900
 
Quote:

Originally Posted by MSameer (Post 1158460)
That's unfortunately not yet possible. I'm still thinking how to properly implement it. I hope it will be available in the next release.

thanks again. your work with this apps was really great. hope Allah may bless you and make your work easy... :)

TransTech 2012-01-31 16:15

Re: [Announce] Holy Quran for N900
 
Quote:

Originally Posted by MSameer (Post 1158365)
Here's Colors.qml for the upcoming version:
http://gitorious.org/quran/quran/blo...qml/Colors.qml

Code:

1    // -*- qml -*-
2    import QtQuick 1.0
3   
4    QtObject {
5            id: colors
6   
7            property color textColor: _settings.nightMode ? "white" : "black"
8            property color backgroundColor: _settings.nightMode ? "black" : "white"
9            property color verseColor: _settings.nightMode ? "white" : "black"
10            property color titleColor: _settings.nightMode ? "black" : "white"
11            property color subtitleColor: _settings.nightMode ? "black" : "white"
12            property color highlightColor: _settings.nightMode ? "red" : "red"
13            property color faderColor: _settings.nightMode ? "black" : "steelblue"
14            property color sectionColor: "#a3daf4" // QColor(163, 218, 244)
15            property color col1: Qt.lighter(colors.sectionColor, 1.2)
16            property color col2: Qt.lighter(colors.sectionColor, 1.3)
17    }

Most of the work on the app side has been done already. Some parts are still missing.

If that file is simple enough then we can ship one with each theme. It defines colors for both normal mode and night mode.

I can also try to use an ini file for reading the colors.
We can ship an ini file with each theme that defines the colors.

The question is: Should the night mode be a separate theme or should it be a property of the used theme ?

I mean should we ship 2 themes by default: Day mode and night mode or should we let each theme define the colors for night mode ?

Option 1 simplifies the creation of themes.
Option 2 guarantees that each theme gets a night mode.

Thats very great... and easy.. (everything in one place :))

The .ini file idea is simple and much better, because non-qml users will know which file they should edit.

And for the night mode colors part, it should be included with each file so that they can have personalized night mode too.

And if we make a night mode a different theme, then it would be a night mode theme, and not a night mode function. (the user will always have to chage between themes).

Edit:

I like option 2 as option 1 is already present. (its already easy)

TransTech 2012-02-03 08:20

Re: [Announce] Holy Quran for N900
 
Hi,
I'm planning to make a component styled theme for the Holy Quran App,
I have created a illustration in the below pic.

Please tell me if it looks good or not. :)

[IMG=http://img717.imageshack.us/img717/794/componentstyled.png][/IMG]


If yes then, I would need two things,

1. Background Picture or Background color.
2. Title background (picture) (for surah name or app name).

:)

Edit: I prefer the old design

MSameer 2012-02-03 09:33

Re: [Announce] Holy Quran for N900
 
I don't understand. Why are you posting the new design if you prefer the old desogn ;)

TransTech 2012-02-03 09:42

Re: [Announce] Holy Quran for N900
 
Quote:

Originally Posted by MSameer (Post 1159862)
I don't understand. Why are you posting the new design if you prefer the old desogn ;)


I though about the Qt-component design and made one like that but after making I didnt liked it. I thought It would be good to share.:)

btw I think the present design needs some polishing. :) eg: the buttons part, and virtual arabic keyboard. :)

MSameer 2012-02-03 19:09

Re: [Announce] Holy Quran for N900
 
We are not using Qt components anyway.

The current design needs polishing a bit but I don't think we need a virtual arabic keyboard. There's already one available for Maemo.

Anyway, I've implemented the theming support and pushed it to git.

I'm now thinking whether I should implement the resume feature now or postpone it to the next version...

TransTech 2012-02-04 08:57

Re: [Announce] Holy Quran for N900
 
Quote:

Originally Posted by MSameer (Post 1160062)
We are not using Qt components anyway.

The current design needs polishing a bit but I don't think we need a virtual arabic keyboard. There's already one available for Maemo.

Anyway, I've implemented the theming support and pushed it to git.

I'm now thinking whether I should implement the resume feature now or postpone it to the next version...

The current (maemo) virtual keyboard doesn't work well in portrait mode. In PR.1.3.1, I have to move to landscape to type in search function all the time.


I think resume function can be postponed to next version as its not that urgent.

MSameer 2012-02-04 11:26

Re: [Announce] Holy Quran for N900
 
Have you tried mcip http://talk.maemo.org/showthread.php?t=72974 ?

TransTech 2012-02-04 12:35

Re: [Announce] Holy Quran for N900
 
Quote:

Originally Posted by MSameer (Post 1160356)

yes but i had to uninstall it... (problem with typing)
btw is arabic supported...?

MSameer 2012-02-04 13:35

Re: [Announce] Holy Quran for N900
 
I have no idea whether Arabic is supported or not but someone might be able to add support to it.

I don't feel including a full Arabic keyboard with the application is the right thing to do. I won't implement it personally.

TransTech 2012-02-04 16:28

Re: [Announce] Holy Quran for N900
 
Yeah I think it would be better to get Arabic support on mcip rather than creating a custom one.

I'll try to ask the mcip developer..

MSameer 2012-02-12 21:42

Re: [Announce] Holy Quran for N900
 
1 Attachment(s)
I'll be extremely busy the next few days and since I don't want to hold the release, I decided to push 0.5.1 without the pause resume part. I apologize for that but ut's better to get something out than to keep all the good stuff until I implement a missing feature ;)

Anyway, change log for 0.5.1:
* Add an option to disable stopping recitation if phone is flipped.
* New recitations icons.
* Added an icon to recite a part from the parts page.
* Experimental multiple themes support.
* Experimental night mode support.

Night mode might have some issues so it's been marked as experimental.

Multiple theme support is experimental because I might change the variables, add new ones or remove existing ones any time.

To create a theme, simply create a new directory underneath usr/share/n900-quran/themes/

Make sure the icons are named exactly like the ones in blue. If an icon is missing then the corresponding blue icon will be used.

If you want to customize the colors then create a theme.ini file similar to the attached one (I choose stupid colors in the attached one :)) and place it in the new directory created above.

If a color is not specified in theme.ini then the default will be used.

So now a theme can:
- Override colors and icons by shipping theme.ini and a set of icons.
- Override colors only by shipping theme.ini only
- Override icons only by shipping icons only and skipping theme.ini.

I hope I managed to explain it :)

TransTech 2012-02-13 09:03

Re: [Announce] Holy Quran for N900
 
Quote:

Originally Posted by MSameer (Post 1164174)
I'll be extremely busy the next few days and since I don't want to hold the release, I decided to push 0.5.1 without the pause resume part. I apologize for that but ut's better to get something out than to keep all the good stuff until I implement a missing feature ;)

Anyway, change log for 0.5.1:
* Add an option to disable stopping recitation if phone is flipped.
* New recitations icons.
* Added an icon to recite a part from the parts page.
* Experimental multiple themes support.
* Experimental night mode support.

Night mode might have some issues so it's been marked as experimental.

Multiple theme support is experimental because I might change the variables, add new ones or remove existing ones any time.

To create a theme, simply create a new directory underneath usr/share/n900-quran/themes/

Make sure the icons are named exactly like the ones in blue. If an icon is missing then the corresponding blue icon will be used.

If you want to customize the colors then create a theme.ini file similar to the attached one (I choose stupid colors in the attached one :)) and place it in the new directory created above.

If a color is not specified in theme.ini then the default will be used.

So now a theme can:
- Override colors and icons by shipping theme.ini and a set of icons.
- Override colors only by shipping theme.ini only
- Override icons only by shipping icons only and skipping theme.ini.

I hope I managed to explain it :)

Thanks for the update, I have a small problem getting multiple themes to work (I know its experimental but doesnt work at all), i.e. I created a new theme and placed it in [usr/share/n900-quran/themes/] but when I open the App and press on [blue] button under multiple theme in settings, no menu is appearing or multiple themes page is not appearing. :(

Please use my new theme to check this bug,

Link:
http://www.mediafire.com/?mz251i58osh8a4l

and one more thing, I'm getting some problem with theming in settings, i.e.when I press function-menu button in setting I'm getting black color when pressed, dont know whats wrong, can you please tell me. :) [FIXED :)]

thanks...

amiraliabbas 2012-02-13 12:51

Re: [Announce] Holy Quran for N900
 
@ MSameer

Just love the app. Nice job!

Suggestion.... During recitation, the highlighted line (Arabic text) is aligned to the bottom of the screen. As a result, the corresponding translation line stays hidden while the Arabic is recited. If you could align the Arabic text line to top or middle of the screen, that would be very helpful.

(I made that request earlier on page 45 as well)

MSameer 2012-02-18 01:11

Re: [Announce] Holy Quran for N900
 
@TransTech Are you sure it's not a CSSU issue ?

@amiraliabbas Seems I missed that. I'll see what I can do :)

TransTech 2012-02-18 06:45

Re: [Announce] Holy Quran for N900
 
Quote:

Originally Posted by MSameer (Post 1166424)
@TransTech Are you sure it's not a CSSU issue ?

@amiraliabbas Seems I missed that. I'll see what I can do :)

50% sure because other similar functions work but not this one..

eg: Night mode works perfectly but not the multiple themes part, also other functions like translations page, recitation page, fonts etc. works flawlessly... :)

MSameer 2012-02-18 20:15

Re: [Announce] Holy Quran for N900
 
OK. I'm sorry. I forgot a QML file and that's why the page wasn't showing up.

I was in a hurry to make the release and I forgot it :(

0.5.2-1 is out and it should have the missing file now :)

Maybe we need a wiki page to describe how to:
1) Install recitations
2) Install new themes
And maybe it can be used to add links to new themes too ?

An idea would be someone working on a theme installer and a recitations downloader and installer too :)

TransTech 2012-02-19 05:15

Re: [Announce] Holy Quran for N900
 
Quote:

Originally Posted by MSameer (Post 1166714)
OK. I'm sorry. I forgot a QML file and that's why the page wasn't showing up.

I was in a hurry to make the release and I forgot it :(

0.5.2-1 is out and it should have the missing file now :)

Maybe we need a wiki page to describe how to:
1) Install recitations
2) Install new themes
And maybe it can be used to add links to new themes too ?

An idea would be someone working on a theme installer and a recitations downloader and installer too :)

Thanks,

Yes, I think a wiki would be a great Idea and I can help to write some stuff in it.

I can make themes but not an Installer, so we need to find someone who can do it. (I think I can try it but not sure).

Edit: Unable to update to latest version.. trying once again..:)

Edit2: Problem with latest build, please check...

MSameer 2012-02-19 21:26

Re: [Announce] Holy Quran for N900
 
I reuploaded the files to get the build into the repository. I forgot to update the version as usual but it should work ;)


All times are GMT. The time now is 12:14.

vBulletin® Version 3.8.8