#kanji #kana #version #ime #github #skk #henkan

cskk

C ABIから使う事を目的とした SKK(Simple Kana Kanji henkan)方式のかな漢字変換ライブラリ

16 releases (4 stable)

3.1.1 Mar 5, 2024
2.0.0 Dec 2, 2022
1.0.1 Oct 30, 2022
0.10.1 Sep 23, 2022
0.3.0 May 15, 2021

#188 in Text processing

Download history 5/week @ 2024-02-18 7/week @ 2024-02-25 141/week @ 2024-03-03 11/week @ 2024-03-10 49/week @ 2024-03-31

66 downloads per month

GPL-3.0-or-later

370KB
7K SLoC

cskk logo

LibCSKK

Stable Rust version build status: Build Status

Beta and Nightly Rust version build status: Build Status (Beta or Nightly)

English version

Cobalt SKK ライブラリ.

CSKK はSKK(Simple Kana Kanji 変換)用ライブラリです。 CSKKはSKKと外延的に同値であるため、こう名付けられました。

Fcitx5用: fcitx5-cskk

説明書: cskk-docs

ロゴ・アイコン類: cskk-icons

参考

必要ライブラリ類

  • libxkbcommon

Ubuntu等では以下のコマンドでインストール

    sudo apt install libxkbcommon-dev
  • cbindgen
    cargo install --force cbindgen
  • cargo-c
    cargo install --force cargo-c

インストール方法

root権限がある場合、以下を実行する。 これはcargo cbuild --releaseでtarget/{arch}/release/以下に生成されたファイルを適切なシステムのディレクトリに、そしてassets/以下のファイルを適切なデータディレクトリのlibcskk/以下にインストールする。

    cargo cinstall --release

標準的なパス以外にインストールする場合は、以下のような引数を与える。 詳細は cargo-c を参照のこと。

    cargo cinstall --release --prefix="/tmp" --datadir="$HOME/.local/share"
  • prefix: libdir, includedir, pkgconfigdir, datarootdir 共通接頭部分。デフォルトは '/usr/local'
  • libdir: ライブラリインストール先。デフォルトは '/lib'
  • includedir: ヘッダファイルイストール先。デフォルトは '/include'
  • pkgconfigdir: pkg-config用の.pcファイルインストール先。デフォルトは '/lib/pkgconfig'
  • datarootdir: データファイル(cskkプロジェクトではassetsディレクトリ下)のインストール先。デフォルトは'share'
  • datadir: datarootdirを上書きするデータファイルのインストール先。prefixを無視してdataのインストール先を指定できる。デフォルトは指定なし(つまりdatarootdirを用いる。)

開発状況

基本機能・DDSKKの機能

  • ひらがな入力
  • カタカナ入力・カタカナモード
  • カタカナ入力・カタカナモード
  • Basic 漢字変換
  • static dictionary
  • user dictionary
    • ddskk compatible since v0.11.0
  • 接頭辞・接尾辞変換
  • 数値変換
  • auto-start-henkan
  • 実装見込が現在ないもの
    • Kuten 変換
    • 今日の日付入力
    • 異字体変換
    • SKK辞書サーバー対応
    • 外部辞書

ueno/libskk の機能

  • 句読点設定
  • AZIK rule
  • Nicola rule

C FFI + IME plugin

開発環境・デプロイ環境

  • github projects board や issue にこれらのリストを移す
  • changelog

著作権表示

Copyright (C) 2018 Naoaki Iwakiri

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Dependencies

~8–19MB
~423K SLoC