aboutsummaryrefslogtreecommitdiffstats
path: root/lookupDictionary.js
diff options
context:
space:
mode:
authorteramako2008-09-21 12:14:40 +0000
committerteramako2008-09-21 12:14:40 +0000
commit0880257f8b73f6bc308542a80ed470295492c9fd (patch)
treec86ec37f16838964b9c01daf24f7513ee400aa8f /lookupDictionary.js
parent71bc77076d8233a2340a14f8eefe8a6bcadcf30c (diff)
downloadvimperator-plugins-0880257f8b73f6bc308542a80ed470295492c9fd.tar.bz2
Fix:
* indent * command arguments handling git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@19677 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'lookupDictionary.js')
-rw-r--r--lookupDictionary.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/lookupDictionary.js b/lookupDictionary.js
index e487b04..de5cbb8 100644
--- a/lookupDictionary.js
+++ b/lookupDictionary.js
@@ -12,7 +12,7 @@
names: ['eiji[ro]'],
url: 'http://eow.alc.co.jp/%s/UTF-8/',
shortHelp: 'SPACE ALC (英辞郎 on the Web)',
- xpath: '//*[@id="resultList"]'
+ xpath: 'id("resultList")'
},{
names: ['goo'],
url: 'http://dictionary.goo.ne.jp/search.php?MT=%s&kind=all&mode=0',
@@ -20,6 +20,17 @@
encode: 'EUC-JP',
xpath: '//div[@id="incontents"]/*[@class="ch04" or @class="fs14" or contains(@class,"diclst")]',
multi: true
+},{
+ names: ['infokanji'],
+ url: 'http://dictionary.www.infoseek.co.jp/?sc=1&se=on&lp=0&gr=kj&sv=KJ&qt=&qty=%s&qtb=&qtk=0',
+ shorthelp: 'Infoseek 漢字辞書',
+ encode: 'EUC-JP',
+ xpath: '//div[@class="NetDicHead"]'
+},{
+ names: ['answers'],
+ url: 'http://www.answers.com/%s',
+ shortHelp: 'Answers.com(英英辞書)',
+ xpath: 'id("firstDs")'
}].forEach(function(dictionary){
liberator.commands.addUserCommand(
dictionary.names,