About Me: Jawaad Mahmood: 30, Muslim, Canadian, freelance, doing consulting in Tokyo, Japan.

Japanese -> English Bookmarklet for Google Chrome

April 27, 2009

The only part of Firefox that I really miss using is the awesome Rikaichan plugin.  I’ve managed to emulate it, poorly, by using a Json call to a dictionary I setup on my server.

To use this, drag the link below into your Bookmark bar.  Select some text and click the “Translate” button; you will get a translation, if it can find one.

Translator

I can imagine a few benefits to doing it this way, over the long term.  Mainly, keeping the information in a DB somewhere means someone can aggregate the information and provide you with additional services (“You are constantly misunderstanding X kanji”, for instance).  I can’t say anything about privacy implications.  

This is free for your use.  The backend is dirt simple and I’m using the Edict dictionary for the translations.  I’ll publish everything once I find a suitable place to do so.  Sorry for the speed (my server sucks – if anyone else has a better place, or even one that I can use Tokyo Tyrant with, I’d appreciate a message :))

You can download the Javascript source here.  You can download the php backend code here.  I did it all in one sprint from 2 AM to 10 AM, so please don’t bother me about the lack of comments, I’m sure you are smart enough to understand what is going on.

Comments Off

Comments are closed.


Archives 
July 2010 May 2010 April 2010 March 2010 February 2010 January 2010 December 2009 November 2009 October 2009 August 2009 July 2009 June 2009 May 2009 April 2009 March 2009 February 2009 January 2009 December 2008 November 2008 August 2008 July 2008 June 2008 May 2008 April 2008 March 2008 February 2008 January 2008 December 2007 November 2007 October 2007 July 2007 June 2007 May 2007 April 2007 March 2007 February 2007 January 2007 December 2006 November 2006 October 2006 September 2006 August 2006 July 2006 June 2006 May 2006 April 2006 March 2006 February 2006 January 2006 December 2005 November 2005 February 2005 December 2004 November 2004 October 2004 September 2004

Creative Commons License
All text and images under 1024 x 768 pixels on this site are licensed under a Creative Commons Attribution 3.0 Unported License.
I require a link back to the original page of the article/image. If the image/article
is not public (IE: It is not present in an article on the blog), you may not reproduce it without permission.