Coder Social home page Coder Social logo

shiptux / meta-inputmethod Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ashie/meta-inputmethod

0.0 0.0 0.0 144 KB

Mirror of https://gitlab.com/clear-code/meta-inputmethod

Home Page: https://gitlab.com/clear-code/meta-inputmethod

License: Other

BitBake 100.00%

meta-inputmethod's Introduction

OpenEmbedded/Yocto BSP layer for inputmethod

This layer provides recipes for multilingual input methods used with OpenEmbedded and/or Yocto.

This layer depends on meta-openembedded, poky, and qt5 layers.

Contributing

Bug reports and pull requests are welcome on GitLab at https://gitlab.com/clear-code/meta-inputmethod.

Recipes

fcitx5 and fcitx5-*

Fcitx5 and its modules. Mainly for Wayland environment.

  • fcitx5: Input method framework
  • fcitx5-anthy: Japanese input method
  • fcitx5-chewing: Traditional Chinese (Chewing) input method
  • fcitx5-chinese-addons: Simplified Chinese (Pinyin and table) input methods
  • fcitx5-hangul: Korean (Hangul) input method
  • fcitx5-m17n: Multilingual input methods

fcitx and fcitx-*

Fcitx4 and its modules. Mainly for X11 environment.

  • fcitx: Input method framework and Chinese (Pinyin and table) input methods
  • fcitx-anthy: Japanese input method
  • fcitx-chewing: Traditional Chinese (Chewing) input method
  • fcitx-hangul: Korean (Hangul) input method
  • fcitx-m17n: Multilingual input methods

ibus and ibus-*

Although we don't yet publish them, we already have these recipes internally. Please contact us if you need them. We'll ensure to publish them if there are actual needs.

FYI: On our test, Fcitx was superior to IBus at many points.

gtk-wayland-textinputv1

Enable text input on GTK applications on Weston.

Quick Start

Fcitx5 on Weston

How to build

  • Clone this layer: git clone [email protected]:clear-code/meta-inputmethod.git
  • Add meta-inputmethod to you bblayers.conf: bitbake-layers add-layer /path/to/meta-inputmethod
  • Add following lines to your local.conf:
IMAGE_INSTALL_append = " fcitx5-anthy          source-han-sans-jp-fonts " # Japanese
IMAGE_INSTALL_append = " fcitx5-chewing        source-han-sans-tw-fonts " # Traditional Chinese
IMAGE_INSTALL_append = " fcitx5-chinese-addons source-han-sans-cn-fonts " # Simplified Chinese
IMAGE_INSTALL_append = " fcitx5-hangul         source-han-sans-kr-fonts " # Korean
IMAGE_INSTALL_append = " fcitx5-m17n "             # Other launguages
IMAGE_INSTALL_append = " gtk-wayland-textinputv1 " # If you need GTK on Weston
  • Build: bitbake core-image-weston

How to run

  • Add following lines to your /etc/xdg/weston/weston.ini
[input-method]
path=/usr/bin/fcitx5
  • Add following lines to your /etc/xdg/fcitx5/profile
[Groups/0]
Name=Default
Default Layout=us
DefaultIM=anthy

[Groups/0/Items/0]
Name=keyboard-us

[Groups/0/Items/1]
Name=anthy

[Groups/0/Items/2]
Name=chewing

[Groups/0/Items/3]
Name=pinyin

[Groups/0/Items/4]
Name=hangul
  • Run weston

How to input on GTK application on Weston

Set a environment variable GTK_IMMODULE=wltextinputv1 if you need to use Fcitx5 on GTK applications on Weston:

e.g.)

$ GTK_IMMODULE=wltextinputv1 gtk3-demo

How to use with applications

Fcitx5 provided by this recipe is confirmed with weston-editor and chromium-ozone-wayland. It will also work with other applications that supports text-input-v1 protocol.

GTK applications aren't supported yet because GTK supports only text-input-v3 and gtk-text-input protocols. To resolve this issue, we are preparing a patch at: gtk3-wayland-text-input-v1 branch. We'll import it into master branch as a separated module later.

Qt applications aren't confirmed yet.

You can enable input method by Ctrl + Space on such applications, and switch input methods by Ctrl + Shift.

If DBus's session bus is enabled, you can switch IMs also by fcitx5-remote command. e.g.) fcitx5-remote -s anthy

meta-inputmethod's People

Contributors

ashie avatar cosmo0920 avatar shiptux 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.