pangu

Crates.iopangu
lib.rspangu
version0.2.0
sourcesrc
created_at2017-05-07 06:56:56.125059
updated_at2018-05-26 16:34:02.778199
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/airt/pangu-rs
max_upload_size
id13525
size36,864
airt (airt)

documentation

https://docs.rs/pangu

README

pangu

Build Status Crates Version Rust Docs

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]
pangu = "0.2"

Example:

extern crate pangu;

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

License

Licensed under either of

at your option.

Commit count: 15

cargo fmt