maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   ankimaemi 0.0.3 (https://talk.maemo.org/showthread.php?t=26125)

sanchi 2009-01-10 14:28

ankimaemi 0.0.3
 
Hello,

ankimaemi is a GTK frontend to anki, a friendly, intelligent spaced repetition learning system.

ankimaemi 0.0.3 has been released:
https://garage.maemo.org/frs/?group_id=863

The deck and the sync account can now be set in ankimaemi. Ankimaemi now uses gconf to save the settings, and will use the last used deck.

Sound file playback is now possible with wav and mp3.

This release also fixes some bugs (decks were not closed properly).

As this is fairly new software, and actually my first on maemo, I would appreciate feedback from fellow ITTers.

Regards
Stefan

DalLL 2009-01-10 16:54

Re: ankimaemi 0.0.3
 
Hi can you post the link for the python gtkhtml deb? i can't seem to find it in the devel extras repository

allnameswereout 2009-01-10 17:01

Re: ankimaemi 0.0.3
 
Yes, I noticed. Very interesting! I'm very much interested in testcases of this program!!

FrankWalzer 2009-01-10 22:53

Re: ankimaemi 0.0.3
 
Quote:

Originally Posted by DalLL (Post 256156)
Hi can you post the link for the python gtkhtml deb? i can't seem to find it in the devel extras repository

I had to use Red Pill mode to install that lib.

sanchi 2009-01-11 01:14

Re: ankimaemi 0.0.3
 
python-gtkhtml2 would be from
http://repository.maemo.org/extras-d...emo1_armel.deb

i installed it in blue pill from command line (sudo gainroot; apt-get install python-gtkhtml2) after adding extras-devel repo (click this link from the tablet: https://garage.maemo.org/extras-assi...-devel.install)
which is better than installing by hand because python-gtkhtml2 itself depends on a lot of stuff:
Depends: libatk1.0-0 (>= 1.12.2), libc6 (>= 2.5.0-1), libcairo2 (>= 1.4.10), libglib2.0-0 (>= 2.12.12-1osso10), libgtk2.0-0 (>= 2:2.10.12-0osso15), libgtkhtml2-0 (>= 2.11.1), libpango1.0-0 (>= 1.16.4), libxml2 (>= 2.6.27), python2.5-gtk2

which you'd all have to search for manually if you want to install that by hand.

DalLL 2009-01-11 05:25

Re: ankimaemi 0.0.3
 
Thanks! I did have to go into red pill mode. Guess I can uninstall ankimini now.

heelio 2009-01-11 05:49

Re: ankimaemi 0.0.3
 
Where can I find the anki program which it also says it wants?

allnameswereout 2009-01-11 12:27

Re: ankimaemi 0.0.3
 
Quote:

Originally Posted by heelio (Post 256364)
Where can I find the anki program which it also says it wants?

One the same homepage there is one provided. Look around again, this time more carefully... :)

heelio 2009-01-11 15:04

Re: ankimaemi 0.0.3
 
If that's the one listed under ankimini, it wants python-sqlalchemy and python-simplejson so where are those?

sanchi 2009-01-11 16:05

Re: ankimaemi 0.0.3
 
they are also under the ankimini release

heelio 2009-01-13 04:21

Re: ankimaemi 0.0.3
 
Okay I managed to get it installed and it works now. I also installed the Windows version and typed in a deck. I was unable to get any of the syncing stuff to work - kept giving errors - but was able to manually copy the deck over to the tablet and it does work. Very nice.

FrankWalzer 2009-01-13 10:26

Re: ankimaemi 0.0.3
 
I really like ankimaemi...

There seems to be one issue in 0.0.3. When I try to open a new deck after working with another one it asks for saving. However it doesn't work no matter if I enter yes or no. When I cancel the dialog, then save and open it is ok. So a minor issue right now.

I also tried the full PC version. This seems to be QT4 based. Anyone tried to port to Maemo/QT already? I would give it a try but I have to setup the development stuff first.

regards,
Frank

sanchi 2009-01-13 15:48

Re: ankimaemi 0.0.3
 
Hello,

thanks for trying. I will look into the issue with saving on opening another deck.

about running the full ankiqt, it works, but for reviewing cards i like ankimaemi better (much more responsive, and less unnecessary stuff on the screen). if you want to edit cards though, or add stuff, it could be useful.

from
http://groups.google.com/group/ankis...13d0843499240d

------------------------
you can also just run the full ankiqt on the N8x0. install
python2.5-qt4-webkit python2.5-qt4-network python2.5-qt4-gui python2.5-
qt4-core python2.5-qt4-common
(they are in extras-devel, see http://pyqt.garage.maemo.org/installation.html),
get and unpack anki source, and run python anki in the terminal.

The button toolbar is somewhere on the bottom, the buttons do not have
frames, and fullscreen does of course not work, but you can tab the
plus and enter stuff, even with vkbd. there is some quirks here and
there, and always too much on the small screen, but it basically just
works.

if you have some libanki installed (e.g. 0.9.9.1), you may get into
trouble with a different ankiqt version (or temporarily move /usr/lib/
python2.5/site-packages/anki somewhere else).

Stefan

sanchi 2009-01-13 15:50

Re: ankimaemi 0.0.3
 
@heelio: what does not work with syncing? did you register a sync account? (http://anki.ichi2.net/ ) and set the account both in animaemi and the windows app?

sanchi 2009-01-14 04:25

Re: ankimaemi 0.0.3
 
ankimaemi 0.0.4 (https://garage.maemo.org/frs/?group_id=863) fixes the bug with the "save current deck first" dialog. Also, it adds 'Recent decks..." - very useful if you have more than one deck.

olis80 2009-01-15 16:13

Re: ankimaemi 0.0.3
 
hi sanchi, thank you again for your hard work.
I have a problem with bold characters in the cards of my decks.
A bold word in a card is displayed in a very big size, so big that it occupies the entire tablet screen.
I don't know whether it's a bug in ankimaemi or whether I screwed something up.

sanchi 2009-01-15 21:17

Re: ankimaemi 0.0.3
 
olis80, what is the html code you use?

pton 2009-01-29 01:31

Re: ankimaemi 0.0.3
 
Hi, I installed it successfully. When I run ankimaemi from xterm, ankimaemi starts up fine, but when I open a deck of (sample) cards, ankimaemi does not react at all (still shows 0 cards). I see the follow error messages output to the xterm. Any help please? Thank you!

user@~> ankimaemi
python[3947]: GLIB DEBUG ConIc - con_ic_connection_send_event(0x3c4660, (null), (null), 1)
/usr/lib/ankimaemi/ankimaemi.py:264: GtkWarning: gtk_tree_model_filter_row_has_child_toggled: assertion `elt->visible' failed
rep=selector.run()
Traceback (most recent call last):
File "/usr/lib/ankimaemi/ankimaemi.py", line 269, in choose_deck
self.replace_deck_with_file(a)
File "/usr/lib/ankimaemi/ankimaemi.py", line 496, in replace_deck_with_file
self.update_recent_menu(self.DECK_PATH)
File "/usr/lib/ankimaemi/ankimaemi.py", line 217, in update_recent_menu
self.set_recent_menu()
File "/usr/lib/ankimaemi/ankimaemi.py", line 222, in set_recent_menu
self.conf_client.set_string("/apps/anki/general/deck_path_history%d"%i, self.recent_decks[i])
TypeError: GConfClient.set_string() argument 2 must be string, not None

sanchi 2009-02-11 10:37

Re: ankimaemi 0.0.3
 
Hello pton,

sorry, there is a bug in ankimaemi. You can fix it the foloowing way:
1. get root
$ sudo gainroot
2. edit ankimaemi.py
vi /usr/lib/ankimaemi/ankimaemi.py

go to line 222, and add the following (not breaking the indentation)
if self.recent_decks[i]:
self.conf_client.set_string(...

I will update the package soon.

theillien 2009-02-11 15:23

Re: ankimaemi 0.0.3
 
I've just installed v0.0.4. I have a deck downloaded but, whenever I open it nothing happens. It is on my removable SD card. Does it need to be somewhere else? I know that ankimini requires changing the name of the deck to mydeck.anki or something like that. Is ankimaemi the same?

sanchi 2009-02-12 00:25

Re: ankimaemi 0.0.3
 
@theillien: no, you should be able to open the deck with 'Open...' from the menu. If this does not work, please start a terminal, type ankimaemi to run it, and post here the error message that appears in the terminal when opening the deck.

sanchi 2009-02-12 02:15

0.0.5 (was: Re: ankimaemi 0.0.3)
 
Hello,

ankimaemi 0.0.5 released - get it together with libanki 0.9.9.6 at https://garage.maemo.org/frs/?group_...elease_id=2346.

Regards
Stefan

Release Name: 0.0.5

Notes:
This is an update to libanki 0.9.9.6 - most important the "review early" and "learn more" have been added. Some bugs (like bold print, and other exceptions) fixed.

Thanks to Damien Elmes to implement the very useful "review early" and "learn more", even though it's against SRS principles :)

Needs libanki 0.9.9.6 - will not run properly with old versions.


Changes:
o updated to libanki 0.9.9.6
o add "review early" and "learn more"
o fix bold print
o catch exceptions on filename or mplayer
o fix error on gconf setting None

sanchi 2009-02-12 10:52

Re: ankimaemi 0.0.3
 
NOTE: if you upgrade ankimaemi and libanki to 0.9.9.6, when first opening a deck created with an older version, it will create DB inidices, which takes some time. For a large deck this can take 2-3 minutes, with CPU load 50-90% - it did not crash, even if it looks like it has.

sanchi 2009-03-18 12:58

Re: ankimaemi 0.0.3
 
ankimaemi (0.0.5) and ankiqt (0.9.9.6) is now in extras-devel.
enjoy!

epangelia2k2 2009-03-26 21:23

Re: ankimaemi 0.0.3
 
Hi - first up thanks for your work . . . my primary reason for buying a second hand N800 was to use Anki!

I review on several different Windows machines as well as my N800 and my understanding is that the most recent update of the client to 0.9.9.7 has also involved changes to the representation of the deck and therefore changes to the sync protocol.

I've updated through the project page on garage but I'm still getting "Cant connect - check connection and username/password" error messages.

The settings seem correct and I've not had any problems previously so I wanted to check if the updates so far cover the changes to the sync protocol . . . ?

Thanks

epangelia2k2 2009-04-25 19:38

Re: ankimaemi 0.0.3
 
I feel pretty sad following up my previous post with an even more plaintive one but I'm hoping Stefan or someone else can advise!

I'm now really struggling after the sync protocol changes because (to the best of my knowledge based on the garage page) none of the three options for anki on maemo have been updated to support the new sync protocol version. Since I review cross-machine I'm not using my n800 which is a crying shame as it was so fantastic in helping to keep on top of reviews.

Unfortunately I'm not equipped (technically) to do this myself so I'm trying to find out if development has been abandoned or is just secondary to more pressing things

Is anyone in contact with Stefan or the people who maintain the other versions on maemo (anki maemi is the front-end I was using but I'd consider anki mini or the full anki qt if recent packages were available)?

Appreciate any help or leads - thanks.

sanchi 2009-04-28 10:45

Re: ankimaemi 0.0.3
 
Hello,

anki 0.9.9.7.6b is now also packaged for NIT (N800/N810). It's in
extras-devel repository for diablo, packages anki, ankiqt, ankimaemi.

With this version, sync with the online service works again.

When opening a deck from an older anki version for the first time, it is updated to a new format, which takes quite some time on the NIT. If you have a large deck, it may take up to 20 minutes or so.

Regards
Stefan

sanchi 2009-04-28 10:48

Re: ankimaemi 0.0.3
 
@epangelia2k2: sorry for the long time to update anki packages for NIT.

In any case, you can run any anki version (ankiqt) always from source: download the source package, unpack it, and run anki, like so:

$ wget http://ichi2.net/anki/download/files...0.9.9.7.6b.tgz
$ tar xzvf anki-0.9.9.7.6b.tgz
$ cd anki-0.9.9.7.6b
$ ./anki

You may need to deinstall the old version of anki before through the application manager though.

Stefan

epangelia2k2 2009-05-01 18:59

Re: ankimaemi 0.0.3
 
Many thanks.

Maemi working again for me and syncing just fine as you say. V. much appreciate your efforts.

Anki qt isn't installing yet - but this is likely to be not understanding something so I will perservere!

sanchi 2009-05-02 09:17

Re: ankimaemi 0.0.3
 
so what does the application manager say? is there some package missing?

you can also open the terminal, and do
$ sudo gainroot
$ apt-get install ankiqt

sanchi 2009-05-10 00:45

Re: ankimaemi 0.0.3
 
ankimaemi 0.0.7
* support for zoom keys
* using Deja-Vu Sans font for more unicode charactes, sans-serif as backup (patch by Robert Thomson)

ankiqt 0.9.9.7.9
see
http://ichi2.net/anki/download/index.html
for details

if the application manager complains about package conflicts when updating, first deinstall one of the packages, then update the other, and then install it again.

Blahah 2009-10-01 21:16

Re: ankimaemi 0.0.3
 
Hi sanchi,

As you probably know there have been many Anki updates since the last NIT release of 0.9.9.7.9. The main version is now at 0.9.9.8.5 and the sync protocol has changed a few times.

I was initially going to ask you to update the repository with the latest libanki, but then I realised that by downloading the latest source package and replacing /usr/lib/python2.5/site-packages/anki with the /libanki/anki from the source package, I could keep all the features up to date.

I'll mention the same info on the anki forums so users can keep themselves up to date.

Anyway, thanks so much for taking the time to bring Anki to the n810, it's truly appreciated.

sanchi 2010-01-11 23:35

Re: ankimaemi 0.0.3
 
anki (http://ichi2.net/anki) is the one of the finest flashcard learning systems on the planet. It features efficient learning with spaced repetition, audio and images support, online syncing, chinese and japanese script, latex and much more. Its free software, and fully cross-platform (win/linux/mac/NIT/ipod/zaurus/etc).

anki 0.9.9.8.5 (ankiqt) and ankimaemi 0.0.8 are now available in the extras-devel repository for Diablo (OS2008). With these versions, syncing with AnkiOnline (ankisrs.net) works again.

ankiqt should now stay open, even if its started from the menu. Also, the dependencies have been fixed, so hopefully once installed from the Application Manager, everything works.

If you are upgrading from earlier versions and encounter problems, deinstall anki and ankiqt in the Application Manager before installing the new versions.

If someone has got a N900 phone to try anki on, I would be curious whether and how it works, possibly even with the packages from diablo repos [1].

Sources and packaging instructions are all on github now [2].

Happy learning!

[1]
urls of current packages:
http://repository.maemo.org/extras-d....8.5-1_all.deb
http://repository.maemo.org/extras-d....0.8-2_all.deb
http://repository.maemo.org/extras-d....8.5-2_all.deb

[2]
http://github.com/sanchi/ankimaemi

sanchi 2010-01-13 14:40

Re: ankimaemi 0.0.3
 
it now also reached the extras repo.

v_andal 2010-10-29 07:41

Re: ankimaemi 0.0.3
 
Hello! Any hints on how to add media to cards in ankimaemi? Is it supported at all? I've downloaded a pack from the web and it contains media (images and mp3). I've tried to place them into pack_name.media directory but it didn't help.

sanchi 2010-10-29 09:58

Re: ankimaemi 0.0.3
 
Quote:

Originally Posted by v_andal (Post 856199)
Hello! Any hints on how to add media to cards in ankimaemi? Is it supported at all? I've downloaded a pack from the web and it contains media (images and mp3). I've tried to place them into pack_name.media directory but it didn't help.

not sure about mp3, but images and wav files should work if you put them in the .media directory.

if you start ankimaemi from the terminal, you should be able to see what file the media player tries to play in the terminal window.

v_andal 2010-10-30 18:41

Re: ankimaemi 0.0.3
 
Hm. ankiqt works fine. It plays and shows pictures. But ankimaemi does neither. I'll try to run it from terminal.

snostorm 2011-01-05 22:20

Re: ankimaemi 0.0.3
 
from a install with N900 and devel repo the meami verson fails as packaged due to phython-gtkhtml2 not being specified as dependancie

balisingh 2011-02-18 00:03

Re: ankimaemi 0.0.3
 
Hi Sanchi,
I am using ankimaemi 0.0.8 on n810. The sync is not working. As i use the desktop version, i remember there was a big change with Anki 1.2. Any word on if you will supporting the new sync protocol?
We all truly appreciate your work.
_daman


All times are GMT. The time now is 01:08.

vBulletin® Version 3.8.8