Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.24.0...3.31.6)
project(libchewing LANGUAGES C)

set(CMAKE_PROJECT_VERSION 0.11.0-alpha.7)
set(CMAKE_PROJECT_VERSION 0.11.0)

find_package(Git)
if(Git_FOUND)
Expand Down
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "chewing"
description = "The Chewing (酷音) intelligent Zhuyin input method."
documentation = "https://docs.rs/chewing"
license = "LGPL-2.1-or-later"
version = "0.11.0-alpha.7"
version = "0.11.0"
rust-version = "1.88.0"
edition = "2024"

Expand Down
8 changes: 5 additions & 3 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
What's New in libchewing (unreleased)
What's New in libchewing 0.11.0 (January 10, 2026)
---------------------------------------------------------

* Features
- cli: Now outputs and reads dictionary metadata in source file
- cli: Detects mismatched phrase word count and syllable count
- cli: Ignores empty line or line starts with # when processing dictionary
- editor: Support optional sorting candidates by frequency. Previously the
candidates are always sorted by their order in the dictionary.

Expand Down Expand Up @@ -32,8 +33,8 @@ What's New in libchewing (unreleased)
- rust: new sqlite-bundled feature can be used to build with bundled sqlite
to simplify the build configuration on Windows
- cli: will try to migrate to new schema when dumping chewing.sqlite3 file
- Use less heuristic when calculating phrase segmentation score
- Dictionary data are built directly from the libchewing-data repository
- Use less heuristic when calculating phrase segmentation score.
- Reimplement scoring algorithm to use conditional probability.
- cli: init-database will no longer normalize the frequency of single word
phrase to zero.
- autolearn: new phrases with break words inside will be learned both with
Expand All @@ -45,6 +46,7 @@ What's New in libchewing (unreleased)

* Dictionary
- Default symbols.dat now includes commonly used emojis.
- Dictionary data are built directly from the libchewing-data repository

* Build
- Bump MSRV to 1.88
Expand Down
4 changes: 2 additions & 2 deletions capi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
name = "chewing_capi"
description = "The Chewing (酷音) intelligent Zhuyin input method."
license = "LGPL-2.1-or-later"
version = "0.11.0-alpha.7"
version = "0.11.0"
rust-version = "1.88"
edition = "2024"

[lib]
crate-type = ["rlib", "staticlib"]

[dependencies]
chewing = { version = "0.11.0-alpha.7", path = ".." }
chewing = { version = "0.11.0", path = ".." }
env_logger = { workspace = true }
log = { workspace = true }

Expand Down
12 changes: 6 additions & 6 deletions capi/include/chewing.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ struct ChewingContext *chewing_new2(const char *syspath,
struct ChewingContext *chewing_new3(const char *syspath,
const char *userpath,
const char *enabled_dicts,
void (*logger)(void *data, int level, const char *fmt, ...),
void *loggerdata);
void (*logger_fn)(void *data, int level, const char *fmt, ...),
void *logger_data);

/**
* Returns the default comma separated dictionary names.
Expand Down Expand Up @@ -785,10 +785,10 @@ int chewing_get_phoneSeqLen(const struct ChewingContext *ctx);
*
* This function should be called with valid pointers.
*/
void chewing_set_logger(struct ChewingContext *ctx, void (*logger)(void *data,
int level,
const char *fmt,
...), void *user_data);
void chewing_set_logger(struct ChewingContext *ctx, void (*logger_fn)(void *data,
int level,
const char *fmt,
...), void *logger_data);

/**
* Starts a userphrase enumeration.
Expand Down
4 changes: 2 additions & 2 deletions capi/src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub const CHEWING_VERSION_PATCH: c_int = 0;

#[unsafe(no_mangle)]
pub extern "C" fn chewing_version() -> *const c_char {
c"0.11.0-alpha.7".as_ptr()
c"0.11.0".as_ptr()
}

#[unsafe(no_mangle)]
Expand All @@ -26,5 +26,5 @@ pub extern "C" fn chewing_version_patch() -> c_int {

#[unsafe(no_mangle)]
pub extern "C" fn chewing_version_extra() -> *const c_char {
c"alpha.7".as_ptr()
c"".as_ptr()
}
4 changes: 2 additions & 2 deletions doc/chewing-cli.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.TH chewing-cli 1 "chewing-cli 0.11.0-alpha.7"
.TH chewing-cli 1 "chewing-cli 0.11.0"
.SH NAME
chewing\-cli \- Tools of the Chewing (酷音) intelligent Zhuyin input method.
.SH SYNOPSIS
Expand All @@ -25,4 +25,4 @@ Display information about the dictionary
chewing\-cli\-dump(1)
Dump the dictionary entries into tsi.src formatted stream
.SH VERSION
v0.11.0\-alpha.7
v0.11.0
4 changes: 2 additions & 2 deletions fuzzer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
chewing = { version = "0.11.0-alpha.7", path = ".." }
chewing_capi = { version = "0.11.0-alpha.7", path = "../capi" }
chewing = { version = "0.11.0", path = ".." }
chewing_capi = { version = "0.11.0", path = "../capi" }
env_logger = { workspace = true }
log = { workspace = true }
6 changes: 5 additions & 1 deletion tests/test-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,11 @@ void test_runtime_version()

ok(version != NULL, "chewing_version returns a version string");

sprintf(buf, "%d.%d.%d-%s", major, minor, patch, extra);
sprintf(buf, "%d.%d.%d", major, minor, patch);
if (strlen(extra) != 0) {
strcat(buf, "-");
strcat(buf, extra);
}
ok(strcmp(buf, version) == 0, "chewing_version can be created from components");
}

Expand Down
2 changes: 1 addition & 1 deletion tests/testhelper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2024"
crate-type = ["cdylib"]

[dependencies]
chewing = { version = "0.11.0-alpha.7", path = "../.." }
chewing = { version = "0.11.0", path = "../.." }

[features]
sqlite = ["chewing/sqlite"]
4 changes: 2 additions & 2 deletions tools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
name = "chewing-cli"
description = "Tools of the Chewing (酷音) intelligent Zhuyin input method."
license = "LGPL-2.1-or-later"
version = "0.11.0-alpha.7"
version = "0.11.0"
edition = "2024"

[dependencies]
anyhow = "1.0.0"
chewing = { version = "0.11.0-alpha.7", path = ".." }
chewing = { version = "0.11.0", path = ".." }
clap = { version = "4.4.18", features = ["derive"] }

[dependencies.clap_mangen]
Expand Down
Loading