Pakiet: python3-unicode-rbnf (2.3.0-1)
Odnośniki dla python3-unicode-rbnf
Zasoby systemu Debian:
- Raporty o błędach
- Developer Information
- Dziennik zmian w systemie Debian
- Informacje nt. praw autorskich
- Śledzenie łatek systemu Debian
Pobieranie pakietu źródłowego unicode-rbnf:
Opiekunowie:
Zasoby zewnętrzne:
- Strona internetowa [github.com]
Podobne pakiety:
- python-babel-localedata
- python3-babel
- python-babel-doc
- golang-github-go-playground-universal-translator-dev
- golang-github-nicksnyder-go-i18n.v2-dev
- golang-github-go-playground-locales-dev
- libkf6i18nlocaledata6
- libkf5i18nlocaledata5
- php-giggsey-locale
- qml6-module-org-kde-i18n-localedata
- qml-module-org-kde-i18n-localedata
Rule-based number formatting using Unicode CLDR data
Provides a pure Python implementation of rule-based number formatting (RBNF) using the Unicode Common Locale Data Repository (CLDR). This library allows for the spelling out of numbers for a wide range of locales, supporting various rulesets depending on the locale.
The library supports literal text, quotient and remainder substitution, optional substitution, rule substitution, and special rules for negative numbers, improper fractions, NaN, and infinity.
Example usage:
>>> from unicode_rbnf import RbnfEngine >>> engine = RbnfEngine.for_language("en") >>> engine.format_number(1234) 'one thousand two hundred thirty-four'
>>> from unicode_rbnf import RbnfEngine, RulesetName >>> engine = RbnfEngine.for_language("en") >>> engine.format_number(1999, RulesetName.YEAR) 'nineteen ninety-nine' >>> engine.format_number(11, RulesetName.ORDINAL) 'eleventh'
This package is particularly useful for applications requiring accurate and locale-aware number spelling, such as text-to-speech systems, financial applications, and other linguistic tools.
Inne pakiety związane z python3-unicode-rbnf
|
|
|
|
-
- dep: python3
- Interaktywny, wysokopoziomowy i obiektowy język programowania (domyślna wersja Python 3)
Pobieranie python3-unicode-rbnf
Architektura | Rozmiar pakietu | Rozmiar po instalacji | Pliki |
---|---|---|---|
all | 63,3 KiB | 1 263,0 KiB | [lista plików] |