Coder Social home page Coder Social logo

jxb8901 / mozc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from niw/mozc

0.0 1.0 0.0 749.39 MB

A mirror repository of Mozc, an open source Japanese input method made by Google.

Home Page: http://code.google.com/p/mozc/

Shell 0.02% Python 6.76% Puppet 0.01% Makefile 0.02% C++ 71.48% C 0.75% Java 14.43% Objective-C++ 1.38% Objective-C 0.38% HTML 1.54% JavaScript 1.81% CSS 0.17% Protocol Buffer 0.73% QMake 0.01% Yacc 0.01% Emacs Lisp 0.50%

mozc's Introduction

Mozc

Mozc is an open source Japanese input method for Chromium OS, Mac and Linux developed by Google, Inc. Their Google日本語入力 is the original product of Mozc which supports Windows as well.

Mozc is open sourced under New BSD License but unfortunately, they can't commit any patches written by non-Google employee, so far, which is not like the relationship between Chrome and Chromium.

Since this limitation of Mozc project, I've checked out the code from the original SVN repository then mirror it to this Git repository to commit my patches. I'll keep sync this repo to original SVN repository but this synchronization is done by hand so you may prefer to use the original repository then fetch my patches from here.

Also, I've filed these patches to the original issue tracking list so that they can, in future, merge them into the original repository.

Build Instructions for Android on Mac

To build Mozc for Android, for now, we need to use Ubuntu 12.04 but setting up such development environment takes long time and many hassles. This repository provides an additional Vagrant configuration and a Puppet manifest so that we can build Mozc for Android quickly.

  1. Install the latest Vagrant, VirtualBox and VirualBox Extension Pack. I've tested with Vagrant 1.5.2, VirtualBox 4.3.10 and Extension Pack

  2. Checkout source code from this repository using git command.

  3. Run vagrant up in the repository directory.

  4. Grab a cup of coffee. This command will download Ubuntu 12.04, setup a virtual machine, install packages, Android SDK and NDK, etc, etc which will take a long time.

  5. Once it's done, run next commands to build Mozc.

    # Connect to the virtual machine.
    % vagrant ssh
    
    # Current working Mozc directory is mounted to /vagrant.
    $ cd /vagrant
    
    # Build Mozc for Android.
    $ sh build_android.sh
    
  6. Mozc for Android is built at src/android/bin/MozcForAndroid-debug.apk, so you can install this apk using adb command on your host machine or directly from the virtual machine.

Install apk from the virtual machine

To install binary from the virtual machine, we need to connect the device into the virtual machine instead of the host machine.

  1. Run VBoxManage list usbhost to get UUID of your Android device. Find the device form the long list and remember the UUID.

  2. Attach the device to the virtual machine. Run VBoxManage list vms, find the virtual machine ID starts with mozc, then run next command with it.

    % VBoxManage controlvm <virutal machine ID> usbattach <UUID>
    
  3. In the virtual machine, run next commands to install the apk to the device.

    # Connect to the virtual machine.
    % vagrant ssh
    
    # Restart adb server to lookup the device.
    $ sudo adb kill-server
    $ sudo adb start-server
    $ adb devices
    
    # Install the apk
    $ cd /vagrant
    $ adb install src/android/bin/MozcForAndroid-debug.apk
    

Build Instructions for Mac

  1. Checkout source code from this repository using git command.

  2. Run checkout_externals.py instead of running gclient command described in the original instructions.

  3. Follow instructions. My build instruction is:

    # Checkout dependencies.
    % python checkout_externals.py mac
    
    # Build Mozc itself.
    % cd src
    % python build_mozc.py clean && python build_mozc.py gyp --noqt
    % python build_mozc.py build_tools -c Debug
    % python build_mozc.py build -c Debug mac/mac.gyp:GoogleJapaneseInput mac/mac.gyp:gen_launchd_confs
    
    # Then, install Mozc into /Library then kill existing processes.
    # which requires root priviledge.
    % sudo sh ../install_mac.sh
    

mozc's People

Contributors

hidehikoabe avatar hiroyuki-komatsu avatar jmuk avatar kento1218 avatar matsuza avatar niw avatar nona-google avatar peria avatar sumita12 avatar yusukes avatar

Watchers

 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.