קוד: |
$ sudo pip install beautifulsoup4 requests |
קוד: |
$ install morfix /usr/local/bin/ $ chmod +x /usr/local/bin/morfix |
קוד: |
$ morfix TERM |
קוד: |
$ morfix "a tad" מְעַט, קִמְעָה, בְּמִקְצָת |
קוד: |
$ morfix TERM | bidiv |
קוד: |
#!/bin/bash
inputStr=$(xsel -o -c | sed "s/[\"'<>]//g") [ "$inputStr" == "" ] && inputStr=$(zenity --entry --title="תרגם לי" --text="מילה לתרגם") notify-send --icon=info "$inputStr" "$(wget -U "Mozilla/5.0" -qO - "http://translate.googleapis.com/translate_a/single?client=gtx&sl=en&tl=he&dt=t&q=$inputStr" | sed "s/,,,0]],,.*//g" | awk -F'"' '{print $2}')" |