Rikaichan: RevTK Community Edition

Index » Learning resources

Reply #451 - 2013 February 03, 1:23 am
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

ta12121 wrote:

http://forum.koohii.com/viewtopic.php?id=6542

I'm trying to get this mod to work with the current Rikaisama extension. Can anyone help me out with it? I'm trying to give myself a variety of SRS production-style cards(including sentences and these are exactly what I'm looking for). Any help would be appreciated!

In the "Save format" field of the "Clipboard and Save" tab of the Options dialog use either the $s or $b tokens.

Last edited by cb4960 (2013 February 03, 1:24 am)

Reply #452 - 2013 February 10, 5:56 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

I have just ported the Anki Real-Time Import add-on to Anki 2.

Real-Time Import on AnkiWeb

For those unfamiliar with Real-Time Import, it is an Anki add-on that allows Rikaisama to instantly add a card to an open deck by pressing the "R" key when a word is hilighted.

For setup details, see the Setting up the Anki Real-Time Import Feature section on the Rikaisama webpage.

I've tested this on Windows 7, Windows XP and Linux Mint.

cb4960

Reply #453 - 2013 February 10, 8:20 pm
Forthem Member
From: Japan Registered: 2010-10-24 Posts: 27

Does this work on mac too?

Advertising (register and sign in to hide this)
JapanesePod101 Sponsor
 
Reply #454 - 2013 February 10, 8:38 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

Forthem wrote:

Does this work on mac too?

No.

I will, of course, accept a patch if some smart Mac user does want to add Mac support. Probably wouldn't be too difficult.

Reply #455 - 2013 February 11, 7:58 am
Betelgeuzah Member
From: finland Registered: 2011-03-26 Posts: 464

THANK YOU for the Anki2 plugin! I feel like a god of Japanese vocab right now.

There's one thing I'm having some trouble with, though. The word audio file won't save to my Anki media folder anymore. It should download it when I press the R button, correct? It did work when I exported the information to a .txt file a while back, but no more.

EDIT: I think I got it. I must press S first to save the audio file, then R to add it to Anki2.
EDIT2: The problem is that while the word is saved to the right folder, Anki won't repeat it unless I manually surround the kana - kanji.mp3 with [sound:] brackets in the WordAudio field. Well, I'll look into it.
EDIT3: Nevermind, I'm a genius.

Last edited by Betelgeuzah (2013 February 11, 8:32 am)

Reply #456 - 2013 February 11, 7:45 pm
randyrandy Member
From: World Registered: 2010-07-15 Posts: 10

Any idea why I'm not seeing my notes/cards?

I press 'R' and see "Real-Time Import: Note Added". When I check my deck, it says "Waiting for editing to finish." with a Resume button. That never goes away so I just click Resume but no cards/notes would show up in the deck.

I've checked the guide (http://rikaisama.sourceforge.net/#how_to_install) but I'm still stuck. I've used the same Field names / Save format but still no luck. sad

Reply #457 - 2013 February 11, 9:42 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

Betelgeuzah wrote:

I think I got it. I must press S first to save the audio file, then R to add it to Anki2.

Hmm, I should probably make an option to do this automatically and save a key press.

Last edited by cb4960 (2013 February 11, 9:42 pm)

Reply #458 - 2013 February 11, 9:45 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

randyrandy wrote:

Any idea why I'm not seeing my notes/cards?

I press 'R' and see "Real-Time Import: Note Added". When I check my deck, it says "Waiting for editing to finish." with a Resume button. That never goes away so I just click Resume but no cards/notes would show up in the deck.

I've checked the guide (http://rikaisama.sourceforge.net/#how_to_install) but I'm still stuck. I've used the same Field names / Save format but still no luck. sad

The fact that you see the "Note Added" popup means that Real-Time Import didn't encounter any error and thinks it added a card somewhere. Bring up Anki's Broswer dialog, click on "Whole Collection" and try searching for one of the terms you added. Where did Real-Time Import put it?

randyrandy Member
From: World Registered: 2010-07-15 Posts: 10

cb4960 wrote:

randyrandy wrote:

Any idea why I'm not seeing my notes/cards?

I press 'R' and see "Real-Time Import: Note Added". When I check my deck, it says "Waiting for editing to finish." with a Resume button. That never goes away so I just click Resume but no cards/notes would show up in the deck.

I've checked the guide (http://rikaisama.sourceforge.net/#how_to_install) but I'm still stuck. I've used the same Field names / Save format but still no luck. sad

The fact that you see the "Note Added" popup means that Real-Time Import didn't encounter any error and thinks it added a card somewhere. Bring up Anki's Broswer dialog, click on "Whole Collection" and try searching for one of the terms you added. Where did Real-Time Import put it?

It works!! Strangely I just now pressed 'R' and it actually shows up in my deck now! It must've been going to a wrong deck or something earlier! big_smile

Now the audio just isn't hooking up. I believe I set my fields right [sound:{{text:Audio}}.mp3] and the mp3s are saved in the correct format (ex. でんかせいひん - 電化製品.mp3). I think I am saving it in the right folder - \Anki\Rikaisama\collection.media. I have another deck which access their MP3 from this folder.

Sadly I have to go sleep now but I'm nearly finished with the setup! Thanks! smile

Reply #460 - 2013 February 12, 3:13 am
Betelgeuzah Member
From: finland Registered: 2011-03-26 Posts: 464

I received this error when I tried to add a word to Anki2 by pressing R:

Traceback (most recent call last):
  File "C:\Users\Niko-Emilia\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 297, in processPendingDatagrams
    msgCmd = MessageCommand(filename);
  File "C:\Users\Niko-Emilia\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 186, in __init__
    self.performCommand()
  File "C:\Users\Niko-Emilia\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 193, in performCommand
    self.doAdd()
  File "C:\Users\Niko-Emilia\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 207, in doAdd
    self.addLineToDeck(line.strip())
  File "C:\Users\Niko-Emilia\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 261, in addLineToDeck
    ankiFieldInfo, self.tags)
  File "C:\Users\Niko-Emilia\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 "C:\Users\Niko-Emilia\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 95, in __setitem__
  File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/anki.notes", line 89, in _fieldOrd
KeyError: u'Meaning'

Any idea what that could be about?

Hmm, I should probably make an option to do this automatically and save a key press.

That would be great!

Reply #461 - 2013 February 12, 9:01 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

Betelgeuzah wrote:

I received this error when I tried to add a word to Anki2 by pressing R: ...

This error message means that you are trying to add a "Note" using a "Note type" that doesn't contain one or more of the fields in Rikaisama's "Field names" box.

To solve this, make sure that you have the right "Note Type" selected:
1) Select deck
2) Enter browser
3) Select deck from the list on the left
4) Edit menu > Change Note Type...
5) Click on the "New note type" button and select the correct note type from the list.

Or create a new "Note type" with the correct fields.

Last edited by cb4960 (2013 February 12, 9:01 pm)

Reply #462 - 2013 February 16, 3:24 am
Daichi Member
From: Washington Registered: 2009-02-04 Posts: 450

Feature wish:
Ability to display external metadata under the definition lookups.

Format could be something like:
<Dictionary Word>[tab]<Meta data text here>

With a feature like this, you can add information for whatever you want to specific words. Sky would be the limit. Personally I want to extract a frequency list from my subs2srs library, and have that frequency number display along with what I'm reading. If it's more frequent within my cards, I'll know that I should pay more attention to it.

Last edited by Daichi (2013 February 16, 3:25 am)

Reply #463 - 2013 February 17, 2:32 am
jmignot Member
From: France Registered: 2006-03-03 Posts: 205

Yesterday, I could finally figure out how to get Rikaisama's JDIC audio function to work on my Mac. In case it can help other Mac users, here is the procedure.

- I first upgraded to the current (17.4) version of the plugin.
- downloaded MPlayerX (http://mplayerx.org/) and installed it normally in the Applications folder.
- located the mplayer binary within the MPlayerX application bundle. Its path was:
/Applications/MPlayerX.app/Contents/Resources/binaries/x86_64/mplayer
- In a Terminal window, I created a symbolic link in the /usr/local/bin directory pointing on the mplayer binary file:
sudo ln -s /Applications/MPlayerX.app/Contents/Resources/binaries/x86_64/mplayer /usr/local/bin/mplayer
- After that, the "F" key triggered the audio as expected.

Great!!!

Thanks again cb4960

Reply #464 - 2013 February 17, 6:22 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

I have just uploaded version 17.5 of the Rikaisama Firefox extension.

Download version 17.5 via SourceForge

What's New?

● Added 4,716 more pitch accents. This brings the total to 121,817.

Pitch accents that are probably accurate but have a small chance of being wrong now have a trailing question mark. This applies to 11,290 pitch accents.

cb4960

Reply #465 - 2013 February 17, 6:26 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

@Daichi,

Good idea! Maybe I will do this for version 18.0.

@jmignot,

Thanks for sharing.

Reply #466 - 2013 February 19, 8:46 pm
worthy7 Member
Registered: 2012-11-09 Posts: 22

Hi there.
Small request:
User selects a section of text. Then user mouses over the part/word whatever they want to add to anki as usual. Press R or T. Instead of just adding the sentence, it adds the users selection instead as at the sentence.

For example:


時間がありまして、映画を見ました。
There was time and I watched a movie.


If I use it normally, only the japanese line is added. But if i can select the two lines and press a button, I want both lines to go into the Sentence field.

Thanks for listening!

cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

worthy7 wrote:

Hi there.
Small request:
User selects a section of text. Then user mouses over the part/word whatever they want to add to anki as usual. Press R or T. Instead of just adding the sentence, it adds the users selection instead as at the sentence.

For example:


時間がありまして、映画を見ました。
There was time and I watched a movie.


If I use it normally, only the japanese line is added. But if i can select the two lines and press a button, I want both lines to go into the Sentence field.

Thanks for listening!

I'm not so sure about this one. I think I'll pass for now.

Reply #468 - 2013 March 18, 4:03 pm
darkauras Member
From: San Diego Registered: 2011-03-26 Posts: 33

I keep getting this error whenever I try to import a word. I've made sure my note type matches up the fields in Rikai, so I have absolutely no idea what this is about.

An error occurred in an add-on. Please contact the add-on author.

Traceback (most recent call last):
  File "C:\Users\joejoe\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 297, in processPendingDatagrams
    msgCmd = MessageCommand(filename);
  File "C:\Users\joejoe\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 186, in __init__
    self.performCommand()
  File "C:\Users\joejoe\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 193, in performCommand
    self.doAdd()
  File "C:\Users\joejoe\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 207, in doAdd
    self.addLineToDeck(line.strip())
  File "C:\Users\joejoe\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 261, in addLineToDeck
    ankiFieldInfo, self.tags)
  File "C:\Users\joejoe\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 "C:\Users\joejoe\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 95, in __setitem__
  File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/anki.notes", line 89, in _fieldOrd
KeyError: u'Reading'

Reply #469 - 2013 March 19, 8:35 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

darkauras wrote:

I keep getting this error whenever I try to import a word. I've made sure my note type matches up the fields in Rikai, so I have absolutely no idea what this is about.
...

This error message means that you are trying to add a "Note" using a "Note type" that doesn't contain one or more of the fields in Rikaisama's "Field names" box.

To solve this, make sure that you have the right "Note Type" selected:
1) Select deck
2) Enter browser
3) Select deck from the list on the left
4) Edit menu > Change Note Type...
5) Click on the "New note type" button and select the correct note type from the list.

Or create a new "Note type" with the correct fields.

Reply #470 - 2013 March 24, 5:57 pm
arnaldosfjunior Member
Registered: 2011-03-05 Posts: 121 Website

In my 書き取り deck, I have the following phrase 館に築地ベイを廻らす。

めぐらす【巡らす/回らす/廻らす】の意味 - 国語辞書 - goo辞書

Hanging over 回らす/廻らす/繞らす, the verb doesn't show, only the first kanji. On the other hand, 巡らす shows the 4 of them.

巡らす    めぐらす    めぐら・す【回らす・廻らす・巡らす】<br />⦅他五⦆...
巡らす    めぐらす    めぐら・す【巡らす(<sup>▼</sup>廻らす・<sup>▽</sup>回らす・<sup>▼</sup>繞らす)】〘他五〙...

Is there a solution?

Reply #471 - 2013 March 24, 7:01 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

arnaldosfjunior wrote:

In my 書き取り deck, I have the following phrase 館に築地ベイを廻らす。

めぐらす【巡らす/回らす/廻らす】の意味 - 国語辞書 - goo辞書

Hanging over 回らす/廻らす/繞らす, the verb doesn't show, only the first kanji. On the other hand, 巡らす shows the 4 of them.

巡らす    めぐらす    めぐら・す【回らす・廻らす・巡らす】<br />⦅他五⦆...
巡らす    めぐらす    めぐら・す【巡らす(<sup>▼</sup>廻らす・<sup>▽</sup>回らす・<sup>▼</sup>繞らす)】〘他五〙...

Is there a solution?

Rikaisama relies on Rikaichan's dictionary files, and Rikaichan relies on EDICT, and EDICT doesn't have an entry for 回らす/廻らす/繞らす at this time. The solution would be to either wait until the words are added to EDICT, or manually add them to Rikaichan's sqlite dictionary file.

Reply #472 - 2013 March 25, 5:03 am
toshiromiballza Member
Registered: 2010-10-27 Posts: 277

cb4960 wrote:

The solution would be to either wait until the words are added to EDICT

Or he could speed up the process and add them himself: http://www.edrdg.org/jmdictdb/

Reply #473 - 2013 March 28, 11:59 am
daevil Member
Registered: 2012-12-25 Posts: 49

Is it possible for Rikaisama to read everything instead of just parts? Like this: 十七分?

Rikaisama detects it as 2 different words, 十七 and 分 but if there is any way to make it detect it as 十七分 then that would be great.

Last edited by daevil (2013 March 28, 12:24 pm)

Reply #474 - 2013 March 28, 9:43 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

daevil wrote:

Is it possible for Rikaisama to read everything instead of just parts? Like this: 十七分?

Rikaisama detects it as 2 different words, 十七 and 分 but if there is any way to make it detect it as 十七分 then that would be great.

It is possible, but I don't think adding every permutation of number + minute/second/hour/etc. to the dictionary is a good idea.

Reply #475 - 2013 March 30, 8:13 am
Taelia Member
From: The Netherlands Registered: 2012-06-12 Posts: 42

Rikaisama just went haywire and started translating everything J-J. Restarting firefox seems to have put it to english again, I don't know what was up..   but posting it anyway just in case.