Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
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: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
target
share
doc

Cargo.lock
207 changes: 27 additions & 180 deletions Cargo.lock

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

18 changes: 6 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@

[package]
name = "unicode-jp"
version = "0.4.0"
authors = ["gemmarx <[email protected]>"]
name = "g2-unicode-jp"
version = "0.4.1"
edition = "2021"
authors = ["gemmarx <[email protected]>", "G2 <[email protected]>"]

description = "A library to convert Japanese Half-width-kana[半角カナ] and Wide-alphanumeric[全角英数] into normal ones."
repository = "https://github.com/gemmarx/unicode-jp-rs"
repository = "https://github.com/G2-Games/unicode-jp-rs"
license = "MIT"
readme = "readme.md"
documentation = "https://gemmarx.github.io/unicode-jp-rs/doc/kana/index.html"
keywords = ["unicode", "japanese", "hankaku", "zenkaku", "kana"]

[lib]
name = "kana"
path = "src/kana.rs"

[[bin]]
name = "converchar-jp"
path = "src/main.rs"

[dependencies]
regex = "0.1.80"
clap = { version="2.33.0", features = ["yaml"] }
regex = "1.10"
lazy_static = "1.4.0"

4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Temporary Crate
____
This crate exists due to https://github.com/gemmarx/unicode-jp-rs appearing inactive, and updates needed. Please contact me and I will yank my versions from crates.io if needed.

Unicode-JP (Rust)
----
[![Build Status](https://travis-ci.org/gemmarx/unicode-jp-rs.svg?branch=master)](https://travis-ci.org/gemmarx/unicode-jp-rs)
Expand Down
2 changes: 1 addition & 1 deletion src/kana.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ fn replace_marks(vmark: &str, svmark: &str, src: &str) -> String {
static ref RE2: Regex = Regex::new(RE_SEMIVOICED_MARKS).unwrap();
}
let s_ = RE1.replace_all(src, vmark);
RE2.replace_all(&s_, svmark)
RE2.replace_all(&s_, svmark).to_string()
}

/// Convert all separated Voiced-sound-marks into half-width style "\u{FF9E}"
Expand Down
61 changes: 0 additions & 61 deletions src/main.rs

This file was deleted.