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).
Go version: pangu.go
Java version: pangu.java
JavaScript version: pangu.js
Node.js version: pangu.node
Python version: pangu.py
Ruby version: pangu.rb
Installation
$ pip install pangu
Usage
>>> import pangu
>>> pangu.spacing(u'所以,請問Jackey的鼻子有幾個?3.14個')
u'所以, 請問 Jackey 的鼻子有幾個? 3.14 個'
>>> pangu.spacing(u'新八的構造成分有95%是眼鏡、3%是水、2%是垃圾')
u'新八的構造成分有 95% 是眼鏡、3% 是水、2% 是垃圾'
>>> pangu.spacing(u'新阿姆斯特朗炫風噴射阿姆斯特朗砲')
u'新阿姆斯特朗炫風噴射阿姆斯特朗砲'
History
2.5.6.3 (2015-05-18)
Add an alias to spacing(): text_spacing()
Fix unicode issue in Python 2.x
2.5.6.2 (2015-05-17)
Fix setup.py
2.5.6 (2015-05-17)
Synchronize version number with paranoid-auto-spacing
Improve Paranoid Text Spacing algorithm
1.0.0 (2014-02-12)
Hello World
Metadata
Release files for pangu 2.5.6.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pangu-2.5.6.3.tar.gz | 4.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pangu-2.5.6.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 11.3 kB
Release files / pangu-2.5.6.3.tar.gz
| Download URL | pangu-2.5.6.3.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fe0d4ef7c204ed930ab00cec25506f94935395d4b3450d2f2008c3de6abdc5f
|
|
BLAKE2b-256 checksum How to use checksums |
8d75dacfb3b5a015a33fd6a37d51e72f4956f9c0598e5b66e6903d3368ea5b2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pangu-2.5.6.3-py2.py3-none-any.whl
| Download URL | pangu-2.5.6.3-py2.py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2a92d738e455829c99946d0c32df7e66de32b2f442d09500b5df0a3084b3aeb8
|
|
BLAKE2b-256 checksum How to use checksums |
6037eef12ae70281d85628b437f28d4ff28a6a90677892a42d42efe92baf661a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pangu 2.5.6.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.