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

Uploaded Python 3

File details

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

File metadata

  • Download URL: km_num2text-1.0.0.tar.gz
  • Upload date:
  • Size: 4.2 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.0.tar.gz
Algorithm Hash digest
SHA256 8ad5180dea03f8610228dce79c84ec105bf1f4aeb65aecdc322ec54c694c904a
MD5 500712337807bfc748f2401bcc036cc3
BLAKE2b-256 1f3a134ac85c9e8088d0b96556e2f6dcf20bb6b873a31a11dad19dbec40f076f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: km_num2text-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1480c98ebaa14c72a08972a05a78ced52601be2683e518f380e96f3a37d63c09
MD5 07be5fa26617eb0ae19c75d90305f8b7
BLAKE2b-256 162373e1f94f1e9617b865d23dcccb02c2eaf615883fba53c1720a55342199e8

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