Joined: Jul 2009
Posts: 16
Thanks:
0
This is awesome, you are awesome, and the time this saves me doing manual input is awesome.
I know someone's already mentioned it, but Cloze deletion of the Expression from the Sentence would sure be a spiffy feature!
Seriously though, add that and I'll name my first born after you. Hell, I'll name someone else's first born after you.
Joined: Jan 2010
Posts: 9
Thanks:
0
I have used it actually. It's a pretty neat plugin, but since it is the equivalent of Jim Breen's text glossing tool there are occasions when it doesn't give you the whole definition you would have been provided had you looked the word up by itself in isolation. I have reason to think that this behavior on the part of the text glossing tool has been fixed considering the example I was going to cite for this post didn't yield the same results as last time ^_^' but I guess I'll still exemplify my previous findings.
word search: 影響 【えいきょう】 (n) (1) influence; effect; (vs) (2) to influence; to affect; to have an influence on; to impact; to have an effect on; (P); ED
VS
text glossing: 影響 【えいきょう】 (n,vs) influence; effect; (P); EP
Plus, a lot of the time I don't need anything other than the definition and the part(s) of speech and have to copy just the bit that I want. Highlighting and backspacing the parts I don't want is just as time consuming as highlighting and copying the bits I do.
Edited: 2011-03-15, 8:48 pm
Joined: Oct 2007
Posts: 4,582
Thanks:
0
When I used the WWWJDIC glossing and overture's plugin, this is what I get:
(n) (1) influence; effect; (vs) (2) to influence; to affect; to have an influence on; to impact; to have an effect on; (P); ED
In other words, my gloss results aren't cut off?
I'm using the original plugin, so I don't think it was ever a problem?
It looks like Yomichan is more prone to cut off the definition? e.g. 影響 gives (n,vs) influence; effect - Are you saying this is desirable or isn't desirable? Sounded like you wanted the whole definition, but then you don't want it because you'd have to backspace? Either way it seems like you'll either be adding or subtracting at some point, definitions aren't always going to be divided how you want or of the range you want.
I also use Lingoes/Stardict in Anki for when I don't feel like using definitions on cards (or don't have them).
If those two aren't enough, you've also got wrightak's Rikaichan mod. Either way, it's easier if you're talking about importing lists rather than selective handfuls to batch add and then (should you neurotically wish to do so ;p), backspace any unnecessary definitions (though might as well leave them, it's not like you have to read and factor them in whenever you study the card.)
Edited: 2011-03-15, 11:25 pm
Joined: Oct 2007
Posts: 4,582
Thanks:
0
There's a QtWebKit4 .pyd and .dll file in Anki's lib folder, and a smaller .pyd in that folder's parent folder, is that what you meant? /n00b (I'm actually assuming Anki's QtWebKit files are how Anki allows for ruby markup on cards.)
Edited: 2011-03-18, 9:45 pm
Joined: Feb 2009
Posts: 532
Thanks:
9
orly... hmm, that would make things a lot simpler
Joined: Oct 2008
Posts: 278
Thanks:
0
Excellent plugin! Really amazing. Thanks a lot FooSoft!
One suggestion (possibly already made?): How difficult would it be to get the expression of interest put into bold? Sometimes one comes across a lengthy sentence and it would be great to be able to focus the attention of the deck on the particular word with a bold font. Otherwise what I'm doing is manually polishing each card -- still a relatively minor task, but just thought I'd ask. Apologies if it has already been discussed (too lazy to read the whole thread hehe).
Joined: Jul 2009
Posts: 16
Thanks:
0
Dur. Looks like I should check more thoroughly before I post something that doesn't actually include two clear instances of the same word in the sentence.
"すぐに修理申込みを行うお客様は「インターネット修理予約システムで申込む」をクリックしてください。"
There. If I want to cloze both "修理", would that be possible using the %sb and %sa values?
Joined: Feb 2009
Posts: 532
Thanks:
9
Clozing multiple items in a sentence is probably not going to happen because there is no reliable way of doing it (especially if you are clozing a single character that can repeat multiple times in other words). Basically the only way it can work correctly 100% of the time is if it clozes only the term in the original position.
Joined: Mar 2006
Posts: 324
Thanks:
3
This thread has grown rather elaborate, so I feel kind of ashamed returning to suich a trivial question : "why does the Anki plug-in crash on my machine ?". Hope this is still the right place to ask for help, though…
The point is that I had installed the plug-in some time ago and it did work. Then, by reading this discussion, I realized that a lot of progress had been made, therefore I decided to upgrade. I first moved the two files yomichan.py and yomichan.pyc, as well as the directory yomichan_plugin, from the plugin directory to my desktop, then proceeded to reinstall the extension from the Anki menu.
After quitting Anki, I got the following error mesage at relaunch :
___________________________________________________________________
Traceback (most recent call last):
File "ankiqt/ui/main.pyc", line 2679, in loadPlugins
File "/Users/jmm/Library/Application Support/Anki/plugins/yomichan.py", line 1, in
File "/Users/jmm/Library/Application Support/Anki/plugins/yomichan_plugin/yomichan_plugin.py", line 22, in
File "/Users/jmm/Library/Application Support/Anki/plugins/yomichan_plugin/core/reader.py", line 26, in
File "/Users/jmm/Library/Application Support/Anki/plugins/yomichan_plugin/core/reader_util.py", line 101
field: replaceMarkupInField(value, markup) for field, value in fields.items()
^
SyntaxError: invalid syntax
___________________________________________________________________
Not surprisingly, the extra option to open Yomichan did not appear in the Tools menu
Trashing the newly installed files and directory and moving back the older ones to their original location fixed the problem.
Is this a compatibility issue? I am now using Anki 1.2.8 "for old machines", which is the most recent one available for PPC Macs.
Can anybody help? I feel frustrated that I cannot try the new functions of this great add-on.
Joined: Mar 2006
Posts: 324
Thanks:
3
@FooSoft: thanks for pointing out the previous post in this thread.
Sorry for missing it. As I wrote, the discussion is getting long, and its content pretty intimidating…
Now, the plug-in loads properly, but I have another issue when I try to open the Preferences :
______________________________________________________________________
Traceback (most recent call last):
File "/Users/jmm/Library/Application Support/Anki/plugins/yomichan_plugin/core/reader.py", line 172, in onActionPreferences
dialog = DialogPreferences(self, self.preferences, self.anki)
File "/Users/jmm/Library/Application Support/Anki/plugins/yomichan_plugin/core/preferences.py", line 25, in __init__
self.setupUi(self)
File "/Users/jmm/Library/Application Support/Anki/plugins/yomichan_plugin/core/preferences_ui.py", line 89, in setupUi
self.formLayout.setWidget(2, QtGui.QFormLayout.SpanningRole, self.checkSearchGroupByExp)
AttributeError: type object 'QFormLayout' has no attribute 'SpanningRole'
______________________________________________________________________
Is there also already a fix for this one?
Joined: Feb 2009
Posts: 532
Thanks:
9
Looks like you are using an old version of Qt. It's failing in code that's generated by the pyuic4 tool. Unfortunately I don't have any way to test your config, but your best bet would be to take url=https://code.google.com/p/yomichan/source/browse/dev/preferences.ui]this file[/url] and run it through pyuic4 and output the result over the preferences_ui.py in the plugin.
Edited: 2011-04-10, 5:00 pm