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 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)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

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

Hashes for cn2vn-0.1.1.tar.gz
Algorithm Hash digest
SHA256 89626b38f37a0f9711ed3cdcbc0bd2b8fc141ea5f3772db5ce163ca30f543e93
MD5 fe681a706f305b7866cd4de2a39f06b7
BLAKE2b-256 75a218548569667bdb405d332535911a532bef525f97ce88356c9cf416c9055c

See more details on using hashes here.

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

Hashes for cn2vn-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f4633d9e24d282632dedb7780cfaf0cd87eb197c01063ab0aca1f4bca6b2196b
MD5 ead057789e262987a6e72bd50938b41c
BLAKE2b-256 d1d547b67a8768efb125342d666e5fb4a5201261baa5b04ac01c7e0c4738425b

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