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 convert_chinese_to_vietnamese
chinese_text = "王小明"
vietnamese = convert_chinese_to_vietnamese(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.1.1.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.1.1-py3-none-any.whl
(75.3 kB
view details)
File details
Details for the file cn2vn-0.1.1.tar.gz.
File metadata
- Download URL: cn2vn-0.1.1.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 |
89626b38f37a0f9711ed3cdcbc0bd2b8fc141ea5f3772db5ce163ca30f543e93
|
|
| MD5 |
fe681a706f305b7866cd4de2a39f06b7
|
|
| BLAKE2b-256 |
75a218548569667bdb405d332535911a532bef525f97ce88356c9cf416c9055c
|
File details
Details for the file cn2vn-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cn2vn-0.1.1-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 |
f4633d9e24d282632dedb7780cfaf0cd87eb197c01063ab0aca1f4bca6b2196b
|
|
| MD5 |
ead057789e262987a6e72bd50938b41c
|
|
| BLAKE2b-256 |
d1d547b67a8768efb125342d666e5fb4a5201261baa5b04ac01c7e0c4738425b
|