pangu2

Crates.iopangu2
lib.rspangu2
version0.1.1
sourcesrc
created_at2023-06-07 10:20:49.857573
updated_at2024-01-15 09:24:32.344941
descriptionParanoid text spacing for good readability, to automatically insert whitespace between CJK (Chinese, Japanese, Korean) and half-width characters (alphabetical letters, numerical digits and symbols).
homepage
repositoryhttps://github.com/attila-lin/pangu2
max_upload_size
id884643
size39,951
Yiyu Lin (attila-lin)

documentation

https://docs.rs/pangu2

README

pangu2

Build Status Crates Version Rust Docs

The fork of pangu-rs.

Paranoid text spacing for good readability, to automatically insert whitespace between CJK (Chinese, Japanese, Korean) and half-width characters (alphabetical letters, numerical digits and symbols).

Usage

Add to Cargo.toml:

[dependencies]
pangu2 = "0.1"

Example:

fn main() {
  assert_eq!(
    pangu2::spacing("新八的構造成分有95%是眼鏡、3%是水、2%是垃圾"),
    "新八的構造成分有 95% 是眼鏡、3% 是水、2% 是垃圾"
  );
}

License

Licensed under either of

at your option.

Commit count: 16

cargo fmt