PDA

View Full Version : Granule - flashcard program for maemo


vlg
2006-01-26, 19:44
A flashcard program, granule, is available for maemo. It is written in C++ using hildon-widgetsmm C++ wrappers.

Project home page (http://granule.sourceforge.net/)
Maemo port details (http://maemo.org/maemowiki/ApplicationCatalogWip#head-a2b17760e2a1fc26b811fb525f96eb5d4e485115) (.deb package/dependencies/screenshots)
On-line documentation (http://granule.sourceforge.net/grapp-manual/index.html)

Hedgecore
2006-01-26, 19:56
Looks like the 770 also inadvertantly replaced cue cards for speeches. ;)

RogerS
2006-01-26, 20:11
I downloaded Granule yesterday, but wasn't able to get it working.

Did you have any success with it? And how did you launch it -- anything special? I started Xterm and typed "granule" but nothing happened.

vlg
2006-01-26, 20:38
RogerS,

did you install all dependencies?

They are:
(hildon wrappers)

hildon-fmmm_0.1.0-1_arm.deb
hildon-widgetsmm_0.1.0-1_arm.deb
libglibmm-2.4-1_2.6.1-1_arm.deb
libgtkmm-2.4-1c2a_2.6.5-1_arm.deb
libsigc++-2.0-0c2a_2.0.16-2_arm.deb


libassa:

libassa_3.4.0_arm.deb


Granule:

granule_1.2.1_arm.deb


Link for Hildon-related packages (http://sourceforge.net/project/showfiles.php?group_id=111131&package_id=150131&release_id=387967)
Link for libassa package (http://sourceforge.net/project/showfiles.php?group_id=63231&package_id=60062&release_id=365379)
Link for Granule (http://sourceforge.net/project/showfiles.php?group_id=111131&package_id=120121&release_id=374231)

(I'll try to repackage them to reduce the number for the next release).

The order of installation is not important, but in my tests I always install granule_arm.deb last.

Once installed, you should be able to launch Granule from usual 'Extras->' menu. You should not need xterm to start it.

If it still doesn't come up, open xterm, and try:

% granule --log-leve=3 --log-stdout=yes

and let me know what's been reported.

RogerS
2006-01-27, 04:45
It must have been very late when I was trying this last night.

I did look in the Extras menu, but missed it there. Tonight, after seeing your post, I looked again and just launched Granule from the Extras menu a moment ago. I'll try it out in the morning on the train to work.

So I guess it's redundant to say that yes, I was careful to install all the dependencies and happened to install granule last.

Thanks for this app. And, of course, having all of them in one package (or fewer anyway) would make things simpler.

I wasn't able to watch the Flash files on my 770 though -- memory problems. No surprise, huh? :-)

Roger

RogerS
2006-01-27, 13:01
Got started this morning -- had two crashes, which I'll post to your bug report.

Am having a bit of trouble just figuring out how to add cards one at a time manually. I should be able to figure it out, but, still, I haven't yet. :-)

Which page in the help file is that on?

I want to use this not for language or vocabulary, but to help my six-year-old learn to spell. I'm thinking: Get the program to pronounce the word, after clicking it would spell it, letter by letter and show it on the front.

First, I'd better get a TTS engine (FLite) working on the 770.

vlg
2006-01-28, 03:37
RogerS,

thanks for heads up - I inadvertently broke code that is responsible for adding new cards. In my tests, I only used the deck files that I had put together on my desktop. As soon as I find out the time, I'll provide the fix.

You can play these Flash tutorials (http://granule.sourceforge.net/grapp-manual/index.html) to get the general idea, or read the Deck chapter (http://granule.sourceforge.net/grapp-manual/granule-manual/C/c133.html) of the manual.

For now, until I fix the bug you came across, you might want to install it on your desktop, create a deck and then use the deck on nokia.

Although granule can pronounce the words, it relies on an outside program such as sox to actually play the sound. Nokia 770 uses gstreamer which I am not familiar with (on my list of todo things).

BTW, thanks for using SF bug tracking - it helps me to keep track of things.

DCForever
2006-01-28, 03:54
A good place I found to get flash cards is www.studystack.com. You can export flashcards to a .csv file format. Although, what is weird is that the Nokia 770 says it downloads them, but it doesn't show them anywhere in the file manager. Weird.

vlg
2006-01-28, 17:02
Although, what is weird is that the Nokia 770 says it downloads them, but it doesn't show them anywhere in the file manager. Weird.

Nokia file manager shows only officially recognizable MIME types (files that can be opened by officially installed applications). All third-party apps are not allowed (at the moment) to expand the list of MIME types. I hope this will change in the future.

vlg
2006-03-20, 23:17
Granule v1.2.1 has reached a stable status and is ready for the end-user audience.

The latest update can be found on its web site: granule.sourceforge.net (http://granule.sourceforge.net/grapp_download.html)

Let me know if you have any problems.
-Vlad

P.S. For those who have it already installed, you might want (optionally) to upgrade one of its depenencies, libassa as well.

vlg
2006-03-21, 04:53
And the correct URL is http://granule.sourceforge.net/ (http://granule.sourceforge.net/grapp_download.html)

vlg
2006-08-10, 22:25
I have made a alpha release 1.2.2 of Granule. At this moment you need to download all dependencies and install them by hand. In the future, I hope I would be able to use garage repository instead.

Download and install files in this order:

1. libsigc++-2.0-0_2.0.10-1_armel.deb
2. libglibmm-2.4-1_2.6.1-1_armel.deb
3. libgtkmm-2.4-1_2.4.10-1_armel.deb
4. hildon-fmmm_0.1.2-1_armel.deb
5. hildon-widgetsmm_0.1.2-1_armel.deb
6. libassa_3.4.2_armel.deb
7. granule_1.2.2_armel.deb

You might need to reboot after installation (although, I hope that wouldn't be necessary).

enjoy,
-Vlad

trbloomer
2007-03-16, 05:18
Granule is very cool and looks like it might be just what I´m looking for. I have a question though, can it play wav files on the 770? I use another program on windows that has wave files associated with its language flash cards that are a huge help learning correct pronunciation.

I´ve read the instructions in the manual and realize it can be done on other linux systems but I´m pretty new to linux in general and totaly new to the 770 and am unsure if the sox is part of its install or if it can be installed on the 770.

clq
2007-03-16, 17:27
Does this program work, or is there a simelar program for the N800?

vlg
2007-03-30, 13:35
Granule is very cool and looks like it might be just what I´m looking for. I have a question though, can it play wav files on the 770? I use another program on windows that has wave files associated with its language flash cards that are a huge help learning correct pronunciation.

I´ve read the instructions in the manual and realize it can be done on other linux systems but I´m pretty new to linux in general and totaly new to the 770 and am unsure if the sox is part of its install or if it can be installed on the 770.

Yes, you can play audio files on n770 as well. For that, you need to install gst-launch utility which is a part of gstreamer-tools. Enable "red pill" mode in the Application Manager, install gstreamer-tools and that should give you .mp3 playback support.

Then, convert your WAV files to MP3s and put them on n770.

Start Granule, go to the Preferences->sounds and set the sound settings to:

Sound Player: gst-launch
Sound Cmd Args: filesrc location=%.mp3 ! dspmp3sink

Make sure the 'Default Sound Path' is a valid path.

The sound player might be either gst-launch or gst-launch-0.10.

It is not as clean as it could have been with direct gstreamer support by the program, but it works for me. The only thing is you need to pace yourself playing sounds - if they are lengthy clips, make sure you don't start the next one while the previous is still playing. That will hose the gstreamer pipe and leave zombies behind (which the only way to get rid of is with reboot). So, pause before you play the next sound.

hope this helps.

vlg
2007-03-30, 13:42
Does this program work, or is there a simelar program for the N800?

Granule v. 1.2.4 port to N800 is available. Either use .install link for quick installation or add 'extras' repository to you Application Manager list and you should be able to install it. For detailed instruction, please, consult the 'Nokia' section of the Download page:

http://granule.sourceforge.net/grapp_download.html

sashabe
2008-02-05, 22:04
i use the version for os2008 and impressed by the program's possibilities, though have a few suggestions:
1. option to ignore the case of entered words. By default, Maemo always starts the word from the capital letter and it's so annoying to see that 'incorrect' result was due to a single capital letter;
2. option to set 'correct' status by the part of the word, not full version. it's very useful in a lot of cases.
is there any hope to see these features implemented?)
thanks)

Jasperfields
2008-07-14, 04:37
I have been using this a lot and wonder if anyone has it working in diablo. I have it installed but when I start it, I get a loading message and then nothing. It does not open. Any help would be greatly appreciated.

Thanks!

vlg
2008-07-23, 14:19
I haven't had a chance to load diablo or install its corresponding SDK. But you should have no problems with starting Granule from command line like this:

1. Utilities-> X Terminal
2. ~ $ granule --log-level=3 --log-file=granule.log

Then open a bug report [1] with the Bug Tracker and attach granule.log to your report so that I can examine the log messages to see what the problem might be.

[1] http://granule.sourceforge.net/grapp_bugs.html

FrankWalzer
2008-07-23, 20:01
I got this on Diablo:

/home/user # granule
granule: error while loading shared libraries: libhildonmm-1.0.so.1: cannot open shared object file: No such file or directory

but my system has 2.0.1-2 installed.

olis80
2008-08-03, 11:07
I have the same problem in diablo, granule loads but not starts.
If started from xterminal I get this error:

error while loading shared libraries: libhildonmm-1.0.so.1: cannot open shared object file: No such file or directory.

Any help greatly appreciated.
Thanks.

syntoad
2008-08-03, 14:39
From the fring thread:

#ln -s /usr/lib/libhildonmm-1.0.so.2 /usr/lib/libhildonmm-1.0.so.1

I'm back on chinook for now until more software is updated, but see if that fixes your problems.

vlg
2008-09-03, 20:43
I pushed granule-1.4.0-7 both to chinook and diablo 'extras' last night. You should be able to install it with one-click install from the Download

This release introduces new UI design for the Deck Player dialog to take full advantage of scarce screen real estate of Nokia IT N8x0 and adds support for full-screen mode with touch-screen navigation keys.

http://granule.sourceforge.net/grapp-maemo-deckplayer-back.png

happy learning,
--Vlad

Laughing Man
2008-09-03, 21:08
I tried installing it but it says it needs gstreamer-tools. Should I redpill it or grab it from another repo?

vlg
2008-09-04, 03:11
gstreamer-tools is listed as dependency and should have been installed automatically. You can, of course, install it in redpill mode - but it makes me wonder what I do wrong on my part.

Here is my debian/control file. Perhaps, someone can point out to me my mistake:


Source: granule
Section: user/other
Priority: optional
Maintainer: Vladislav Grinchenko <vlg@users.sourceforge.net>
Build-Depends: debhelper (>= 4.0.0), libxml2-dev, libhildon1-dev, libosso-dev, l
ibosso-gnomevfs2-dev, libhildonfm2-dev, osso-af-settings, libgconf2-dev, libhildonmm-dev, libhildon-fmmm-dev, intltool, libassa-dev
Standards-Version: 3.6.1

Package: granule
Architecture: any
Depends: ${shlibs:Depends}, gstreamer-tools
Description: flashcard program for learning new words

Simon80
2008-09-08, 01:21
gstreamer-tools doesn't seem to exist in the extras repository, or any of the other default repositories. I'm not sure where you've gotten it from, but it is actually missing, so it's not the fault of your control file. I noticed libassa in extras-devel, so I guess that package just needs to be promoted.

vlg
2008-09-08, 03:30
gstreamer-tools is a system-level package.

I tested the chinook installation and it worked for me as expected.

I wonder if diablo is different in this respect and if I should install it and
investigate this issue further.

You might try to install gstreamer-tools from XTerm with something like


$ sudo gainroot
# apt-get install gstreamer-tools

cashel
2008-09-10, 11:37
I'm having the same issue with gstreamer-tools on diablo.

Thanks for the work with granule, I'm sure it will be great once I install it.

cashel
2008-09-11, 02:43
I've resolved my problems with gstreamer-tools on diablo.

I grabbed the chinook gstreamer-tools debs:

http://repository.maemo.org/pool/chinook/free/g/gstreamer0.10/gstreamer0.10-tools_0.10.13-0osso13~chinook_armel.deb

http://repository.maemo.org/pool/chinook/free/g/gstreamer0.10/gstreamer-tools_0.10.13-0osso13~chinook_armel.deb

Granule installs after this

oldmancoyote1
2008-09-11, 19:21
When I tried to install gstreamer using cashel's links, I got the incompatible error message. I am running the latest version of diablo on an 810. How do I install a chinook app on a diablo machine?

Many thanks.

Laughing Man
2008-09-11, 19:31
I get the same error, incompatible.

oldmancoyote1
2008-09-15, 01:51
I've tried lots of things since my last posting. The most promising was:

download the gstreamer tool deb as linked above.
xterm
sudo gainroot
dpkg -i FileNameWhereDebIsSaved.deb

All the messages looked great.
Used Application manager to install granule.
Same ****ed error messsage!

Anybody have any ideas?

Simon80
2008-09-15, 22:53
You might try to install gstreamer-tools from XTerm with something like

I did try this, only I typed apt-cache policy gstreamer-tools in order to see that it was completely unavailable for me. Also of use for hunting for maemo packages is this site (http://www.gronmayer.com/it/index.php), which shows that gstreamer-tools is in the deb http://repository.maemo.org/ diablo/sdk (http://www.gronmayer.com/it/dl.php?id=245) repository

mikkov
2008-09-16, 00:57
I added gstreamer-tools to extras, granule is now installable.

Please don't use sdk repository on tablets

vlg
2008-09-16, 02:03
mikkov,

thank you so much for resolving this dependency. I've been busy lately and
couldn't look into the issue myself.

thanks again,
--Vlad

Laughing Man
2008-09-16, 02:58
Ok, I installed it but it doesn't run.

When trying it from the command line..

"error while loading shared libaries: libhildonmm-1.0.so.2: cannot open shared object file: No such file or directory"

MattZTexasu
2008-09-16, 03:47
I installed it and it ran fine. Now I have to build some decks.

oldmancoyote1
2008-09-20, 21:07
Success! After using dpkg as above, App Manager would'nt load granule.

Next I used: dpkg -C
and: dpkg -l

Now App Managdr installed granule without further complaint. Go figure.

Good luck.

Morhas
2008-09-30, 19:16
I have been able to get granule installed, but when I go to launch granule, I get the "Loading granule" window, but nothing happens.

shubhamharnal
2009-01-12, 08:46
When I launch granule and subsequently a new deck, I do not get any interface to add new words. Unlike the online granule manual which shows a right-hand side vertical toolbar with buttons to do so, I do not get any such options menu.
Any ideas anyone?
Thanks.

vlg
2009-01-13, 17:36
That whole set of control buttons that used to be on the right side of the DeckPlayer is hidden now.

The menu can be accessed by clicking on the 'down' arrow button third from the left in the bottom toolbar.

http://home.comcast.net/~3rdshift/Granule/Grapp-HiddenControls.png

hope this helps,
--Vlad

shubhamharnal
2009-01-17, 01:36
Thanks soooo much Vlad! Granule's like the best flash-card program ever!
Thanks a million!

taylork
2009-02-17, 03:25
I have been able to get granule installed, but when I go to launch granule, I get the "Loading granule" window, but nothing happens.

I was also getting this (in diablo). I believe it was conflicting with granule in chinook. I just disabled that repository, reinstalled and it worked fine. More detailed response below.

If I ran it in the terminal:
granule: error while loading shared libraries: libhildonmm-1.0.so.1: cannot open shared object files: No such file or directory

Nokia-N800-23-14:~# apt-cache policy gstreamer-tools
gstreamer-tools:
Installed: (none)
Candidate: 0.10.13-0osso13~diablo1
Version table:
0.10.13-0osso13~diablo1 0
500 http://repository.maemo.org diablo/free Packages

Nokia-N800-23-14:~# apt-cache policy granule
granule:
Installed: (none)
Candidate: 1.4.0-7
Version table:
1.4.0-7 0
500 http://repository.maemo.org chinook/free Packages
1.4.0-7 0
500 http://repository.maemo.org diablo/free Packages
1.4.0-2 0
500 http://repository.maemo.org chinook/free Packages
1.4.0-1 0
500 http://repository.maemo.org chinook/free Packages
1.3.0-pre4 0
500 http://repository.maemo.org chinook/free Packages
1.3.0-pre3 0
500 http://repository.maemo.org chinook/free Packages
Nokia-N800-23-14:~# exit

Disabling the chinook/free repository leads to:

Nokia-N800-23-14:~# apt-cache policy granule
granule:
Installed: (none)
Candidate: 1.4.0-7
Version table:
1.4.0-7 0
500 http://repository.maemo.org diablo/free Packages

and it installed (and works) fine.

daperezg
2010-02-02, 19:34
in the following address there are some flashcards to download:

http://sourceforge.net/projects/granule/files/Examples/



But there are only 3 useful to learn english; the most of them are english-russian.

Where are flashcards available for download?

vlg
2010-07-19, 21:50
granule 1.4.0-8maemo0 has been built and is available in Extras-devel.

I don't own N900 and all my limited testing were done under scratchbox simulated environment.

I ask a volunteer familiar with the application try to install it on the device and test its functionality.

If it tests out OK, let me know, and we can move it to Extras-testing and eventually to Extras.

Here are maemo testing guidelines:

http://wiki.maemo.org/Extras-testing/QA_Checklist#Lack_of_bug_reporting_database

Sash
2010-07-20, 19:33
Thanks for the build. I've had a little test of Granule and it all looks good so far. I've had a little play with it all and created a few decks.

The only little issue I've come across is when importing a CSV file, the filenames become extremely short in the pop up and I can't stretch the window out any further:
http://i32.tinypic.com/21jbrtk.jpg

In the open file bit there doesn't seem to be the same issue as it looks like this:
http://i31.tinypic.com/2dbktj6.jpg

Good work on it nonetheless!

vlg
2010-07-20, 21:01
Sash,

thanks for giving it a shot. I can reproduce 'Open File' problem with scratchbox simulator as well.

Apparently, for maemo5/fremantle, Hildon::FileChooserDialog (http://maemomm.garage.maemo.org/docs/tutorial/html/sec-filechooserdialog.html) would be more appropriate.

vlg
2010-07-22, 15:30
I uploaded new build, granule-1.4.0-8maemo1 to 'Fremantle Extras-devel free' for testing. This build fixes File Selection dialogs everywhere in the application.

Can someone, please, verify that editing card fields actually works on a device, especially, multi-line editing? I could not get a good sense if that is the case with the simulator. --thx.

And here is how FileChooserDialog looks like now:

http://home.comcast.net/~3rdshift/Granule/N900-Hildon-FileChooserDialog.png

Sash
2010-07-25, 17:56
Thanks for the update. The file selection is a lot better now.

I've edited a few cards and they seem to work well for me. Here's how it looks on the N900:

http://i29.tinypic.com/slk0tx.jpg

http://i31.tinypic.com/3348abp.jpg

You might as well move it up to Extras-Testing if you're happy with it!

vlg
2010-07-26, 17:54
I promoted granule to Fremantle extras-testing free repository [1]. According to the Extras-testing rules [2], we would need Karma >10 and at least 3 members of the testers group to cast their votes to promote it further to Fremantle extras.

I posted more screen shots at the main web site (http://granule.sourceforge.net/grapp_screenshots.html).

[1] http://maemo.org/packages/package_instance/view/fremantle_extras-testing_free_armel/granule/1.4.0-8maemo1/

[2] http://wiki.maemo.org/Extras-testing#Promotion

vlg
2010-07-28, 19:53
I rebuilt and optified [1] granule-1.4.0-8maemo2 [2] to follow up on comments made against the last build. The package is in Fremantle extras-testing free repository now.

[1] How to optify maemo5 debian package (http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Packaging,_Deploying_and_Distributing/Installing_under_opt_and_MyDocs)

[2] granule-1.4.0-8maemo2 comments page (http://maemo.org/packages/package_instance/view/fremantle_extras-testing_free_armel/granule/1.4.0-8maemo2/)

vlg
2010-08-05, 14:35
I rebuilt granule-1.4.0-8maemo3 [1] to fix a critical bug discovered by the test team. The package is in Fremantle extras-testing free repository now.

[1] 1.4.0-8maemo3 Extras-testing free armel (https://maemo.org/packages/package_instance/view/fremantle_extras-testing_free_armel/granule/1.4.0-8maemo3/)