bbqasian [yad]

Submitted scripts and programs
Forum rules
Your own work only.
machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

bbqasian [yad]

Unread post by machinebacon » Tue Jul 30, 2013 7:33 am

This script requires yad. It does nothing else than to install Asian language support and the iBus input method.

Code: Select all

#!/bin/bash
# Asian language support

choice=$(yad --image=/usr/share/icons/bbqtux2.png --list --height=650 --width=570 --button="Exit:2" --button="gtk-ok:0" --title="LinuxBBQ Asian Language Support" --text="Please choose the language set." --column="Selection" "Simplified Chinese Fonts & iBus Pinyin IME" "Traditional Chinese Fonts & iBus Chewing IME" "Japanese Fonts & iBus Anthy IME" "Korean Fonts & iBus Hangul IME" "Chinese manual pages" "Japanese manual pages" "Chinese Simplified Desktop" "Chinese Traditional Desktop" "Japanese Desktop" "Exit")
ret=$?


[[ $ret -eq 1 ]] && exit 0

if [[ $ret -eq 2 ]]; then
    exit 0
fi

case $choice in
"Simplified Chinese Fonts & iBus Pinyin IME") sudo apt-get install -y ibus ibus-gtk ibus-pinyin xfonts-wqy im-config && sudo ibus-daemon && yad --text="Log out and back!";;
"Traditional Chinese Fonts & iBus Chewing IME") sudo apt-get install -y ibus ibus-gtk ibus-chewing im-config xfonts-wqy && sudo ibus-daemon && yad --text="Log out and back!";;
"Japanese Fonts & iBus Anthy IME") sudo apt-get install -y ibus ibus-gtk ibus-anthy im-config xfonts-wqy ttf-sazanami-gothic ttf-sazanami-mincho && sudo ibus-daemon && yad --text="Log out and back!";;
"Korean Fonts & iBus Hangul IME") sudo apt-get install -y ibus ibus-hangul im-config ttf-unfonts-core && sudo ibus-daemon && yad --text="Log out and back!";;
"Chinese manual pages") sudo apt-get install -y manpages-zh ;;
"Japanese manual pages") sudo apt-get install -y manpages-ja ;;
"Chinese Simplified Desktop") sudo apt-get install -y task-chinese-s-desktop ;; 
"Chinese Traditional Desktop") sudo apt-get install -y task-chinese-t-desktop ;;
"Japanese Desktop") sudo apt-get install -y task-japanese-desktop ;;
"Korean Desktop") sudo apt-get install -y task-korean-desktop ;;
"Exit") exit 0;;
esac
..gnutella..

User avatar
paolo
Head Banger
Posts: 275
Joined: Mon Nov 12, 2012 11:08 am
Location: Milano,Italy

Re: bbqasian [yad]

Unread post by paolo » Tue Jul 30, 2013 9:07 am

Thanks boss !
Dell Latitude C640 - CPU P4 2GHz - RAM 1,5 GB - made in 2002 - I'm in the Manjaro-i3 land now :)

User avatar
johnraff
Sperminator
Posts: 199
Joined: Wed Oct 17, 2012 6:38 pm
Location: Japan
Contact:

Re: bbqasian [yad]

Unread post by johnraff » Tue Sep 03, 2013 3:39 am

Maybe consider replacing anthy with mozc for Japanese input? Mozc is newer and seems a little better.
All code is one.

User avatar
kiiroitori
dpkg-reconfigure
Posts: 72
Joined: Tue Aug 27, 2013 12:22 pm

Re: bbqasian [yad]

Unread post by kiiroitori » Tue Sep 03, 2013 11:59 am

Another vote for mozc! while anthy is good, mozc remembers recent entries so it is often quite helpful.

Warning: It is not helpful if you just typed "naked office ladies" and your GF comes right after and wants to look up "natto recipe" as "naked" will come up as soon as she enters "na".

Post Reply