1 Star 0 Fork 1

vChewing / E04Input

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

fcitx5-e04input: 幹注音輸入法 for fcitx5

本專案基於小麥注音 for fxitx5 v2.2 版研發,改採威注音詞庫。目前還在完善中。

安裝方式

以下說明如何在 Ubuntu 21.10 以及 22.04 LTS 上面編譯安裝。

請先安裝 fcitx5, CMake, 以及以下開發用模組:

sudo apt install \
    fcitx5 libfcitx5core-dev libfcitx5config-dev libfcitx5utils-dev \
    cmake extra-cmake-modules gettext libfmt-dev

然後在本專案的 git 目錄下執行以下指令:

mkdir -p build
cd build
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug
make
sudo make install

# 初次安裝後,執行以下指令,幹注音 icon 就會出現在 fcitx5 選單中
sudo update-icon-caches /usr/share/icons/*

安裝後重新啟動 fcitx5,就會在設定中找到幹注音。

Ubuntu 20.04 LTS 上的編譯方式

Ubuntu 20.04 LTS 安裝的 fcitx5 版本老舊。如果要編譯,在使用 cmake 指令時,要加上 -DUSE_LEGACY_FCITX5_API=1 才能用舊式 API:

mkdir -p build
cd build
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DUSE_LEGACY_FCITX5_API=1
make

C++ 語法風格

本專案的程式碼大致採用 Google C++ style。我們已經設定好 .clang-format 檔案,請在發送 PR 前使用 clang-format 重整風格即可。

本專案跟 Google C++ style 不同的地方如下:

  • 我們不使用 snake_case 變數名稱。變數或參數一律使用 lowerCamelCase 風格。
  • 成員函數不使用 Foo::PascalCaseMethod()。成員函數一律使用 Foo::lowerCamelCaseMethod() 風格。

此外,src/Engine/ 目錄裡的程式碼,傳統上使用 WebKit style,未來繼續使用 WebKit 風格。我們也在該目錄放置了符合該風格的 .clang-format

我們也推薦使用 cpplint 檢查 C++ 常見問題。

MIT License Copyright (c) 2022 and onwards The OpenVanilla Project. All mods in this repo by (c) 2022 E04Input Project. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

[未完成] 幹注音输入法,针对 Linux 平台设计。在 FCITX5 版的小麦注音的基础上开发,但是删掉了小麦注音原厂词库与注音拼音并击引擎、换上了威注音的词库与铁恨注拼引擎。该输入法并非威注音输入法的 Linux 版。 展开 收起
C++ 等 4 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/vChewing/E04Input.git
git@gitee.com:vChewing/E04Input.git
vChewing
E04Input
E04Input
main

搜索帮助