Rikaichan: RevTK Community Edition

Index » Learning resources

Reply #226 - 2011 July 04, 11:55 pm
Hashiriya Member
From: Georgia Registered: 2008-04-14 Posts: 1072

animehunter123 wrote:

Excellent work. This plugin is amazing. Thank you so much for your contribution.

Can I make a request? Can you port this to Anki (Rikaichan for anki?) That way I can mouseover inside my cards for a quick lookup? It would be sooooo awesome..

You can do this already if you study your anki decks on the anki website.

Reply #227 - 2011 July 05, 3:02 pm
ivanov Member
Registered: 2010-07-23 Posts: 16

Firstly, secondly and thirdly, let me say a big THANK YOU for the epwing support.

If it's ok with you, I've a small feature request: having the option to delete parts of the "Translation" field ($n) in the clipboard save format for easier card creation. In dictionaries like the Kenkyusha J-E 5th Ed., there's sometimes too much information in this field for just one card, so why not automatically cutting out the unnecessary bits?

By unnecessary, I personally (YMMV) mean (1) everything from the beginning of the field to the romaji spelling and (2) everything after the ▲ mark. This would keep the cards as small as possible, just like the traditional EDICT ones. Example:

current clipboard save format
財団    ざいだん     ざいだん【財団】 ローマ(zaidan) (財団法人) a foundation; (全資産) an estate; (破産などの) assets; (融資団) a financial group; a syndicate. ▲財団を設立する establish ⌐an endowment [a foundation]; set up a fund. ◨恩賜財団 an imperial endowment. 国際財団 an international consortium. 破産財団 a bankrupt's estate. ◧財団債権 a priority claim on a bankrupt estate. 財団抵当 a foundation mortgage.        ウィキペディアの運営主体は非営利団体ウィキメディア財団です。

proposed clipboard save format
財団    ざいだん    (財団法人) a foundation; (全資産) an estate; (破産などの) assets; (融資団) a financial group; a syndicate.    ウィキペディアの運営主体は非営利団体ウィキメディア財団です。

Disclaimer: I don't know if this is possible or if it is in fact easily done in a spreadsheet program. I haven't been able to. If it is, I don't mean to waste your time, I'll keep looking for ways to automatize the process.

And again, thanks for your hard work.

Reply #228 - 2011 July 05, 7:46 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

ivanov,
You're in luck! Such a feature is already in the works. Next release will probably be Saturday.

Advertising (register and sign in to hide this)
JapanesePod101 Sponsor
 
Reply #229 - 2011 July 06, 3:31 am
animehunter123 Member
From: Figaro Castle Registered: 2010-12-10 Posts: 208

Thanks for your response. Yes ankinonline can do this with the plugin, but I was hoping you could port it to python for use inside anki (as an offline alternative). Thanks so much, i appreciate your help

Reply #230 - 2011 July 06, 7:51 am
GreenAirth Member
From: Nagano, Japan Registered: 2009-12-20 Posts: 68

I can't believe you've been able to add EPWING support. Just incredible.

I have a problem, though. Whenever I activate the EPWING mode and mouse-over text I get this error: Can't find MSVCR71.dll

Edit: OK, I downloaded the dll and chucked it into the system32 folder. The error has disappeared, but instead I simply get "Entry not found" for everything I try to look up regardless of the dictionary I use. Hmm.

Edit2: Ah-ha! It doesn't work with path names including Japanese characters. I tried renaming 大辞林 to Daijrin and all of a sudden things started working.

This is simply wonderful - no exaggeration. Thank you so much.

Last edited by GreenAirth (2011 July 06, 8:42 am)

Reply #231 - 2011 July 06, 8:07 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

GreenAirth,
Glad you got it working! I'll see about including that DLL in future releases.

animehunter123,
I'll defer the Anki version of Rikaichan to a more seasoned python hacker.

Last edited by cb4960 (2011 July 06, 8:09 pm)

Reply #232 - 2011 July 06, 8:32 pm
Asriel Member
From: 東京 Registered: 2008-02-26 Posts: 1343

Wow, definitely haven't been following this but thought I'd take a glance

EPWING SUPPORT

big_smile GREATEST ADDITION EVER!!!

windows only

oh...

Why is this? Would it be hard to try and port it to mac or linux? Is it a lack of knowledge, or that you're using some sort of windows-only tool?

Reply #233 - 2011 July 06, 9:49 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

Asriel wrote:

Wow, definitely haven't been following this but thought I'd take a glance

EPWING SUPPORT

big_smile GREATEST ADDITION EVER!!!

windows only

oh...

Why is this? Would it be hard to try and port it to mac or linux? Is it a lack of knowledge, or that you're using some sort of windows-only tool?

Just replace WinMain and CommandLineToArgvW with linux equivalants and compile against eblib and iconv and you should be good to go. Be sure to share!

Reply #234 - 2011 July 06, 10:38 pm
Elenkis Member
From: UK Registered: 2010-09-15 Posts: 97

Is there any possibility of this coming to Chrome? Just wondering if it's planned for the future at all.

Looks great, keep up the good work!

Reply #235 - 2011 July 07, 8:10 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

Elenkis wrote:

Is there any possibility of this coming to Chrome? Just wondering if it's planned for the future at all.

Looks great, keep up the good work!

I prefer Firefox's less minimalistic interface, so no plans for Chrome support.

Last edited by cb4960 (2011 July 07, 8:10 pm)

Reply #236 - 2011 July 07, 8:21 pm
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

The original Rikaichan isn't even supported for Chrome. There's Rikaikun but it's rather ersatz.

Last edited by nest0r (2011 July 07, 8:21 pm)

Reply #237 - 2011 July 07, 9:07 pm
Oniichan Member
From: 名古屋 Registered: 2009-02-02 Posts: 269

Hmm. I haven't been able to get the EPWING lookup to work yet. When I press 'P' all I get is 'no entry found'. I've tried changing the path to a few different folders: Kojien; kojien/furoku; kojien/furoku/data; kojien/kojien etc. The first folder that I tried 'kojien' does contain a file simply called 'catalogs' without an extension. Should I add an extension to this file? Also, for reference, this dictionary works fine in KototoiLight and EBWin, and the file path does not contain any Japanese characters as far as I can tell. Any ideas? And thanks for the plugin, I use it every day!

Reply #238 - 2011 July 07, 9:32 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

Oniichan wrote:

Hmm. I haven't been able to get the EPWING lookup to work yet. When I press 'P' all I get is 'no entry found'. I've tried changing the path to a few different folders: Kojien; kojien/furoku; kojien/furoku/data; kojien/kojien etc. The first folder that I tried 'kojien' does contain a file simply called 'catalogs' without an extension. Should I add an extension to this file? Also, for reference, this dictionary works fine in KototoiLight and EBWin, and the file path does not contain any Japanese characters as far as I can tell. Any ideas? And thanks for the plugin, I use it every day!

You had it right the first time. Use the "kojien" directory with the "CATALOGS" file in it.

Are there any Japanese (or otherwise non-ascii) characters in your Windows temporary directory?

To find out what your temporary directory is:
1) Open the run dialog (WindowsKey + R)
2) Type "%tmp%" and click OK

Windows XP example:
C:\Documents and Settings\cb4960\Local Settings\Temp

Reply #239 - 2011 July 08, 2:01 am
wrightak Member
From: Tokyo Registered: 2006-04-07 Posts: 873 Website

cb4960 wrote:

I prefer Firefox's less minimalistic interface, so no plans for Chrome support.

Save to file functionality, at least, isn't possible in Chrome. With Opera, you can't even get a rikai-kun equivalent to work.

Reply #240 - 2011 July 08, 8:55 am
Oniichan Member
From: 名古屋 Registered: 2009-02-02 Posts: 269

cb4960 wrote:

You had it right the first time. Use the "kojien" directory with the "CATALOGS" file in it.

Are there any Japanese (or otherwise non-ascii) characters in your Windows temporary directory?

Ok, I followed your instructions and found: rikaisan_epwing_in.txt and rikaisan_epwing_out.txt. There doesn't appear to be any non-ascii characters used in the filenames. The only exception is ことといLight.msi which is in a folder with an ascii filename. I'll go through each of the program files again and look for Japanese characters just to be sure. Thanks for your help.

Reply #241 - 2011 July 08, 9:38 am
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

Oniichan wrote:

cb4960 wrote:

You had it right the first time. Use the "kojien" directory with the "CATALOGS" file in it.

Are there any Japanese (or otherwise non-ascii) characters in your Windows temporary directory?

Ok, I followed your instructions and found: rikaisan_epwing_in.txt and rikaisan_epwing_out.txt. There doesn't appear to be any non-ascii characters used in the filenames. The only exception is ことといLight.msi which is in a folder with an ascii filename. I'll go through each of the program files again and look for Japanese characters just to be sure. Thanks for your help.

Whoops, sorry. I just meant the temp path itself, not the contents. Well at least we know that the proper files are being generated. Whenever you highlight a word, that word will be placed in rikaisan_epwing_in.txt. This file is then read by my EPWING lookup tool which output the results of the lookup in rikaisan_epwing_out.txt. Do either of those files have anything in them? Or are they completely blank?

Reply #242 - 2011 July 08, 9:48 am
Oniichan Member
From: 名古屋 Registered: 2009-02-02 Posts: 269

cb4960 wrote:

...This file is then read by my EPWING lookup tool which output the results of the lookup in rikaisan_epwing_out.txt. Do either of those files have anything in them? Or are they completely blank?

Only  rikaisan_epwing_in.txt does. It contains 多.

Reply #243 - 2011 July 08, 10:06 am
Oniichan Member
From: 名古屋 Registered: 2009-02-02 Posts: 269

FIXED!!!!  I didn't have to change any filenames. I only had to reset the path (to the same folder) and then reset rikaisan (alt-ins). After restarting, rikaisan was still in EPWING mode and it immediately began displaying entries from kojien upon mouse-overs. I have no idea why resetting the pathway worked, but it did. I'm pretty sure I did almost the same thing yesterday (changed path and restarted Firefox 5)... anyway, thanks for your help!

Reply #244 - 2011 July 08, 1:28 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

I have just uploaded version 13.2 of the Rikaichan: RevTK Community Edition (aka rikaisan) Firefox extension.

Download version 13.2 via Mediafire

What changed?

▲ EPWING Mode: Added option to show the highlighted word's conjugation.

▲ EPWING Mode: Added option to remove lines that match the user specified regular expression. For example, here is a RegEx that will remove the romaji and the example sentences for kenkyusha 5th: "\n[・▲◧◨].+|ローマ.+"

▲ EPWING Mode: Added Linux/Mac support. You must have bash and wine installed. I have only tested with Linux Mint. Maybe somebody with a Mac can let us know if it works for them.

▲ Fixed Sticky Mode and Super Sticky Mode so that that you can once again click inside the popup without it disappearing.

Reply #245 - 2011 July 09, 8:43 am
keikei Member
Registered: 2010-12-08 Posts: 63

this might be silly but... how do you guys import the JDIC audio? I cant get it to work in anki. the files show up like this: こうどう - 行動.mp3 instead of [sound:file-name.mp3] so anki doesnt recognize them.
or do you have to drag all the soundfiles one-by-one into anki ? which works but its tedious of course

Reply #246 - 2011 July 09, 8:46 am
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

I use the JDIC audio plugin.

Reply #247 - 2011 July 09, 11:23 am
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

@cb4960

I wonder if a solution to the segmentation/highlighting issue with EPWING (where Rikaisan doesn't recognize headwords that are in the EPWING dictionaries so you can't perform a lookup even if there's an entry) might be the clipboard scanning type options like Stardict and Lingoes have? So the user can manually lookup a word if it doesn't get highlighted with a mouseover, and see if it's in EPWING or even Sanseido (and possibly WWWJDIC? re: audio).

By the way, I noticed something strange that I can't replicate on purpose, but it happens often, that when a page loads and I mouseover something the first time, Rikaisan gives me a popup automatically even though I'm in click-only mode.

Edit: Ahha! I just figured it out. If you ctrl-click something that's not Japanese, i.e. a link, it seems to queue it as a popup command that activates when you mouseover something in Japanese. So for instance, if you open a link in a new tab with ctrl-click, the first thing you mouseover in Japanese will give you a popup.

Last edited by nest0r (2011 July 09, 11:28 am)

Reply #248 - 2011 July 09, 11:36 am
keikei Member
Registered: 2010-12-08 Posts: 63

I figured there's a "trick" to get the rikaisan JDIC audio to work in anki since it already saves the Audio filename.

just downloaded the jdic plugin but nothing happens when i press the audio download button, hmm

Reply #249 - 2011 July 09, 11:48 am
KanjiDevourer Member
From: Wherever I may roam Registered: 2010-02-23 Posts: 133

nest0r wrote:

If you ctrl-click something that's not Japanese, i.e. a link, it seems to queue it as a popup command that activates when you mouseover something in Japanese. So for instance, if you open a link in a new tab with ctrl-click, the first thing you mouseover in Japanese will give you a popup.

I use the middle mouse button to open tabs; just an idea, maybe you don't have a middle mouse button. [/offtopic]

Reply #250 - 2011 July 09, 12:06 pm
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

keikei wrote:

I figured there's a "trick" to get the rikaisan JDIC audio to work in anki since it already saves the Audio filename.

just downloaded the jdic plugin but nothing happens when i press the audio download button, hmm

Can you actually press it, or is it grayed out? If the former, it should at least give you an error if something's wrong. If the latter, make sure you've got the right tags (mine is ‘vocabulary’, which I also have set up in Rikaisan's Realtime Import settings). Also make sure the fields match what the plugin requires (I just edited the .py in the .anki/plugins folder with Notepad++ to match the fields I use in my vocabulary deck—you can edit the required tag in the .py also).