Skip to content

Commit 201f599

Browse files
committed
Fix symbol transform order
1 parent ca0cea4 commit 201f599

File tree

6 files changed

+13
-6
lines changed

6 files changed

+13
-6
lines changed

ainu-utils-js/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ainu-utils-js"
3-
version = "0.3.1"
3+
version = "0.3.2"
44
edition = "2021"
55
description = "A collection of utilities for the Ainu language"
66
license = "MIT"

ainu-utils-python/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ainu-utils-python"
3-
version = "0.3.1"
3+
version = "0.3.2"
44
edition = "2021"
55

66
[lib]

ainu-utils-python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ features = ["pyo3/extension-module"]
99
name = "ainu-utils"
1010
description = "A collection of utility for with the Ainu language"
1111
requires-python = ">=3.8"
12-
version = "0.3.1"
12+
version = "0.3.2"
1313
license = "MIT"
1414

1515
[project.optional-dependencies]

ainu-utils/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ainu-utils"
3-
version = "0.3.1"
3+
version = "0.3.2"
44
edition = "2021"
55
description = "A collection of utilities for the Ainu language"
66
license = "MIT"

ainu-utils/src/kana/kana.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pub fn to_kana(input: &str) -> String {
1515

1616
input = normalize(input);
1717
input = link(input);
18+
input = symbols(input);
1819

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

@@ -74,7 +75,5 @@ pub fn to_kana(input: &str) -> String {
7475
}
7576
}
7677

77-
kana = symbols(kana);
78-
7978
kana
8079
}

ainu-utils/src/kana/kana_test.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,11 @@ fn test_special_mm() {
155155
fn test_symbols() {
156156
assert_eq!(to_kana("“pirka” sekor a=ye"), "「ピㇼカ」 セコㇿ アイェ")
157157
}
158+
159+
#[test]
160+
fn test_k_prefix() {
161+
assert_eq!(
162+
to_kana("irankarapte. kani anak IMO k=e easkay kur ku=ne."),
163+
"イランカラㇷ゚テ。 カニ アナㇰ イモ ケ エアㇱカイ クㇽ クネ。"
164+
)
165+
}

0 commit comments

Comments
 (0)