Skip to main content

This is a small project built for converting from number (roman or khmer) to text based.

Project description

Khmer Number to Text

A Python library for normalizing and converting Khmer numbers to text, with built-in support for translation.

Features

  • Number Normalization: Clean and standardize Khmer digit strings (១០ -> ដប់).

Installation

Install the package via pip:

pip install km-num2text

Quick Start

The num_normalize function cleans up input strings to ensure they are in a standard format (all numbers are converted to text-based).

from km_num2text import num_normalize

input = "ឆ្នាំ២០២៦ គឺជាឆ្នាំមួយនៅក្នុងសតវត្សទី២១។"

normalized = num_normalize(input)

# ឆ្នាំពីរពាន់ម្ភៃប្រាំមួយ គឺជាឆ្នាំមួយនៅក្នុងសតវត្សទីម្ភៃមួយ។

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

km_num2text-1.0.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

km_num2text-1.0.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file km_num2text-1.0.1.tar.gz.

File metadata

  • Download URL: km_num2text-1.0.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for km_num2text-1.0.1.tar.gz
Algorithm Hash digest
SHA256 19fd4c85102d3f318eff8bacd02c0ef39194cca326a7a6b1d1ee4d52a555bef4
MD5 d12c0ee2953e0f96ad86578081dda595
BLAKE2b-256 8ac820a4fe5def594a7338b225328c295ab8c94f9aa7b281e14da4d02e96f002

See more details on using hashes here.

File details

Details for the file km_num2text-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: km_num2text-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for km_num2text-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4352be91490f7d795166023356572103e91ef3f86e8b6d4c967005edf693daf
MD5 5165f0138e8c056711a30dd868fa8979
BLAKE2b-256 096372cb2a867781da8430e3a03495a8d3057b939ae3cc04279ffbdfe012ff25

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