This commit is contained in:
tuna2134
2024-09-27 10:30:33 +00:00
parent 6f388052ae
commit 04c21aa97c
3 changed files with 3 additions and 2 deletions

2
Cargo.lock generated
View File

@@ -1833,7 +1833,7 @@ dependencies = [
[[package]]
name = "sbv2_bindings"
version = "0.1.1"
version = "0.2.0-alpha1"
dependencies = [
"anyhow",
"ndarray",

View File

@@ -1,6 +1,6 @@
[package]
name = "sbv2_bindings"
version = "0.1.1"
version = "0.2.0-alpha1"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@@ -230,6 +230,7 @@ impl JTalkProcess {
)) {
return Ok(text.chars().map(|x| x.to_string()).collect());
}
println!("text: {:?}", text);
if !KATAKANA_PATTERN.is_match(&text) {
return Err(Error::ValueError(format!(
"Input must be katakana only: {}",