Skip to content

Commit e8f5cf3

Browse files
BonoJoviclaude
andcommitted
release: v3.0.1
- docs(readme): clarify build path — the built-in dictionary is bundled, so `cargo build --release` works without IPADIC; mecab-ipadic (CSV source) is only needed for regenerating the dictionary (maintainer-only). Simplify the build section to a single command and move generate-dict / generate-matrix to a dedicated regeneration section. - bump version to 3.0.1 across all version files Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 4a1a1e7 commit e8f5cf3

7 files changed

Lines changed: 24 additions & 16 deletions

File tree

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
- **Type**: Japanese AI Input Method for Linux (IBus + Fcitx5)
66
- **Purpose**: LLM-based intelligent Japanese input method
7-
- **Version**: v3.0.0
7+
- **Version**: v3.0.1
88
- **Branch**: `dev` for development, `main` for releases
99

1010
## Essential Rules

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bonolith"
3-
version = "3.0.0"
3+
version = "3.0.1"
44
edition = "2024"
55
authors = ["Yoshihiro NAKAHARA"]
66
description = "Japanese AI-powered Input Method - LLM-based intelligent Japanese input for Linux"

README.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
**An LLM-powered Japanese input method for Linux — IBus & Fcitx5**
66

7-
[![Version](https://img.shields.io/badge/Version-3.0.0-blue)](https://github.com/BonoJovi/Bonolith/releases)
7+
[![Version](https://img.shields.io/badge/Version-3.0.1-blue)](https://github.com/BonoJovi/Bonolith/releases)
88
[![Rust](https://img.shields.io/badge/Rust-2024-orange.svg)](https://www.rust-lang.org/)
99
[![License](https://img.shields.io/badge/License-MIT-green)](LICENSE)
1010
[![Ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/bonojovi)
@@ -100,22 +100,16 @@ Bonolith/
100100

101101
- [Rust](https://rustup.rs/)(最新 stable)
102102
- Linux + IBus または Fcitx5
103-
- IPADIC 辞書(`sudo apt install mecab-ipadic`
104103
- 辞書登録 / 編集ダイアログ(GTK3): `sudo apt install python3-gi gir1.2-gtk-3.0 xdotool`
105104
- Wayland セッションでも `GDK_BACKEND=x11` で XWayland 経由で起動するため、xdotool が動作する Xorg / XWayland が必要
106105
- LLM 用(オプション): llama-server + Qwen2.5-1.5B Q4 モデル(約 1.1GB)
107106

107+
> **辞書はリポジトリに同梱済み**です。組み込み辞書 (`builtin_dict.rs`) は生成済みのものがチェックインされているため、ビルドに IPADIC のインストールは不要です(辞書を自前で再生成する場合のみ必要 → [辞書の再生成](#辞書の再生成メンテナ向け任意))。
108+
108109
## ビルド
109110

110111
```bash
111-
# 辞書生成(IPADIC から組み込み辞書を生成)
112-
cargo run --bin generate-dict
113-
114-
# 品詞接続コスト表を再生成(IPADIC matrix.def から 11×11 集約、任意)
115-
# 実行しない場合はチェックイン済みのハンドチューニング版が使われる
116-
cargo run --bin generate-matrix --release > src/core/dictionary/connection_cost.rs
117-
118-
# リリースビルド
112+
# リリースビルド — 組み込み辞書は同梱済みなので、これだけで完了
119113
cargo build --release
120114
```
121115

@@ -262,6 +256,20 @@ Fcitx5 設定 → 入力メソッド → 「+」 → Bonolith を検索 → 追
262256

263257
IME フレームワークを Fcitx5 にしたまま、その自動起動を OFF にして Ubuntu を再起動すると、GNOME のデフォルトである IBus が起動し、入力ソース一覧から Bonolith が消えて再登録が必要になることがあります。これは GNOME の入力ソース管理(`org.gnome.desktop.input-sources`)が「現在アクティブな IME フレームワーク」前提で動くためで、Bonolith 側のバグではありません。`im-config` で選んだフレームワークと実際に自動起動するフレームワークを一致させておけば回避できます。
264258

259+
## 辞書の再生成(メンテナ向け・任意)
260+
261+
組み込み辞書 (`builtin_dict.rs`) と品詞接続コスト表 (`connection_cost.rs`) は生成済みのものがリポジトリに同梱されているため、**通常のビルドでは再生成は不要**です。辞書ソースを更新したい場合のみ実行します。
262+
263+
再生成には IPADIC の **CSV ソース**が必要です。apt の `mecab-ipadic` パッケージはコンパイル済み辞書(`/var/lib/mecab/...`)のため**別物**で、CSV は含まれません。[IPADIC のソース配布](https://github.com/taku910/mecab)`mecab-ipadic-2.7.0-*.tar.gz`)から CSV を取得し、`src/bin/generate_dict.rs``IPADIC_DIR`(既定 `/usr/share/mecab/dic/ipadic`)に配置してください。
264+
265+
```bash
266+
# 組み込み辞書を再生成(IPADIC CSV → builtin_dict.rs)
267+
cargo run --bin generate-dict
268+
269+
# 品詞接続コスト表を再生成(IPADIC matrix.def から 11×11 集約)
270+
cargo run --bin generate-matrix --release > src/core/dictionary/connection_cost.rs
271+
```
272+
265273
## テスト
266274

267275
```bash

data/bonolith.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<name>org.freedesktop.IBus.Bonolith</name>
44
<description>Bonolith - Japanese AI-powered Input Method</description>
55
<exec>/usr/bin/ibus-engine-bonolith</exec>
6-
<version>3.0.0</version>
6+
<version>3.0.1</version>
77
<author>Yoshihiro NAKAHARA</author>
88
<license>MIT</license>
99
<homepage>https://github.com/BonoJovi/Bonolith</homepage>

fcitx5/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.16)
2-
project(fcitx5-bonolith VERSION 3.0.0)
2+
project(fcitx5-bonolith VERSION 3.0.1)
33

44
set(CMAKE_CXX_STANDARD 17)
55

fcitx5/bonolith-addon.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ Name[ja]=Bonolith
44
Type=SharedLibrary
55
Library=fcitx5-bonolith
66
Category=InputMethod
7-
Version=3.0.0
7+
Version=3.0.1
88
OnDemand=False

0 commit comments

Comments
 (0)