# Anki?

### Index » Learning resources

Topic closed

Okay, it's a bit confusing, but it's probably the correct behavior.

The pending stats down the bottom show the number of cards that are pending for a session. Even though some cards are not currently spaced, they will be spaced after another card has been answered. If it were to display all pending cards and ignore to-be-spaced cards, you'd see the pending count drop down in multiples, like 860 -> 858, etc. I think that would be more confusing.

So the deck statistics tells you the total number of new cards in the deck. But the stats down the bottom tells you the number of new cards that you can study today.

Hope this helps!

Ah, I see! Thanks for clearing that up

Hi, at work I neither have a computer nor internet, so I'm thinking about buying a PDA to learn Japanese there. Is it possible to run Anki on a PDA? I don't want to use two seperate programs at home and at work but prefer to use the same so I don't have to review things twice. Sorry I don't know anything about PDAs and if they can run programs that are made for a computer.

The anki library needs about 25MB to load a deck of 3600 cards. GUI code requires more memory. So older PDAs like palms are out of the question. More modern ones that support python could support Anki, though.

I plan to make a web-based review system for PDAs in the future. However, I don't have a PDA, nor do I need one, so it's hard to get around to writing support. Volunteers welcome :-)

Last edited by resolve (2007 September 20, 11:48 am)

I'd like to use Anki, but I've hit a problem with running it on Linux.

I use scim and uim for Japanese input, but it doesn't seem to register with Anki (works for all other applications tried).

Has anyone else got it working? A quick Google returns this bug which states that PyQt does not accept scim messages: http://osdir.com/ml/kde.devel.bindings/ … 00008.html

Pasting in sentences from a text editor or browser doesn't work either (all '?') so perhaps there's also a problem with encoding. Is Anki fully UTF8/Unicode?

Lastly, running python setup.py install results in an error when it consults the python online application database, stating that it can't find Anki.

Otherwise it looks good! Thanks for making it available.

What distro? I think this is an ubuntu/gentoo scim problem. It works fine in debian. I can provide links to workarounds for ubuntu if that's what you're using.

I have no idea about the install error you mention. Could you give more details?

I'm using ubuntu 7.04 and scim works just fine. I didn't have to do anything special though, so I can't really help with your problem...

#### resolve wrote:

The anki library needs about 25MB to load a deck of 3600 cards. GUI code requires more memory. So older PDAs like palms are out of the question. More modern ones that support python could support Anki, though.

I plan to make a web-based review system for PDAs in the future. However, I don't have a PDA, nor do I need one, so it's hard to get around to writing support. Volunteers welcome :-)

Please do! My PDA with Windows Mobile hungers for Anki.

#### resolve wrote:

What distro? I think this is an ubuntu/gentoo scim problem. It works fine in debian. I can provide links to workarounds for ubuntu if that's what you're using.

I'm using Gentoo. Glad to hear it works on other platforms. If you have any hints on where to look I'll see if I can work it out.

#### resolve wrote:

I have no idea about the install error you mention. Could you give more details?

python setup.py install: (is this what I'm supposed to run to install Anki? I thought maybe the scim problem was something that was fixed during the install process. I normally run Anki from its own extracted directory)

#### Code:

Installed /usr/lib/python2.4/site-packages/ankiqt-0.3.6-py2.4.egg
Processing dependencies for ankiqt==0.3.6
Searching for anki>=0.3.6
Couldn't find index page for 'anki' (maybe misspelled?)
Scanning index of all packages (this may take a while)
error: Could not find suitable distribution for Requirement.parse('anki>=0.3.6')

I've since switched to using UIM only which I like a lot; now Anthy is enabled all the time for all applications.

Unfortunately, Anki is still ignoring this somehow.

You need to run "setup.py" from the libanki directory first, then again from the main directory. This is pointed out in the installation instructions :-)

#### resolve wrote:

You need to run "setup.py" from the libanki directory first, then again from the main directory. This is pointed out in the installation instructions :-)

Gah, I thought that was for developers. My apologies.

As expected, installation does not solve the Japanese input problem. Any insight on that, given that it works for neither SCIM or UIM on Gentoo?

Sorry, I don't use gentoo and thus don't know. I believe it's a bug which affects all QT apps on gentoo, though. It was a problem on ubuntu too, but I guess it's been fixed.

Here is a report from an ubuntu user:

I eventually got Japanese input working in Anki. This is what I did:
* im-switch -s scim_xim
en_US.UTF-8,en_GB.UTF-8,en_AU.UTF-8" to ~/.scim/global
* Disabled "Embed Preedit String into client window" in scim-setup
* Changed QT var to: XIMInputStyle=Over The Spot

I still have scim-qtimm installed, but I guess it's not being used.
$QT_IM_MODULE=xim by default. As a bonus, it seems to work in emacs now too. But I mustn't have my fonts configured correctly for it, because I get boxes instead of Japanese text. Additionally, my tilde key works again! Some GTK apps don't seem to work as well with the new settings, but I'll keep testing it. I still wonder whether there could be improvements made to Anki, given that Kedit worked with pretty much every configuration. In particular, Anki required Over the Spot and no preedit string while kedit is happy with either. I wonder if that was the only thing I needed to change? If I continue to have trouble with GTK apps I test scim again (instead of scim_xim). resolve, I've got it working now and believe that the problem lies with the Gentoo wiki entry about input methods (I'll update that in time). For now, anyone on Gentoo having trouble getting Anki or another app working with Japanese input might want to try the following configuration. On Gentoo this should be in the file ~/.xprofile #### Code: GTK_IM_MODULE=uim ; export GTK_IM_MODULE QT_IM_MODULE=uim ; export QT_IM_MODULE uim-xim & XMODIFIERS=@im=uim ; export XMODIFIERS I'd then recommend running uim-im-switcher-qt and setting the default IM to Anthy. After that it functions much like a Japanese Windows laptop whereby the 半角／全角 key toggles between Japanese and English. Now to add some cards! Online version works great on my PSP web browser ^^ But is there any possible that you can make "offline" version? It would be so nice if I can use Anki everywhere. Unlikely I'm afraid. I don't have a PSP, and PSPs are not very conducive to open source development. So I finally am making the permanent jump from Mnemosyne to Anki today. I have one small question, when I import a Mnemosyne card like this #### Code: Q: <font color=blue>効</font>力 A: コウ こうりょく effect(as "in effect"); efficacy; validity I get a perfect card in Anki with the first kanji in blue like I want. How do I recreate this effect with the card editor? If I try to use the font tag it doesn't seem to work. I also can't find a reference to font color outside of the model editor. Coloured text is not supported by the editor yet (though it is supported if you make the HTML yourself via importing). A future Anki release (probably the next one) will add colour editing support. Whenever I try to open anki, an error pops up telling to me check out anki.exe.log for details. This is what I see: "Traceback (most recent call last): File "ui\update.pyc", line 106, in run WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'anki-update.exe' Traceback (most recent call last): File "anki", line 19, in <module> File "ankiqt\__init__.pyc", line 59, in run File "ankiqt\config.pyc", line 25, in __init__ File "ankiqt\config.pyc", line 111, in load File "pickle.pyc", line 1370, in load File "pickle.pyc", line 858, in load File "pickle.pyc", line 880, in load_eof" Sorry if this is a repeat but after searching for a solution for 30 minutes, I got sleepy and needed to not search anymore. If you could help me to restore my anki without losing all of my cards or point me in the right direction, that would be really really awesome. Thanks. Anki died (or was killed) while trying to write your deck. This shouldn't happen in the most recent Anki release. You can find backups by looking in documents and settings\myusername\.anki\backups - copy the most recent backup over your broken deck. You're running 0.3.6, right? Just curious: I am able to input mathematical formulas in mnemosyne like this: <$> x+y =\sum ... </\$> (via LaTEX)
Are you planning to support this feature?

Last edited by HerrPetersen (2007 September 26, 2:45 pm)

Latex support is planned for the future

Hmmm. I found the back up, but to where exactly am I supposed to copy it? Which file/folder includes the broken deck?

I may actually be running a slightly earlier version than that. Hadn't had a chance to use it for a couple weeks.

the default deck name is "mydeck.anki" or "tango.anki" or similar. Do a search for .anki   files and then copy the backup over that file. It's probably in \documents and settings\my user

I renamed the backup tango.anki and copied it over the other file, but the same error occurs. Would it help if I re-installed it? Would I be able to import the backup file if I were to do that?

Topic closed