Back

Rikaichan: RevTK Community Edition

@Sebastian,

Thanks for the suggestion. Even nitpicks are welcome. I'll probably end up keeping it the way it is though. I used the suggested method for Epwing2Anki and it seems to have caused some confusion. I think it's more a matter of preference rather than one method being better then the other method.
Reply
Alright, so whenever I copied definitions from rikaichan, it would copy all the words and their definitions that were shown when you moused over a word. However, I recently changed to rikaisama, and now it only copies the first word and it's definition. Is there a way to get rikaisama to copy all the words and definitions like rikaichan? I was using rikaichan to put together a vocab list for a light novel I was reading, and while I can get by without having that function since there aren't too many words where I need one of the words further down the list, it's still a pain to type them out myself when I can just copy the other ones.
Reply
serenial Wrote:Is there a way to get rikaisama to copy all the words and definitions like rikaichan?
Perhaps cb can address that, but I hadn't ever used rikai-chan's copy so I didn't even know this was different behaviour. More usefully, the way I work around this is that I just type the word and kanji-convert it in the nearest text-box and then copy the mouseover of that, which at least means typing the word once and not typing kanji and kana and pronunciation.

Actually it saves me quite a lot more than -that- because I never 'copy' words with rikaisama but I do add them directly to Anki. I presume when you say 'copy' you actually mean 'save to the file where I'm keeping my list' which I've also done sometimes when I'm just trying to gloss some song lyrics or something.

Better than saving -all- the definitions would be the ability to select one definition using a next/prev definition kind of keybinding. A 'next definition' key also would be useful when a word has more entries than fit in a pop-up box. There may already be such a function for EPWING dictionaries judging by the popup help, but I've just been using EDICT.
Reply
May 16 - 30 : Pretty Big Deal: Save 31% on all Premium Subscriptions! - Sign up here
JapanesePod101
@somecallmechris When I said I copy them, I mean I right-click and copy the word, than paste it into Microsoft One-Note (which is convenient because it automatically saves what you put in there, and I can organize by chapters and whatnot). I'm building the list to put it as a course on Memrise.

What you suggested actually would be more convenient, and I was also thinking that if possible I would want something like that, but I didn't have much time to type my first comment and forgot to include that. So yeah, +1 for that idea.

However, at the very least being able to copy all the definitions is better than only the first one, and there is a chance that rikaisama can already do this since it's based off of rikaichan.

Also, I'm slightly confused by what you do for your work-around. Could you explain it in a little more detail?
Edited: 2013-09-05, 6:10 pm
Reply
If I see 'かゆいとこをかく' and I want to record the meaning 'to scratch' for かく,
I type 掻く somewhere (like the edit box I'm typing in now), hover over that, and hit C and then pasting gives me back
'掻く かく (v5k,vt,uk) to scratch; to perspire; to shovel; to paddle; (P)' ... still some typing on my part but less than the whole thing.

(except as I mentioned above in reality I rarely hit C but more likely S or R).

If I hover over the kana かく of course I get '佳句 かく (n) beautiful passage of literature' when I try to save, which isn't very helpful.

Of course, if you have a word that has multiple entries for both its kana and kanji spellings, this won't help and you'll have to type it out by hand or copy the definition from another EDICT based dictionary.
Edited: 2013-09-05, 6:31 pm
Reply
Hmm, that's not really the problem I'm having. For instance, I was reading my book and came across 頭. I already knew the word and was just adding it for the sake of someone who didn't know it (it's going to be a public deck on Memrise), so I knew that the reading I wanted was あたま. However, when mousing over the kanji it is the second reading/definition, and thus I couldn't use the copy function and had to type it out myself. It wasn't much trouble for that word since I'm trying to just put definitions that make sense when reading the book, but I have encountered other words where even with just the kanji, the definition that I want is still not the first one, and it would be preferable to not have to type them.
Edited: 2013-09-05, 7:13 pm
Reply
I suppose I could add an option that will allow the user to select the entry to use from a list that pops up whenever one of the save keys is pressed.
Reply
Thanks, that will be helpful! ^^
Reply
edit: nevermind! reinstalling anki fixed it

i ran into a problem today with the real-time anki import tool. it doesn't seem to work anymore for whatever reason. i use it every day and sometimes get some errors but nothing restarting anki couldn't fix. but right now, something has happened and it doesn't seem to respond when i hit "r" with rikaisama active. for instance, usually if i hit "r" on a word and i've forgotten to open a deck i get the yellow error pop up that says i have to open a deck first. but now that doesn't even happen. nothing happens when i hit r other than i see for a split second that little "loading circle" pop up next to my mouse.

i'm really not sure what to do here. i've tried uninstalling and reinstalling the add-on, same with rikaisama. i've turned on debug within the add-on but no log ever shows up that makes me wonder if the process is even getting to the point of running when i hit r.
Edited: 2013-09-12, 5:04 pm
Reply
edit: geez nevermind again lol
Edited: 2013-10-07, 4:34 pm
Reply
Hi,

Thanks a lot for the Rikaisama plug-in. I just started using it and it's fantastic.

While using the Real-time import Anki add-on, is there a way to import the audio as well, so it plays back automatically? Those Japanese Pod voices are soooo much better than Google TTS.

Right now in the "audio" filed it just appears a format like せいたいけいー生態系.mp3

Thank you!
Reply
guehla Wrote:Hi,

Thanks a lot for the Rikaisama plug-in. I just started using it and it's fantastic.

While using the Real-time import Anki add-on, is there a way to import the audio as well, so it plays back automatically? Those Japanese Pod voices are soooo much better than Google TTS.

Right now in the "audio" filed it just appears a format like せいたいけいー生態系.mp3

Thank you!
First, open the Rikaisama's options dialog and enter your Anki collection.media folder into the "Clipboard & Save | Saved audio" box.

Now in Rikaisama's "Save format" option box, enter "[sound:$a]" instead of just "$a".
Edited: 2013-10-12, 8:05 pm
Reply
Thanks, that seemed to be the ticket. The first couple words worked great. After that, the sound stopped playing on review (the first couple are fine and the [sound] bit seems to be transferring fine). Do you have any idea what could be up with that? I can't tell whether it's Rikaisama or Anki 2 weirdness.

I'm excited about Rikaisama and really want to get it working right. Thanks so much.
Reply
On further messing around, it's saving the [sound:.......] text to the field (labelled "audio") , but not actually anything into the mp3 folder. Any hints? Thanks!
Reply
guehla Wrote:On further messing around, it's saving the [sound:.......] text to the field (labelled "audio") , but not actually anything into the mp3 folder. Any hints? Thanks!
I believe you need to update the 'saved audio' folder in the 'Clipboard and Save' tab to your anki media directory.
Reply
guehla Wrote:On further messing around, it's saving the [sound:.......] text to the field (labelled "audio") , but not actually anything into the mp3 folder. Any hints? Thanks!
I forgot to mention it above, but also make sure that the "Save audio when one of the Anki Real-Time Import keys is pressed" option is checked in the "Anki" tab of the Rikaisama options dialog.
Reply
There-s a bug when copying to the clipboard or saving into a text file from Google Docs, where Rikaisama cuts sentences at line breaks.

For example, in the following text:

OECDが15歳を対象に3年ごとに行っている国際学習到達度調査(PISA)では、一時、日本の子供の成績が落ち込み、教育関係者に衝撃を与えた。大人を対象にした今回の調査での好成績は、ひとまず明るい材料と言える。

Rikaisama cuts the sentence at the firs line break, that comes after 日本の子供, and leaves the sentence this way>

OECDが15歳を対象に3年ごとに行っている国際学習到達度調査(PISA)では、一時、日本の子供


Also, I'd like to request a couple of features, for example:

- Include the accent when saving/copying into the clipboard, ideally as an independent field.

- Make Sanseido and Epwing mode available from the lookup bar too.

On the other hand, I see now you can copy/save definitions from Sanseido and Epwing mode, which I think wasn't possible before, and that's a great feature.

Again, thanks a lot for your great work, cb4960!
Reply
cb4960 Wrote:
guehla Wrote:On further messing around, it's saving the [sound:.......] text to the field (labelled "audio") , but not actually anything into the mp3 folder. Any hints? Thanks!
I forgot to mention it above, but also make sure that the "Save audio when one of the Anki Real-Time Import keys is pressed" option is checked in the "Anki" tab of the Rikaisama options dialog.
Thanks, that did the trick and I'm almost there. I say almost because now, while the mp3s are in their proper folder (name.media beside the corresponding anki deck), they don't actually play. Weirdly, the first card I imported through rikaisama works perfectly, but all subsequent cards are duds (all fields are filled in fine, just no actual playback, besides that one card)

I've been racking my brains and combing through the anki forum posts over this to no avail. I was going to post there, but you've been so helpful and responsive I thought I'd check in here first. Any thoughts?

Thanks so much for your time.
Reply
guehla Wrote:
cb4960 Wrote:
guehla Wrote:On further messing around, it's saving the [sound:.......] text to the field (labelled "audio") , but not actually anything into the mp3 folder. Any hints? Thanks!
I forgot to mention it above, but also make sure that the "Save audio when one of the Anki Real-Time Import keys is pressed" option is checked in the "Anki" tab of the Rikaisama options dialog.
Thanks, that did the trick and I'm almost there. I say almost because now, while the mp3s are in their proper folder (name.media beside the corresponding anki deck), they don't actually play. Weirdly, the first card I imported through rikaisama works perfectly, but all subsequent cards are duds (all fields are filled in fine, just no actual playback, besides that one card)

I've been racking my brains and combing through the anki forum posts over this to no avail. I was going to post there, but you've been so helpful and responsive I thought I'd check in here first. Any thoughts?

Thanks so much for your time.
If the mp3 is in the correct folder and the audio field looks correct ([sound:kana - kanji.mp3]) then I'm not what the problem could be. In the Anki 1 days, mplayer used to have issues playing back very short mp3 files, though I'm not sure if that issue is still present in Anki 2 (I'm still using Anki 1). Write your question on the Anki forum if you haven't already. You'll probably get a quick response.
Reply
Thanks again for your help. Rikaisama's fantastic.
Reply
guehla Wrote:while the mp3s are in their proper folder (name.media beside the corresponding anki deck), they don't actually play.
I think with anki2 all media must be in the same "collection.media" folder. In anki1 the media folders matched the deck names. ( see cb4960s earlier comment)
Reply
I have just uploaded version 19.3 of the Rikaisama Firefox extension.

Download version 19.3 via SourceForge

What's New?

● Updated the frequency and pitch accent databases.

cb4960
Reply
Thank you for this amazing tool.

I have used it a lot previously, then took a break.

Today I tried to use it again and while trying to use "Anki Real-Time Import" I received the following error:

Traceback (most recent call last):
File "D:\Users\Andrew\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 297, in processPendingDatagrams
msgCmd = MessageCommand(filename);
File "D:\Users\Andrew\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 186, in __init__
self.performCommand()
File "D:\Users\Andrew\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 193, in performCommand
self.doAdd()
File "D:\Users\Andrew\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 207, in doAdd
self.addLineToDeck(line.strip())
File "D:\Users\Andrew\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 261, in addLineToDeck
ankiFieldInfo, self.tags)
File "D:\Users\Andrew\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 52, in addNote
note = self.createNote(deckName, modelName, fields, tags)
File "D:\Users\Andrew\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 82, in createNote
note[name] = value
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/anki.notes", line 101, in __setitem__
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/anki.notes", line 95, in _fieldOrd
KeyError: u'Word'



Could you help with this, please?
Reply
Sorry for the rather idiotic question, but this thread has like 22 pages and uuugh i don't really want to go though it all; also, pardon my shit 英語 skills. Anyway, i recently tried this and - obviously - liked it very much (expecially the word frequency list), only i can't seem to actually import anything to anki. I suppose the correct procedure would be to create a new .anki file by specifying a path in rikaisama's options, then import said file with anki (provided it has the right plugin, which i installed)... except it doesn't work - by which i mean it gives me an error while importing the file -, so i was wondering if i did anything wrong. Well, i probably did, only i honestly don't find the instructions in the docs detailed enough for potheads like 不肖私 to actually interpret correctly. はい拙者が悪い生徒なんでございます。ともかくよろしくお願いします(優しくしてねw)。
Edited: 2013-11-03, 1:17 am
Reply
Artgor Wrote:Thank you for this amazing tool.

I have used it a lot previously, then took a break.

Today I tried to use it again and while trying to use "Anki Real-Time Import" I received the following error:

Traceback (most recent call last):
File "D:\Users\Andrew\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 297, in processPendingDatagrams
msgCmd = MessageCommand(filename);
File "D:\Users\Andrew\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 186, in __init__
self.performCommand()
File "D:\Users\Andrew\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 193, in performCommand
self.doAdd()
File "D:\Users\Andrew\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 207, in doAdd
self.addLineToDeck(line.strip())
File "D:\Users\Andrew\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 261, in addLineToDeck
ankiFieldInfo, self.tags)
File "D:\Users\Andrew\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 52, in addNote
note = self.createNote(deckName, modelName, fields, tags)
File "D:\Users\Andrew\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 82, in createNote
note[name] = value
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/anki.notes", line 101, in __setitem__
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/anki.notes", line 95, in _fieldOrd
KeyError: u'Word'



Could you help with this, please?
Could be due to incorrect entries in the "Save format" or "Field names" text boxes in the Rikaisama options dialog. Turn on the Real-Time Import debugging/logging feature:

1) In Anki, Tools -> Add-ons -> Open Addon's Folder...

2) Open "Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py" in a text editor.

3) Change line 42 from "DEBUG = False" to "DEBUG = True".

4) Restart Anki and reproduce the failure.

5) A log file named "real_time_import.log" will be placed in the Add-ons folder.

6) Paste the contents of "real_time_import.log" here. This will help me to diagnose the problem. Also, it would helpful if you posted the contents of the Save format and Field names boxes from the Clipboard & Save tab of the Rikaisama options dialog.
Edited: 2013-11-03, 9:50 am
Reply