A library to convert Chinese text to Vietnamese using Sino-Vietnamese readings
Project description
Cn2vn
A Python library to convert Chinese text to Vietnamese using Sino-Vietnamese readings.
Installation
pip install cn2vn
Usage
from cn2vn import cn2vn
chinese_text = "王小明"
vietnamese = cn2vn(chinese_text)
print(vietnamese) # Output: Vương Tiểu Minh (example)
Features
- Converts Chinese characters to their Vietnamese equivalents based on Sino-Vietnamese pronunciation.
- Handles unknown characters by leaving them unchanged.
Requirements
- Python 3.6+
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cn2vn-0.2.0.tar.gz
(69.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
cn2vn-0.2.0-py3-none-any.whl
(75.3 kB
view details)
File details
Details for the file cn2vn-0.2.0.tar.gz.
File metadata
- Download URL: cn2vn-0.2.0.tar.gz
- Upload date:
- Size: 69.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00478b7a80d8bc257e36640abe3f09a301c30192c4728e7aa1f67b5180239be5
|
|
| MD5 |
8914e23400fcc9a077bf4525d0d3e4dd
|
|
| BLAKE2b-256 |
90a948b55c765fe08d02de2c582fafbc51f251cddadd33914d89339e3df32efe
|
File details
Details for the file cn2vn-0.2.0-py3-none-any.whl.
File metadata
- Download URL: cn2vn-0.2.0-py3-none-any.whl
- Upload date:
- Size: 75.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17f6f83bc8e51a049a3637b2ad0f8165520d809bd52c052d98257ee0082b260d
|
|
| MD5 |
e9e48eb9bfccfb52741a7694a00e7b62
|
|
| BLAKE2b-256 |
18d344d86c58e00521adf8f1786420087b1c3b14aa922940e936cf9678fac714
|