2009-12-07

Published 星期一, 12月 07, 2009 by with 0 comment

用 google 字典查找單字的 bookmarklet - dictionary

google_dictionary_01.jpg
有時候瀏覽英文網頁難免遇到陌生的單字,這時候不免要打開翻譯軟體: 像是 Dr. Eye 或者免費的 Lingoes,不過等待軟體開啟的時間總是令人煩躁。

其實可以利用 Google 的 Dictionary 服務,搭配 bookamrklet 使用,讓你直接透過滑鼠選取該字,然後點一下 bookmarklet 就可以幫你利用 Google Dictionary 查詢該單字。以英文翻譯成中文的 bookmarklet 例子如下:

javascript:(function(){var%20s;if(window.getSelection){s=window.getSelection();}else%20if(document.selection){s=document.selection.createRange();}window.open('http://www.google.com/dictionary?aq=f&langpair=en|zh-TW&hl=en&q='+s);}());


當然 你也可以自行設定 source 和 destinated 語言,調整上面 code 當中的 langpair 參數即可,目前的例子是 en | zh-TW 也就是 英文 轉換成 繁體中文,至於其他語言的代碼是多少,你可以先從網頁選項,觀察他的網址得知。

如果需要 英文 查找 繁體中文 的話,可以直接拖曳 gTranslate (English>Chinese) 這個書籤工具 到您的書籤工具列上。

另外,你還可以將查找的單字加上星號,在右方的 starred words 當中就會被記錄下來,可以當作單字本來使用!


google_dictionary_01.jpg


      edit

0 Comments:

張貼留言