Rikaichan: RevTK Community Edition

Index » Learning resources

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

KanjiDevourer wrote:

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]

I prefer the setup I have now: Middle button is copy, the bottom and top side buttons are double-click and ctrl, respectively, and left and right/scroll do the usual. So when I want to open a new tab or the Rikaisan popup, I do so with the mouse by hitting the ctrl button with my thumb and the left click/right click with index finger/middle (or ring) finger.

I like having copy assigned to the middle button in general, but also for when I'm using Stardict/Lingoes outside Firefox (e.g. in Anki). That way I can double click with my thumb to select a word then middle click to copy it, which generates the popup.

Last edited by nest0r (2011 July 09, 12:12 pm)

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

KanjiDevourer wrote:

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]

By the way, I haven't bothered installing on my laptop (it's on my tablet), but there's also the rocker gestures or wheel gestures, etc., via the FireGestures addon. But changing my new tab interface/behaviour is simple and somewhat beside the point (pointing out a minor bug was the point). The new tab thing was just an example and probably the most common culprit.

Last edited by nest0r (2011 July 09, 12:32 pm)

Reply #253 - 2011 July 09, 12:31 pm
ivanov Member
Registered: 2010-07-23 Posts: 16

cb4960 wrote:

▲ 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[・▲◧◨].+|ローマ.+"

Amazing! Thank you, this works perfectly.

Advertising (register and sign in to hide this)
JapanesePod101 Sponsor
 
Reply #254 - 2011 July 09, 12:53 pm
Seizar Member
From: Rome, Italy Registered: 2009-05-23 Posts: 38

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.

Rikaichan options -> Clipboard & save -> Save format
use [sound:$a] instead of just $a.
example:
$d$t$r$t$n$t$s$t[sound:$a]
will save the highlighted word as
dictionary form {tab} reading {tab} translation {tab} sentence {tab} [sound:filename.mp3]
which you can then import directly into anki.
Also be sure to set the correct folder for the saved audio (usually the deck media folder).

Reply #255 - 2011 July 09, 2:14 pm
keikei Member
Registered: 2010-12-08 Posts: 63

[sound:$a] works like a charm, thanks a lot Seizar & nest0r!

Reply #256 - 2011 July 09, 3:35 pm
Elenkis Member
From: UK Registered: 2010-09-15 Posts: 97

wrightak wrote:

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.

That's too bad sad  I really don't like going back to Firefox for browsing, but rikaichan with EPWING was enough to make me do it for now.

In case anyone is wondering, I can confirm that it seems to work fine with the latest Aurora build (7.0a2) as long as compatibility checking is disabled.

Reply #257 - 2011 July 09, 4:38 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

nest0r wrote:

@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).

Sounds like a good feature to me.

nest0r wrote:

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.

I guess I never noticed that because I always middle-click to open links in a new tab. Maybe I can figure out a way to prevent this unwanted behavior.

Last edited by cb4960 (2011 July 09, 4:39 pm)

Reply #258 - 2011 July 09, 5:26 pm
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

Well, not unwanted to me, I'm indifferent. ;p If it gives you an idea of how indifferent, after writing the comment and realizing it was mostly only happening when I opened a new tab (and ahem, the occasional inaccurate clicks, because I'm clumsy), I didn't bother installing FireGestures for its rocker/scroll gestures to remove that ctrl-click for a new tab. I mostly wrote the comment because I didn't know why it was popping up for no reason. I might install the addon now just because I've always liked the idea of a rocker gesture, but haven't needed it with my tm2.

Edit: Okay, now I'm using FireGestures on my laptop; no fancy stuff, just the rocker gestures and the tab scrolling. That is, I have left-to-right rocking set to Open in New Tab (Background) and right-to-left set to Open in New Tab (Foreground), and when the mouse is hovering over tabs, scrolling cycles through them. Pretty neat. I've got too many tab-related things. I'm also using that Firefox Aero stuff for tabs, including the List All Tabs button.

Last edited by nest0r (2011 July 09, 8:33 pm)

Reply #259 - 2011 July 09, 9:31 pm
Asriel Member
From: 東京 Registered: 2008-02-26 Posts: 1343

I got it working natively on my Mac OS 10.6.
Sadly, I no longer have a Linux machine to compile/test it on...

It's not tested 100%, but I've gotten it to work with Kenkyusha, and the changes are quite minor.

Thing is, I don't know how to pack it into one of those installable add-on things...

edit: I don't know if it's just me or not...but the EPWING mode doesn't do "incremental search," I guess you could call it. For example, 登録済み shows up in edict as one word, and below it it shows 登録.
EPWING would obviously have 登録, but it displays "Entry not found" because it doesn't have the 登録済み that edict does.

Last edited by Asriel (2011 July 09, 9:46 pm)

Reply #260 - 2011 July 09, 10:15 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

Asriel wrote:

I got it working natively on my Mac OS 10.6.
Sadly, I no longer have a Linux machine to compile/test it on...

It's not tested 100%, but I've gotten it to work with Kenkyusha, and the changes are quite minor.

Thing is, I don't know how to pack it into one of those installable add-on things...

Cool! On Windows, to create a .xpi installer file I just take the .xpi from the previous version, open it with 7zip and drag files into it.

Asriel wrote:

edit: I don't know if it's just me or not...but the EPWING mode doesn't do "incremental search," I guess you could call it. For example, 登録済み shows up in edict as one word, and below it it shows 登録.
EPWING would obviously have 登録, but it displays "Entry not found" because it doesn't have the 登録済み that edict does.

nest0r mentioned the same thing a few posts ago. Hopefully I can find a good solution to this issue.

Also, since you have a Mac... Did you happen to try version 13.2? I claim that the EPWING feature works on Mac, but it is completely untested. If you by some chance feel like trying it out, you'll need to install wine.

Last edited by cb4960 (2011 July 09, 10:16 pm)

Reply #261 - 2011 July 09, 11:08 pm
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

Looking at the data.js from my n00b perspective, it does seem like perhaps the highlighting/lookup words is based on an indexed sqlite db made from an edict-format-required dictionary, and then it does that scanning function similar to how the WWWJDIC glossing works? If so, perhaps in order to get highlighting functionality to change for EPWING mode, when you tell Rikaisan where your EPWING stuff is, perhaps it could somehow extract just the headwords in an edict sort of format, and Rikaisan can consult that when indexing, so it uses that for highlighting then does a lookup in EPWING like it does now? Yep, I solved it. Make it work. ;p

Last edited by nest0r (2011 July 09, 11:08 pm)

Reply #262 - 2011 July 10, 2:29 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

I wonder what is the best way to get this information to the user.

When 登録済み is highlighted, should I add another couple of keys to switch between the elements that make up this entry (登録, 済み, 登, 録, 済)? Or maybe some method to allow the user to highlight just 登録 and hit a key to show the popup.

Last edited by cb4960 (2011 July 10, 2:30 pm)

Reply #263 - 2011 July 10, 3:14 pm
Asriel Member
From: 東京 Registered: 2008-02-26 Posts: 1343

OK, so I am using 13.2, but the biggest problem I've found so far is that it doesn't like paths with Japanese characters in it for the EPWING directory. I'm not sure where the problem is occurring because eplkup works when I call it from the command line with Japanese characters...That's the main reason I'm not going to "release" it yet.

The only other change was removing "wine" from run_eplkup.sh
I'll have to do a diff on rikaichan.js, because I don't think I ended up changing anything, but I did play around in lookupEpwing()

As for the 登録済み thing - I was thinking what you could do in that case, is have buttons to add on and remove characters that you are searching for. The edict one would be the default, but if it was nothing, you could hit <- or -> to add/remove characters to the search string. Or if that's too clunky, maybe you could include an option to highlight the characters you want to search for?

Reply #264 - 2011 July 18, 4:47 am
Wind Owl New member
From: Pennsylvania Registered: 2010-12-18 Posts: 3 Website

I have a small (but rather important to me) request: Could you add page title to the list of save format tags?

Reply #265 - 2011 July 19, 11:10 pm
Morgan_R New member
From: USA Registered: 2010-08-10 Posts: 1

First, thank you to everyone responsible for this project, it seems like an incredibly useful resource. However, I can't seem to get sound working on my Mac, and I'm guessing it's because I'm not doing the /usr/local/bin/mplayer thing right.

I had to create /usr/local/bin/ (and thanks to TinkerTool I can actually see it in the Finder), and then I fished 'mplayer' out of the MPlayer OSX Extended app (Contents/Resources/Binaries/etc/etc) and dropped it in /usr/local/bin/. No go. Any Mac power users here who might be able to tell me what I'm doing wrong?

Reply #266 - 2011 July 20, 11:10 am
Asriel Member
From: 東京 Registered: 2008-02-26 Posts: 1343

Hey -- I'm a Mac user, and I'm playing around with it right now.

I've found 2 problems that I'll be investigating when I get home from work:
1. It's not saving the file.
I told it to always be saving to my "Downloads" folder...no matter how many times I press "F" nothing gets saved. So that's interesting...

2. Mplayer doesn't want to play the last .5 seconds of pretty much any file I hand it. So, I'm guessing that since most files are probably around that range, even if they are being saved, mplayer probably isn't playing them.

I'll take a closer look at it later tonight, but that's all I've been able to come up with right now.

Reply #267 - 2011 July 21, 3:19 am
Tori-kun このやろう
Registered: 2010-08-27 Posts: 1193 Website

@cb4960

Another feature I thought of is an automatical update feature that could be integrated into Rikai-san. I find it a bit annoying downloading the .xpi files every time a minor/major update comes, so.. perhaps this is possible? If a server/etc. is needed, that's not a big problem, I suppose smile

Colors
1) Can EPWING have another window color in Rikai-san? smile Just fancy stuff lol

Displaying entries from J-E/J-J dictionary at the same time in one window
Possible?

Last edited by Tori-kun (2011 July 21, 3:35 am)

Reply #268 - 2011 July 23, 6:43 am
Shakunatz Member
From: 東京 Registered: 2009-08-18 Posts: 97

I know that's a false positive but on my new laptop when I use rikaisan norton (Norton internet security - SONAR protection) keeps saying "Dangerous ! Quarantinte! Dangerous!".
The file I'm talking about is 'eplkup.exe'.
I thought it would be useful to give some feedback ;D
Thank you for rikaisan, it's gorgeous big_smile

Reply #269 - 2011 July 23, 12:59 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

@Wind Owl and Tori-kun,

I'll add those feature suggestions to the first post. (no guarantees though).

Shakunatz wrote:

I know that's a false positive but on my new laptop when I use rikaisan norton (Norton internet security - SONAR protection) keeps saying "Dangerous ! Quarantinte! Dangerous!".
The file I'm talking about is 'eplkup.exe'.
I thought it would be useful to give some feedback ;D
Thank you for rikaisan, it's gorgeous big_smile

20 more opinions:
http://virusscan.jotti.org/en/scanresul … b7cac2e982

No idea what would have triggered a false positive.

Reply #270 - 2011 July 23, 4:19 pm
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

According to a few Google search results, SONAR has a high false positive rate.

Reply #271 - 2011 July 23, 10:12 pm
Angeldust Member
From: Montana Registered: 2010-02-19 Posts: 49

cb4960
Thank you soooo much for making this! It is awesome!

Reply #272 - 2011 July 26, 10:58 pm
dtcamero Member
From: new york Registered: 2010-05-15 Posts: 653

@cb4960, asriel... i recently switched to a mac and would love to get this going but am not power-user specced up yet... any chance of a step-by-step guide on how to get the epwing functionality working? I have the catalog-directory path entered without jpnese chars, and keep getting "entry not found."   any help is appreciated,...

Reply #273 - 2011 July 27, 5:36 am
Dakoina Member
From: Belgium Registered: 2008-11-16 Posts: 68 Website

ah nuts... mediafire is blocked at work and proxy wont launch it either... grr, I guess I'll have to wait till I'm home to try sad

-- ah nice smile exploring it now

Last edited by Dakoina (2011 July 27, 7:10 am)

Reply #274 - 2011 July 27, 11:13 am
Asriel Member
From: 東京 Registered: 2008-02-26 Posts: 1343

@dtcamero and cb -- I can't make the installer, unfortunately... I changed things around with a 7z editor, but Firefox is telling me that the add-on is corrupt...

But! If you know where the extensions are stored, you can replace the innards of your current Rikaichan with the contents of the zip file that I'm giving you, and Epwing support for the Mac should work (given that you don't have foreign characters in the path names hmm).
Audio is still a mystery though...

Zip file containing Rikaichan guts

I can't guarantee that it works 100%
It works just fine on my machine (not audio), so it should be OK. I barely changed anything. All I can really say is that it definitely shouldn't have broken anything that was working before.

And cb -- everything in that zip file is what should be in the xpi, as far as I can tell...
All I changed was the source for eplkup, added the mac (linux maybe?) executable, and made it so it didn't try to run the .exe in wine (rikaichan.js and run_eplkup.sh).

Reply #275 - 2011 July 27, 11:16 am
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

I wonder if it would be useful to have labels in the popups or some indicator of some sort, for dictionary switching? Not a big deal, but I realized when citing a specific dictionary as a source, I wasn't sure if that was the right one because I'd lost track while cycling through (perhaps simple numerical counters for the EPWING stuff, 1-3, would work?).