kanji koohii FORUM
Rikaichan: RevTK Community Edition - Printable Version

+- kanji koohii FORUM (http://forum.koohii.com)
+-- Forum: Learning Japanese (http://forum.koohii.com/forum-4.html)
+--- Forum: Learning resources (http://forum.koohii.com/forum-9.html)
+--- Thread: Rikaichan: RevTK Community Edition (/thread-5351.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35


Rikaichan: RevTK Community Edition - nest0r - 2011-07-02

A usage for that Super Sticky intra-popup capability that I've used a few times: when there seems to be no audio for a word, try one of the written variations for its entry.

Also, it occurred to me that, and this is related to the counter, it would be nice to set a quota for new cards, with perhaps a reminder that you've reached it. I like to limit new words per session to 25 or so, but I lose track. This might also offset the issue with Anki not automatically saving when you add words through Rikaisan + Realtime Import.

I wonder if a little ‘success’ feedback indicator might be good for adding cards in general, actually.

Perhaps further down the line this could be connected to queuing cards for when Anki isn't open at the time, and/or deck-switching/toggling multiple layouts.

Edit: And this is related to the other dictionaries (Sanseido at the time), but I wonder if Rikaisan's segmentation process might be problematic here, for when there are Sanseido entries for words you encounter, but Rikaisan doesn't highlight them? I'm not sure how Rikaisan works with regards to knowing when/what to highlight, but I imagine it's related to WWWJDIC's text glossing process? At the least, it seems connected to headwords from Breen's dictionary.


Rikaichan: RevTK Community Edition - cb4960 - 2011-07-03

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

Download version 13.0 via Mediafire

▲ Added EPWING Support!

Features:
• You can switch between up to 3 dictionaries. Use the plus key "+" to switch to the next dictionary. Use the minus key "-" to switch to the previous dictionary.
• You can switch between multiple entries. Use the "]" key to switch to the next entry. Use the "[" key to switch to the previous entry. The first line of the popup window contains the number of the entry that you are currently looking at and the total number of entries for the word in the currently dictionary.
• Gaiji support. Gaiji from the more popular dictionaries (kenkyusha, kojien, daijirin, etc.) are converted to UTF-8. Gaiji with no known UTF-8 equivalents are represented with HTML IMG tags that contain embedded base64 image data (this means no external image files and makes it easy to import into Anki).
• Option to limit the number of lines shown in the popup window.
• Option to strip carriage returns and linefeed characters for a more compact view.
• Option to start rikaisan with EPWING Mode automatically enabled (see the startup tab).

Setup Information:
Just open up the EPWING tab from the options dialog and add the path that contains your EPWING dictionary’s "CATALOG" or "CATALOGS" file.

To toggle EPWING mode just hover over a word and press the "P" key.

I have successfully tested with the following EPWING dictionaries:
• 新和英大辞典 第 5 版 (Kenkyusha 5th Edition, J-E)
• 岩波書店 広辞苑 第六版 (Kojien 6th Edition, J-J)
• 大辞林 第2版 (Daijirin 2nd Edition, J-J)
• 研究社 新英和・和英中辞典 (Kenkyusha Chujiten, J-E)
• ジーニアス英和辞典〈改訂版〉(Genius Revised Edition, J-E)
• The Tanaka Corpus (Example Sentences, J-E)

Notes:
An exact search is performed. Perhaps other search types (keyword, begin, end) will be supported in the future.

The EPWING feature only works on Windows. Perhaps I will make a linux port in the future.

Screenshots:

The EPWING tab in the options dialog:
[Image: rikaimodv130epwing.png]

Kenkyusha 5th Edition:
[Image: rikaimodv130wadai5.png]

Kojien 6th Edition:
[Image: rikaimodv130kojien.png]

Daijirin 2nd Edition:
[Image: rikaimodv130daijirin.png]

Other changes in this release:

▲  Rikaisan-in-rikaisan. By using Super Sticky mode you can ctrl-click a word inside of a popup window to lookup that word.

▲ Moved Sanseido Mode to the "O" key (the "P" key is now used by EPWING Mode).


Let me know if you have suggestions or find any problems.

cb4960


Rikaichan: RevTK Community Edition - Sebastian - 2011-07-03

That sounds great.

Unfortunately the Epwing dictionary lookup option isn't working on my computer. When I press "P", nothing happens. Rikaichan stops displaying popups altogether. It shows popups for alt texts in links or images, though, but only the normal Edict info is displayed.

I tried to use 2 dictionaries, 1 of which has non-ascii characters in its path, but the other has an ascii only path as far as I can see, so I guess that's probably not the problem.

Also, it seems that neither Sanseido or Epwing mode work from the Rikaichan lookup bar.


Rikaichan: RevTK Community Edition - nest0r - 2011-07-03

I had a similar problem to Sebastian, then I restarted and haven't been able to duplicate it. Works great now! Thanks, as always. You even included gaiji stuff, wow. Super Sticky thing works also.


Rikaichan: RevTK Community Edition - cb4960 - 2011-07-03

Thanks for the feedback. I'll try to figure out why it apparently doesn't work on the first attempt.


Rikaichan: RevTK Community Edition - nest0r - 2011-07-03

I read in another comment that the Kojien dictionary that some might have isn't the right format? That's too bad.

By the way, can Rikaisan do my thesis for me? I'd rather spend my time learning Japanese.


Rikaichan: RevTK Community Edition - Sebastian - 2011-07-03

I've restarted Firefox several times and I get the same results.

I'm using Firefox 3.6.18 on Win7, if that means something for this effect.


Rikaichan: RevTK Community Edition - Hashiriya - 2011-07-03

omg it supports 新和英大辞典 第 5 版 (Kenkyusha 5th Edition, J-E) now? My fav dictionary ever! thanks!

Edit: I'm trying to think of any way this could possibly get better.. I'm having a pretty hard time... I imagine the next thing that this add-on is going to do is pull up an image off of Google that can be downloaded to the Anki deck as well... nah, that would be going overboard.


Rikaichan: RevTK Community Edition - nest0r - 2011-07-03

@Hashiriya

We do have the Image Download plugin for Anki already that does this. ;p

Edit: That's for Google Images and Anki. I mentioned earlier that Japanese WordNet features small images from Open ClipArt that are connected to synsets; if there's ever an integration with JW the way WWWJDIC has, I bet that could work for Rikaisan popups.

http://nlpwww.nict.go.jp/wn-ja/eng/pics.html (They're also included in the offline JW database.)


Rikaichan: RevTK Community Edition - Hashiriya - 2011-07-03

I think my mind is going to explode :o
So many things you can do with this... I wish someone would make an idiot's guide for me. Or perhaps a youtube video of all the features?

Edit: does this work inside pdfs too? or only in Firefox?


Rikaichan: RevTK Community Edition - cb4960 - 2011-07-04

Sebastian Wrote:I've restarted Firefox several times and I get the same results.

I'm using Firefox 3.6.18 on Win7, if that means something for this effect.
I installed 3.6.18 on WinXP and I get the same problem. Apparently I'm using a feature that requires Firefox 4.0 or higher.

Edit: It doesn't seem to like the NetUtil.asyncFetch() routine that I'm calling to read the output of my EPWING lookup tool. According to the mozilla documentation, in Firefox 3.6, asyncFetch() only accepted an instance of nsIChannel as input. But I'm passing it an instance nsILocalFile, which is only supported with Firefox 4 and up.

So the solution is to upgrade to Firefox 4 or 5 and pray that all of your other extensions still work.

Hashiriya Wrote:I think my mind is going to explode :o
So many things you can do with this... I wish someone would make an idiot's guide for me. Or perhaps a youtube video of all the features?

Edit: does this work inside pdfs too? or only in Firefox?
Only in Firefox.


Rikaichan: RevTK Community Edition - cb4960 - 2011-07-04

nest0r Wrote:I read in another comment that the Kojien dictionary that some might have isn't the right format? That's too bad.

By the way, can Rikaisan do my thesis for me? I'd rather spend my time learning Japanese.
There is a 5th edition floating about that doesn't have a CATALOG file and won't work with EB Library which my lookup tool relies on.


Rikaichan: RevTK Community Edition - Sebastian - 2011-07-04

cb4960 Wrote:
Sebastian Wrote:I've restarted Firefox several times and I get the same results.

I'm using Firefox 3.6.18 on Win7, if that means something for this effect.
I installed 3.6.18 on WinXP and I get the same problem. Apparently I'm using a feature that requires Firefox 4.0 or higher.

Edit: It doesn't seem to like the NetUtil.asyncFetch() routine that I'm calling to read the output of my EPWING lookup tool. According to the mozilla documentation, in Firefox 3.6, asyncFetch() only accepted an instance of nsIChannel as input. But I'm passing it an instance nsILocalFile, which is only supported with Firefox 4 and up.

So the solution is to upgrade to Firefox 4 or 5 and pray that all of your other extensions still work.
Thanks a lot for the explanation. I have Firefox 4 Portable installed and the new version of Rikaisan (though I think Rikai sama would be more appropriate) works perfectly.

 There is a single extension that has been preventing me from updating to FF4. For some reason Hide Caption Titlebar Plus (Smart) jus won't let me hide the caption bar completely and make normal use of the minimize/maximize/close buttons. If somebody knows of a way to correct that or an extension that can replace it, please tell me. I guess for now I'll have to bit the bullet and update FF.

Nevertheless, Rikai sama still recognizes only the standard behavior from the lookup bar. Sanseido never worked from there, and even now in FF 4 Sanseido and Epwing are in the same situation.

With so many new options, it would come in handy having a keyboard shortcut to show the guide that appears when you activate Rikai sama.

I think the new killer feature for Rikai sama in the future would be the ability to create Anki cards with different templates according to the dictionary you're using at the moment. For example, a template for kanji cards when using Kanjidic, other for vocabulary cards when using Jdic, a different vocabulary template for monolingual definitions, other template for taking example sentences from dictionaries that include them, etc.

I feel bad complaining so much. Your work is awesome and will be incredibly useful for lots of people. Thanks a lot.


Rikaichan: RevTK Community Edition - nest0r - 2011-07-04

cb4960 Wrote:
nest0r Wrote:I read in another comment that the Kojien dictionary that some might have isn't the right format? That's too bad.

By the way, can Rikaisan do my thesis for me? I'd rather spend my time learning Japanese.
There is a 5th edition floating about that doesn't have a CATALOG file and won't work with EB Library which my lookup tool relies on.
Yes I know, but I was hoping that someone would provide a shortened URL to a direct, discreet venue for, ah, purchasing it (and the 2nd edition of Daijirin). But I can see that apparently the, ah, packaging for Kojien is enormous, like thousands of mechabots (that's the system of physical measurement that we forum bots use online), so I don't think it's even worth the effort of storing on, um, one's bookshelf.


Rikaichan: RevTK Community Edition - fugu68 - 2011-07-04

cb4960 Wrote:Added EPWING Support!
Fantastic work - thank you, thank you!

I confirm it works also with the older 新和英大辞典第4版 too.

How can I buy you a beer??


Rikaichan: RevTK Community Edition - nest0r - 2011-07-04

@Sebastian

By the way, the newer versions of Firefox messed up the delete history settings so now you can't delete it by X days, instead it automatically deletes pages from your history based on your specs.

By the way, I'm not sure what you were talking about before, but I have menu bar disabled and have used Stylish (menu button changer and little button scripts) to have a transparent dropdown at the top left, with the small Firefox icon. No title stuff, and the URL/Back/Forward/Home stuff is beneath the tabs.

Edit: I see what you mean. In Firefox it's the drawintitlebar option (in about:config), but I checked and it seems the Hide Caption addon thingy works also. Which reminds me I should check to see if it's been integrated with my Firefox theme (via Stylish if necessary).

If you don't know already, make sure to get that Compatibility Reporter addon so all extensions are enabled. I've yet to find an extension that doesn't work, even the ones that say they're not compatible.


Rikaichan: RevTK Community Edition - cb4960 - 2011-07-04

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

Download version 13.1 via Mediafire

Some minor bug fixes:

▲ Fixed bug that allowed you to highlight a word with say 4 entries, switch to entry 4, then immediately highlight another word (making sure that the popup wasn't closed) with say only 2 entries. At this point the text at the top of the popup would say 4/2 and the definition text would be blank. This bug was most apparent in Super Sticky Mode.

▲ Fixed bug that prevented other startup options from being automatically enabled when the lookup bar startup option was enabled.

▲ Fixed the ESC key not working in Super Sticky Mode.


Rikaichan: RevTK Community Edition - Tori-kun - 2011-07-04

*where to get epwing*


Rikaichan: RevTK Community Edition - cb4960 - 2011-07-04

nest0r Wrote:
cb4960 Wrote:
nest0r Wrote:I read in another comment that the Kojien dictionary that some might have isn't the right format? That's too bad.

By the way, can Rikaisan do my thesis for me? I'd rather spend my time learning Japanese.
There is a 5th edition floating about that doesn't have a CATALOG file and won't work with EB Library which my lookup tool relies on.
Yes I know, but I was hoping that someone would provide a shortened URL to a direct, discreet venue for, ah, purchasing it (and the 2nd edition of Daijirin). But I can see that apparently the, ah, packaging for Kojien is enormous, like thousands of mechabots (that's the system of physical measurement that we forum bots use online), so I don't think it's even worth the effort of storing on, um, one's bookshelf.
Sorry, but I only know of indiscreet, easily traceable methods of purchasing it. BTW I definitely would not google "[アプリ] 岩波書店 広辞苑 第六版 DVD-ROM版 (EPWING).iso" because you might find some links to TokyoToshokan or NyaaTorrents that some evil pirate put up.


Rikaichan: RevTK Community Edition - cb4960 - 2011-07-04

Sebastian Wrote:Nevertheless, Rikai sama still recognizes only the standard behavior from the lookup bar. Sanseido never worked from there, and even now in FF 4 Sanseido and Epwing are in the same situation.

With so many new options, it would come in handy having a keyboard shortcut to show the guide that appears when you activate Rikai sama.

I think the new killer feature for Rikai sama in the future would be the ability to create Anki cards with different templates according to the dictionary you're using at the moment. For example, a template for kanji cards when using Kanjidic, other for vocabulary cards when using Jdic, a different vocabulary template for monolingual definitions, other template for taking example sentences from dictionaries that include them, etc.
I'll see what I can do for some future release.


Rikaichan: RevTK Community Edition - jino123 - 2011-07-04

amazing!! Thank you soooooo much!!! ^_^

It will be truly amazing if epwing feature will be port to linux in the future! ^^


Rikaichan: RevTK Community Edition - Wind Owl - 2011-07-04

Wow, you are so awesome. I was just looking for a good way to access EPWING dictionaries a couple days ago and this is by far the most ideal way. Thanks!


Rikaichan: RevTK Community Edition - nest0r - 2011-07-04

Tori-kun Wrote:*where to get epwing*
http://forum.koohii.com/showthread.php?pid=100075#pid100075


Rikaichan: RevTK Community Edition - animehunter123 - 2011-07-04

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


Rikaichan: RevTK Community Edition - Sebastian - 2011-07-04

nest0r Wrote:@Sebastian

By the way, the newer versions of Firefox messed up the delete history settings so now you can't delete it by X days, instead it automatically deletes pages from your history based on your specs.

By the way, I'm not sure what you were talking about before, but I have menu bar disabled and have used Stylish (menu button changer and little button scripts) to have a transparent dropdown at the top left, with the small Firefox icon. No title stuff, and the URL/Back/Forward/Home stuff is beneath the tabs.

Edit: I see what you mean. In Firefox it's the drawintitlebar option (in about:config), but I checked and it seems the Hide Caption addon thingy works also. Which reminds me I should check to see if it's been integrated with my Firefox theme (via Stylish if necessary).

If you don't know already, make sure to get that Compatibility Reporter addon so all extensions are enabled. I've yet to find an extension that doesn't work, even the ones that say they're not compatible.
The weirdest thing just happened to me. Checking Firefox 4 portable I was happy to see that they updated the Hide Caption Bar extension and now it works fine. The problem is that at the same time I had regular Firefox 3.16 opened, and then they both crashed and got sort of merged (like in The Fly). Next time I started regular FF 3.16, the tabs were those I had open in 3.16, but it was Firefox 4. Opening Firefox 4 portable showed me my FF 4 portable with its own opened tabs working as normal.

It gets even weirder. I have more than 1 profile for my regular FF 3.6, and opening a different profile resulted in FF 3.6 being opened. So I had at the same time FF 3.16 AND FF 4 working together at the same time (both regular versions, not the portable ones).

After restarting FF a couple of times, and when I had accepted having updated to the last version... it came up as old FF 3.16 again. It seems that somehow the profiles from FF 3.16 and FF Portable 4 were merged for a while and now they got "unmerged".

Am I the only worried by the "chromification" of Firefox?

I'm afraid Firefox is missing its path. They should fix the interface instead of creating problems, forcing people to create extensions to solve those problems and then update the version number and make the extensions obsolete once and again. The look of the "Firefox button" is just stupid, there's no real interface for using bookmark tags at full (1) and you can't add keywords to bookmarks when adding them (2) , without using the bookmarks manager. There were extensions that solved all of those problems, but most of them died long ago.

Oh well, I guess I'll have to bite the bullet and update, 3.16 won't last much more anyway before extensions stop working one by one

[/rant].

Edit:

(1) TagSieve is Back! Now my only problem with tags is that I have too many of them.

(2) It seems Add Bookmark Here ² will be the perfect replacement for Openbook. Smile