Coder Social home page Coder Social logo

jrom99 / ibus-anthy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fujiwarat/ibus-anthy

0.0 0.0 0.0 1.38 MB

The anthy engine for IBus

Home Page: http://wiki.github.com/fujiwarat/ibus-anthy

License: GNU General Public License v2.0

Shell 2.15% Python 74.22% C 1.77% Makefile 3.67% M4 2.35% Terra 14.86% SWIG 0.81% Raku 0.18%

ibus-anthy's Introduction

ibus-anthy
It is a Japanese input engine for IBus.


Installation
============

The following is the online document:
https://github.com/ibus/ibus/wiki/Install

#1. Build & Install IBus
* Obtain source code

IBus source code can either be download from IBus download page
(https://github.com/ibus/ibus/releases)
(If you use ibus for the first time, the download page is more stable than 
git.)

 $ zcat ibus-xx.tar.gz | tar xfv -
 $ cd ibus-xx

    * The 'xx' is a version number. 

or obtained from git with following commands:

 $ git clone git://github.com/ibus/ibus.git ibus
 $ cd ibus

    * 'git clone --help' shows the usage. 

* Build and Install
After source code is extracted from tarball or git, use following command 
to build and install:

 $ ./autogen.sh --prefix='/usr' --sysconfdir='/etc' --libdir='/usr/lib' \
     --enable-gtk-doc
 $ make
 $ sudo make install

(Change the paths '/usr', '/etc', '/usr/lib' according to your system 
configuration.) 

or if you use Linux system, probably rpmbuild is easier to build applications.

  # cp ibus-xx.tar.gz /usr/src/$distributer/SOURCE
  # rpmbuild -bp ibus/ibus.spec.in
  # rpmbuild -bb ibus/ibus.spec.in

* Register IBus as a Gtk immodule
For i386

 $ sudo update-gtk-immodules i386-redhat-linux-gnu

or

 $ sudo gtk-query-immodules-2.0-32 \
     /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so >> \
     /etc/gtk-2.0/i386-redhat-linux-gnu/gtk.immodules

For x86_64

 $ sudo update-gtk-immodules x86_64-redhat-linux-gnu

or

 $ sudo gtk-query-immodules-2.0-64 \
   /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so >> \
   /etc/gtk-2.0/x86_64-redhat-linux-gnu/gtk.immodules

(Replace the string i386-redhat-linux-gnu or path 
/usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so with the setting that matches 
your system.)

* Update icon caches

  $ ls /usr/share/icons/*/*/*/ibus*
/usr/share/icons/hicolor/16x16/apps/ibus-keyboard.png
/usr/share/icons/hicolor/22x22/apps/ibus-keyboard.png
/usr/share/icons/hicolor/24x24/apps/ibus-keyboard.png
/usr/share/icons/hicolor/32x32/apps/ibus-keyboard.png
/usr/share/icons/hicolor/48x48/apps/ibus-keyboard.png
/usr/share/icons/hicolor/scalable/apps/ibus-keyboard.svg
  $ sudo gtk-update-icon-cache /usr/share/icons/hicolor


#2. Build & Install Anthy

   Download anthy source from Anthy Web
   (http://en.sourceforge.jp/projects/anthy/)

       $ zcat anthy-xx.tar.gz | tar xfv -
       $ cd anthy
       $ ./configure --prefix=/usr
       $ make
       $ sudo make install

          * The 'xx' is a version number. 


#3. Build & Install Kasumi

   Kasumi is not required but probably useful for you.
   Download kasumi source from Kasumi Web
   (http://en.sourceforge.jp/projects/kasumi/)

       $ zcat kasumi-xx.tar.gz | tar xfv -
       $ cd kasumi
       $ ./configure --prefix=/usr
       $ make
       $ sudo make install

          * The 'xx' is a version number. 


#4. Build & Install IBus Anthy
   Download ibus-anthy source from IBus download page
   (https://github.com/ibus/ibus-anthy/releases)
   or
   Use git clone git://github.com/ibus/ibus-anthy.git ibus-anthy

       $ zcat ibus-anthy-xx.tar.gz | tar xfv -
       $ cd ibus-anthy
       $ ./autogen.sh --prefix=/usr
       $ make
       $ sudo make install

          * The 'xx' is a version number. 

or if you use Linux system, probably rpmbuild is easier to build applications.

  # cp ibus-anthy-xx.tar.gz /usr/src/$distributer/SOURCE
  # rpmbuild -bp ibus-anthy/ibus-anthy.spec.in
  # rpmbuild -bb ibus-anthy/ibus-anthy.spec.in

or if you use Linux system, probably you can install rpm with yum.

  # yum install --enablerepo=rawhide ibus-anthy


#5. Run iBus
* Run ibus-daemon to start ibus daemon with either way:

    * Distribution tool likes im-chooser, im-switch
    * Add a new /etc/xdg/autostart/ibus.desktop to invoke 'ibus-daemon --xim'
    * Manual

       $ pkill -9 ibus
       $ ps -ef | grep ibus
       $ /usr/bin/ibus-daemon --xim &

After ibus-daemin is invoked, Run ibus-setup to set the preference, 
enable input methods, also start ibus daemon.

e.g.

 $ ps -ef | grep ibus
foo 15735 15518  0 11:30 pts/3    00:00:17 /usr/bin/ibus-daemon --xim
foo 20037 15735  0 12:58 pts/3    00:00:00 /usr/libexec/ibus-gconf
foo 20039 15735  0 12:58 pts/3    00:00:06 python /usr/share/ibus/ui/gtk/main.py
foo 20041     1  0 12:58 pts/3    00:00:00 /usr/libexec/ibus-x11 --kill-daemon
foo 20042 15735  0 12:58 pts/3    00:00:01 python /usr/share/ibus-anthy/engine/main.py --ibus


#6. Run gnome, kde or old X applications
* Set following environment varible for Gtk:

 $ GTK_IM_MODULE=ibus 

For KDE:

 $ QT_IM_MODULE=ibus

and other X applications

 $ XMODIFIERS="@im=ibus"

e.g.

 $ env GTK_IM_MODULE=ibus gedit

To enable input method, Type Ctrl + Space.


Bug Reports
===========
https://github.com/ibus/ibus/wiki/BugReport


Questions
=========
http://groups.google.com/group/ibus-user
http://groups.google.com/group/ibus-devel
Also refer AUTHORS file

ibus-anthy's People

Contributors

fujiwarat avatar phuang avatar hidegit avatar julroy67 avatar simmon-nplob avatar matsuu avatar mike-fabian avatar copperii avatar wsxy162 avatar rtcm avatar yurchor avatar norwayfun avatar rffontenelle avatar oersen avatar apteryks avatar t-chaik avatar mansil avatar bittin avatar lidaobing avatar jrom99 avatar mario-hero avatar henrimitte avatar fmang avatar nemequ avatar ehespinosa avatar ueno avatar meskobalazs avatar bellaperez avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.