Back

yomichan: a tool for reading books with Anki vocab deck integration

Thanks a lot for helping me to fix this problem. Unfortunately, I am not familiar with Qt and programming in general. Could you just give me a few more hints:

I wonder how Qt got installed on my computer in the first place : does it normally come with the system, or was it likely installed together with Anki? Is it something I can upgrade separately and, if so, is it likely to break my current version of Anki?

Concerning your previous suggestion, I have found the file https://code.google.com/p/yomichan/sourc...erences.ui but I do not know how to "run it through pyuic4" (which pyuic4 returns: pyuic4: Command not found). Is this part of python? (python -V returns: Python 2.7.1).
Reply
Ack, sorry looks like I missed your post. So basically on non-windows systems Qt is usually installed system-wide. I don't think you can easily have multiple versions of Qt installed at the same time, so yeah a new version would probably break the "for old machines" version of Anki.

It's really strange that there is no pyuic4 tool. Maybe there is a dev Qt package you can install? Very strange.
Reply
Thanks for the reply. If I understand correctly, Qt must have come with Anki since I never installed it specifically. Perhaps I will ask on the Anki forum. Damien should know what is installed together with this version of Anki.
Reply
May 16 - 30 : Pretty Big Deal: Save 31% on all Premium Subscriptions! - Sign up here
JapanesePod101
@FooSoft
Here is the reply I received from Damien :

The plugin author is using a feature which did not exist in Qt4.4,
which is the version used for old machines. Short of them changing
their layout or you going through the rather difficult task of
building and installing all the dependencies for a newer version
yourself, I'm afraid you're out of luck.

Too bad for me ! But, while finding this frustrating, I can understand that taking care of outdated configurations would be too much of an effort.
By the way, it would be helpful to other people like me if this kind of information was somehow provided at the time of downloading the plugin. Also you might consider making an "unsupported version for old machine (Qt4.4) users" accessible, as Damien is doing for Anki itself. Since such configurations are essentially frozen, it would not imply any further upgrade from your part.

I hope to join other happy users of the future versions when I eventually can afford to buy a new machine…

Keep up the great work !
Reply
Any tip to get yomichan working under Ubuntu?
Reply
@jino123:

Ubuntu runs an older version of Python than I support right now, but you can get around this problem with the following fix http://forum.koohii.com/showthread.php?p...#pid127807
Reply
Yesss It works!
Thanks !! Smile
Reply
As I love Yomichan, I wrote a Wiki page for setup and usage at http://rtkwiki.koohii.com/wiki/Anki_tool...nese_study using original instructions by FooSoft.

FooSoft, I used some of your screencaps and uploaded them for internal use in the Wiki. Let me know if this is okay, if not, I'll redo them.

I think more people should learn about this really great plugin. Any ideas on how to make it more popular?
Edited: 2011-05-04, 3:35 am
Reply
Cool, nice wiki page Big Grin As far as popularity goes, I think if people need it they will find it. I certainly know that I looked around for something similar before I spent the time to write this plugin.
Reply
I was wondering if it will be feasible for yomichan to be able to add data to existing cards.
Eg.
- add example sentences to existing vocabulary cards.
- activate existing cards, by tagging or prioritising them

or is this too different to the way the plug-in works?
Reply
rachels Wrote:I was wondering if it will be feasible for yomichan to be able to add data to existing cards.
Eg.
- add example sentences to existing vocabulary cards.
- activate existing cards, by tagging or prioritising them

or is this too different to the way the plug-in works?
I was wondering about this one, too.
Adding sentences to existing cards would be really cool.
Edited: 2011-05-07, 6:18 pm
Reply
Hi all !

I love anki too, and Yomichan seems to be a really great tool combined with this software. However I have a problem, I don't know if this is the right place for troubleshooting, if not I'm sorry but you can redirect me to a place where I might find an answer.
So my problem is that unfortunately, when I try to open a japanese text file (.txt) I get the following message : "cannot open file for read"

Any idea where that could come from ? I'm on windows XP.

I also installed it on a fedora 14 station at work and I got another problem. Here I can open files, but I don't see any tiny plus/plus button next to the words. It was an easy text with easy kanjis but since it was on a new deck, it should'nt matter, should it ?

Thanks for your replies, if you can help me...
See you
Reply
On WinXP, you should make sure that the filenames are not encoded in a weird way. Try renaming the file you are reading to something simple.

On your Fedora box, make sure that you set up the options correctly. Yomichan configuration lives on a given machine, not in the deck itself (specifically ~/.yomichan)
Reply
Thank you FooSoft. Actually Ofuru solved my two problems (in "real life") this evening and indeed you're right, the problem in windows was an item in the path name had an accent, and also I had not understood perfectly how to set the configuration in Edit/Preferences.

Thx XD
Reply
Hi !

I just changed my system to Ubuntu 11.04. I was previously working with windows and it was fine, but now the problem is that in Yomichan the background color of the dictionary tab is the same as font color. I can change this feature in preferences only for the text tab, not for the dictionary, so in order to be able to see the translations, I have to select it to have the contrast, otherwise it's as if there were no text at all... Any idea where that might come from ?

See you
Reply
So Yomichan pulls the color preferences for the dictionary tab from the system color settings for a hint window. Ubuntu seems to use pretty weird default settings...

If you can't/don't want to change the color settings, you can just modify reader_util.py in plugins/yomichan_plugin/core...

You can change:
Code:
html = u"""
        <html><head><style>
        body {{ background-color: {0}; color: {1}; font-size: 11pt; }}
        span.expression {{ font-size: 15pt; }}
        </style></head><body>""".format(toolTipBg, toolTipFg)
to something like (pick your own colors)...

Code:
html = u"""
        <html><head><style>
        body {{ background-color: {0}; color: {1}; font-size: 11pt; }}
        span.expression {{ font-size: 15pt; }}
        </style></head><body>""".format('white', 'black')
Reply
That worked !
You people are so impressive !! Thanks, now I think I can fully enjoy my brand new ubuntu. If I get any more troubles with anki or yomichan, I'll come back here.

See you
Edited: 2011-05-24, 10:22 am
Reply
Is there a possibility yomichan would only display words that are really unknown to the reader, checking the main anki deck (like core6k f.e.)? Would be great stuff.
Reply
I think cb4960, FooSoft, overture, etc., should all get together and build some sort of supertool.
Reply
nest0r Wrote:I think cb4960, FooSoft, overture, etc., should all get together and build some sort of supertool.
agreed
Reply
nest0r Wrote:I think cb4960, FooSoft, overture, etc., should all get together and build some sort of supertool.
Supertool = getting a €uro cash of every koohii.com user Big Grin Coder's are just somewhat precious to have.

By the way.. I know it's kinda off-topic, but I wonder if I could accelerate my Japanese learning in Anki by letting the cards being sort out in the way I'd learn the cards not in some order but in an order like shown below (is there such a plugin already and if yes, which one?): 後者、前後、最後. (see the 後 come all after another)
Reply
@tori-kun
Hmm, but you already decide what words you want to see right? Like so if you know a word and don't want to see it then don't click on it Wink Not sure I follow.
As far as the word learning order, I've thought about that for a while too. Would be a fun experiment for sure!

@nest0r
Yes, we will create the ultimate application! You will automatically learn like 500 kanji just from running it for the first time Big Grin
Edited: 2011-06-08, 10:52 am
Reply
I see balloonguy's still lurking like a ninja, guess they could be like a shadow contributor that no one is allowed to talk about.

iSoron, bombpersons, and cangy could write up sets of scripts that no one knows how to use but them. ;p thurd's been corrupted by using flawed Tanaka sentences so I guess they'll have to relearn how to use language before participating.

Katsuo could keep detailed lists of everything related to the project.
Edited: 2011-06-11, 11:21 am
Reply
FooSoft Wrote:Cool, nice wiki page Big Grin As far as popularity goes, I think if people need it they will find it. I certainly know that I looked around for something similar before I spent the time to write this plugin.
you could also add the program to this page:
http://forum.koohii.com/showthread.php?tid=7457

...it's really useful to have a list of all the available stuff on this forum in one place... Smile
Reply
Any plans for a j.j lookup like rikai just implemented? would be sweet
Reply