全部搜尋項
trixie  ] [  forky  ] [  sid  ]
[ 原始碼: unicode-rbnf  ]

套件:python3-unicode-rbnf(2.3.0-1)

python3-unicode-rbnf 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 unicode-rbnf

維護小組:

外部的資源:

相似套件:

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.

其他與 python3-unicode-rbnf 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 python3-unicode-rbnf

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 63。3 kB1,263。0 kB [檔案列表]