#pangu #spacing

pangu

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)

3 releases (breaking)

Uses old Rust 2015

0.2.0 May 26, 2018
0.1.0 May 10, 2017
0.0.1 May 7, 2017
Download history 3/week @ 2022-12-01 12/week @ 2022-12-08 5/week @ 2022-12-15 8/week @ 2022-12-22 9/week @ 2022-12-29 7/week @ 2023-01-05 4/week @ 2023-01-12 9/week @ 2023-01-19 10/week @ 2023-01-26 12/week @ 2023-02-02 12/week @ 2023-02-09 15/week @ 2023-02-16 27/week @ 2023-02-23 17/week @ 2023-03-02 18/week @ 2023-03-09 10/week @ 2023-03-16

75 downloads per month
Used in notedown_fmt

MIT/Apache

11KB
51 lines

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.

Dependencies

~0.9–1.3MB
~37K SLoC