Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kisaragi-hiu/pangu.rkt
Paranoid text spacing in Racket
https://github.com/kisaragi-hiu/pangu.rkt
pangu racket
Last synced: 2 days ago
JSON representation
Paranoid text spacing in Racket
- Host: GitHub
- URL: https://github.com/kisaragi-hiu/pangu.rkt
- Owner: kisaragi-hiu
- License: mit
- Created: 2019-12-16T17:03:33.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-13T09:30:17.000Z (over 2 years ago)
- Last Synced: 2024-12-14T18:33:28.225Z (about 2 months ago)
- Topics: pangu, racket
- Language: Racket
- Size: 35.2 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pangu.rkt
Paranoid text spacing in Racket.
Nearly a direct port of the official Python version ([`vinta/pangu.py`](https://github.com/vinta/pangu.py)).
## Install
After cloning:
```
raco pkg install --name pangu
```## Usage
```racket
(require pangu)(spacing-text "當你凝視著bug,bug也凝視著你") ; => "當你凝視著 bug,bug 也凝視著你"
(with-output-to-file "/tmp/testing"
(lambda () (printf "與PM戰鬥的人, 應當小心自己不要成為PM")))
(spacing-file "/tmp/testing") ; => "與 PM 戰鬥的人,應當小心自己不要成為 PM"
```## License
MIT. See file `LICENSE`.