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

Skip to content

airtz/pangu-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pangu

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.3"

Example:

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

Authors

  • @airt
  • @shenjackyuanjie

License

Licensed under either of

at your option.

About

paranoid text spacing

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
license-apache
MIT
license-mit

Stars

7 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages