Skip to content

Commit

Permalink
Fix symbol transform order
Browse files Browse the repository at this point in the history
  • Loading branch information
neet committed Aug 20, 2024
1 parent ca0cea4 commit 201f599
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ainu-utils-js/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ainu-utils-js"
version = "0.3.1"
version = "0.3.2"
edition = "2021"
description = "A collection of utilities for the Ainu language"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion ainu-utils-python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ainu-utils-python"
version = "0.3.1"
version = "0.3.2"
edition = "2021"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion ainu-utils-python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ features = ["pyo3/extension-module"]
name = "ainu-utils"
description = "A collection of utility for with the Ainu language"
requires-python = ">=3.8"
version = "0.3.1"
version = "0.3.2"
license = "MIT"

[project.optional-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion ainu-utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ainu-utils"
version = "0.3.1"
version = "0.3.2"
edition = "2021"
description = "A collection of utilities for the Ainu language"
license = "MIT"
Expand Down
3 changes: 1 addition & 2 deletions ainu-utils/src/kana/kana.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pub fn to_kana(input: &str) -> String {

input = normalize(input);
input = link(input);
input = symbols(input);

let chars: Vec<char> = input.chars().collect();

Expand Down Expand Up @@ -74,7 +75,5 @@ pub fn to_kana(input: &str) -> String {
}
}

kana = symbols(kana);

kana
}
8 changes: 8 additions & 0 deletions ainu-utils/src/kana/kana_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,11 @@ fn test_special_mm() {
fn test_symbols() {
assert_eq!(to_kana("“pirka” sekor a=ye"), "「ピㇼカ」 セコㇿ アイェ")
}

#[test]
fn test_k_prefix() {
assert_eq!(
to_kana("irankarapte. kani anak IMO k=e easkay kur ku=ne."),
"イランカラㇷ゚テ。 カニ アナㇰ イモ ケ エアㇱカイ クㇽ クネ。"
)
}

0 comments on commit 201f599

Please sign in to comment.