vt - dotfiles - leot's dotfiles
 (HTM) hg clone https://bitbucket.org/iamleot/dotfiles
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
       vt
       ---
            1 #!/bin/sh
            2 #
            3 # AUTHOR: Leonardo Taccari
            4 #
            5 # DATE: Sat Jun 24 22:34:56 CEST 2017
            6 #
            7 # DESC: Elvi to search Vocabolario Treccani
            8 # elvis: vt             -- Search treccani.it for a definition
            9 . surfraw || exit 1
           10 
           11 w3_usage_hook () {
           12     cat <<EOF
           13 Usage: $w3_argv0 [options] [word]...
           14 Description:
           15   Look up a term in the Vocabolario Treccani
           16 EOF
           17     w3_global_usage
           18 }
           19 
           20 w3_config
           21 w3_parse_args "$@"
           22 # w3_args now contains a list of arguments
           23 if test -z "$w3_args"; then
           24     w3_browse_url "http://www.treccani.it/vocabolario/"
           25 else
           26     escaped_args=`w3_url_of_arg $w3_args`
           27     w3_browse_url "http://www.treccani.it/vocabolario/tag/${escaped_args}/"
           28 fi