| Crates.io | pangu |
| lib.rs | pangu |
| version | 0.3.0 |
| created_at | 2017-05-07 06:56:56.125059+00 |
| updated_at | 2025-08-04 08:45:57.36352+00 |
| description | 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). |
| homepage | |
| repository | https://github.com/airt/pangu-rs |
| max_upload_size | |
| id | 13525 |
| size | 39,747 |
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).
Add to Cargo.toml:
[dependencies]
pangu = "0.3"
Example:
fn main() {
assert_eq!(
pangu::spacing("新八的構造成分有95%是眼鏡、3%是水、2%是垃圾"),
"新八的構造成分有 95% 是眼鏡、3% 是水、2% 是垃圾"
);
}
Licensed under either of
at your option.