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 .

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+
  • pyyaml

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.0.tar.gz (67.9 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.1.0-py3-none-any.whl (67.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cn2vn-0.1.0.tar.gz
Algorithm Hash digest
SHA256 90f16004a73872368354c460c326682b428f306a5333708a0c70dc26ba9a05df
MD5 87895be38b58cd9747f88719fa4b5228
BLAKE2b-256 626642817f0ebbd05cb89d8ae7c76f87ab4721852d85731f415a20b2cab86675

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cn2vn-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 67.1 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 05a7c49edba6992286b9739ea0ad8c9f14061511ed155a7fce5459d444aaee53
MD5 c69aa8fe20f5edceafd798370ca2b767
BLAKE2b-256 da610c0fc357f0723a3c8f83aa2b397a820c7cde1099409b72c60e87233b7397

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