lookupDictionary.js で rc ファイルに追加辞書設定をかけるようにした。
辞書追加するのにスクリプトを書き換えるというのはアレなので、 .vimperatorrc などで辞書を追加できるようにした。
こんな具合。
js <<EOM liberator.globalVariables.lookupDictionary_site_definition = [ { names: ['gigadictj'], url: 'http://cgi.geocities.jp/abelinternational/cgi/dicjp.cgi?word=%s&mode=search', shortHelp: 'GigaDict (和葡辞典)', multi: true, xpath: './table[1]/tbody/tr/td/table/tbody/tr', } ]; EOM
勝手コミット。
http://coderepos.org/share/changeset/20048
http://coderepos.org/share/browser/lang/javascript/vimperator-plugins/trunk/lookupDictionary.js
自分は、
http://d.hatena.ne.jp/nokturnalmortum/20080808#1218183528
のようにして、 .vimperatorrc.js に書いている。