Skip to main content

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.1.tar.gz (69.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cn2vn-0.2.1-py3-none-any.whl (75.3 kB view details)

Uploaded Python 3

File details

Details for the file cn2vn-0.2.1.tar.gz.

File metadata

  • Download URL: cn2vn-0.2.1.tar.gz
  • Upload date:
  • Size: 69.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for cn2vn-0.2.1.tar.gz
Algorithm Hash digest
SHA256 2ed43e1a13f1644acc994d8344a2ffd0aa7b2a6626ac076f7ccf22e81c5493b5
MD5 2df683f4ea890fb92fee4e87978426b4
BLAKE2b-256 cc3aae8acb565a8f20fc3e421e2273941abc9f1298fdd4451139561f8a0a1e75

See more details on using hashes here.

File details

Details for the file cn2vn-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: cn2vn-0.2.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

Hashes for cn2vn-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 865f1b3f9b670a88918fadaa1377179d522385fa58f703b78759a4c67e4ccd37
MD5 82b49abb742b85af3a2e97c5f3ba2d80
BLAKE2b-256 4d64fecfc046904c1775f4a1743cda84ad3de4d4bcaa4d0c8f23d6e922abada8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page