First of all, in case you don’t know what all bookmarklets are:
- Use bookmarklets to quickly perform common web page tasks | Firefox Help – is.gd/yxiWFB
- What is bookmarklet? – Definition from WhatIs.com – is.gd/hNWSHC
Anyway, so, I just found out that CantoDict has a parser-style, “gangbang” 1 batch lookup feature similar to MDBG‘s! This is great because it allows you to look up entire sentences and paragraphs at a time — with the parser (usually successfully) figuring out the wordbreaks for you — saving you tons of time and effort. (Speaking of which, if you know of a similarly awesome dictionary for Japanese, please share!)
All this time! I had no idea, CantoDict! Here’s a bookmarklet for you to use to access it with a single click:
Source code, just in case:
javascript:(function(){var%20w=window,d=w.document,s="";;if(d.selection){s=d.selection.createRange().text}else%20if(d.getSelection){s=d.getSelection()}else%20if(w.getSelection){s=window.getSelection()}window.open("http://www.cantonese.sheik.co.uk/dictionary/parser/?chinese="+encodeURIComponent(s),"_blank")})()
And, if you insist on going old school, here’s a nickle-and-dime single-lookup bookmarklet:
粵一
With source code, just in case:
javascript:(function(){var%20w=window,d=w.document,s="";;if(d.selection){s=d.selection.createRange().text}else%20if(d.getSelection){s=d.getSelection()}else%20if(w.getSelection){s=window.getSelection()}window.open("http://www.cantonese.sheik.co.uk/dictionary/search/?searchtype=1&text="+encodeURIComponent(s),"_blank")})()
Notes:
- Phrasing! ↩