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-0.1.3.tar.gz (2.7 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-0.1.3-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for km_num2text-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3558717611c62424b4aa473124455beaa319ba85cea195f0723286e3b2be4e23
MD5 23aba787caedde8de0a4883c39aa1421
BLAKE2b-256 dee686f7d8e973b38b5adc4e01d0007d6504f551ff616795eff45f80cadb2c01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: km_num2text-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.3 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-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 81212513883e2bffbc654fde3e8cee4363052aa0d71bc976cc6e6c8c4719da11
MD5 b3d1235e1ae4bb3503b74c57ebfe51de
BLAKE2b-256 7671e601525bbb0b7ff0a8066586fc7daf615628ed051ab87880ea64c1f3114e

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