Pages

Tuesday, 1 March 2022

fcitx-remote for OS X

A simulate fcitx-remote to handle osx input method in command line.

fcitx-remote is a tool to control fcitx state via console. Users in Linux use it for interaction with their vim or emacs to avoid being interrupted by input method.

Plugins

How this works

fcitx-remote for OS X dosen't rely on fcitx at all. It is just a small program that responds to fcitx.el etc. just like it's really a fcitx-remote in GNU/Linux.

You can choose your Chinese input method and English layout(or others) in compilation.

Settings

There are two modes:

  1. GENERAL mode: use keystroke Ctrl-Shift-Z to switch input method, see instructions below.
  2. SPECIFIC mode: switch to specific input method by name. Builtin support is included for:
    1. Baidu Pinyin
    2. Baidu Wubi
    3. Log Input
    4. Log Input 2
    5. OS X Pinyin
    6. OS X Shuangpin
    7. OS X Wubi
    8. Qingg
    9. QQ Wubi
    10. Sogou Pinyin
    11. Squirrel Rime(old verison)
    12. Squirrel Rime

Installation

git clone https://github.com/xcodebuild/fcitx-remote-for-osx.git
cd fcitx-remote-for-osx
./build.py build all
# general method
cp ./fcitx-remote-general /usr/local/bin/fcitx-remote
# squirrel for example
cp ./fcitx-remote-squirrel-rime-upstream /usr/local/bin/fcitx-remote

Installation via homebrew (obsolete)

brew install fcitx-remote-for-osx

System Settings for methods other than general

None.

System Settings for GENERAL method only

Set your shortcut for Select next source in input menu to Ctrl-Shift-z.

preview

And set your English input method to US(美式英语)

preview

Enjoy!


from https://github.com/xcodebuild/fcitx-remote-for-osx

-----


homebrew-fcitx-remote-for-osx

brew tap for https://github.com/CodeFalling/fcitx-remote-for-osx

Usage

brew tap codefalling/fcitx-remote-for-osx
brew install codefalling/fcitx-remote-for-osx/fcitx-remote-for-osx --with-baidu-pinyin

You can use brew info codefalling/fcitx-remote-for-osx/fcitx-remote-for-osx to get input method support info.


from https://github.com/xcodebuild/homebrew-fcitx-remote-for-osx

No comments:

Post a Comment