| Crates.io | pangu2 |
| lib.rs | pangu2 |
| version | 0.2.0 |
| created_at | 2023-06-07 10:20:49.857573+00 |
| updated_at | 2025-04-22 10:24:59.61775+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/attila-lin/pangu2 |
| max_upload_size | |
| id | 884643 |
| size | 42,967 |
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).
Add to Cargo.toml:
[dependencies]
pangu2 = "0.2"
Example:
fn main() {
assert_eq!(
pangu2::spacing("新八的構造成分有95%是眼鏡、3%是水、2%是垃圾"),
"新八的構造成分有 95% 是眼鏡、3% 是水、2% 是垃圾"
);
}
Licensed under either of
at your option.