Friday, November 27, 2009

Quick update on WiktLookup

Wiktionary Lookup is a tool that allows you to double click on a word, and have a little popup with its definition from Wiktionary. (Its enabled on this blog, and several wikis). So far it is translated into:

  • English
  • Spanish
  • Italian
  • French
  • Japanese
  • Dutch
  • And several other languages pending



The script itself has improved quite a bit. Words can now be selected by highlighting and pressing ctrl+shift+L in addition to double clicking. It should be able to determine what language the word you are clicking on is in (in some cases anyways), to make sure it gets the right definition. There is now also several configuration options:


  • showWord - determine if it should display the word that was looked up (its set to bold on this blog)
  • count - number of definitions to return
  • height - max height of the popup box
  • width - max width
  • key - the key combo to look up a word when highlighting
  • reverseShift - change the role of the shift key from preventing the popup from appearing when double-clicking, to requiring the shift key be pressed when double clicking


In the future, there will be even more options (such as say the word if audio pronounciation is available), more languages, and more awesomeness ;) See [[n:WN:WiktLookup]] for more details and how to use the script on your own webpage/wiki.