File: control

package info (click to toggle)
unicode-rbnf 2.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,600 kB
  • sloc: xml: 17,487; python: 1,001; makefile: 2
file content (52 lines) | stat: -rw-r--r-- 1,850 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Source: unicode-rbnf
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Uploaders:
 Edward Betts <edward@4angle.com>,
Section: python
Priority: optional
Build-Depends:
 debhelper-compat (= 13),
 dh-sequence-python3,
 pybuild-plugin-pyproject,
 python3-all,
 python3-setuptools,
Build-Depends-Indep:
 python3-pytest <!nocheck>,
Standards-Version: 4.7.2
Homepage: https://github.com/rhasspy/unicode-rbnf
Vcs-Browser: https://salsa.debian.org/python-team/packages/unicode-rbnf
Vcs-Git: https://salsa.debian.org/python-team/packages/unicode-rbnf.git
Testsuite: autopkgtest-pkg-pybuild

Package: python3-unicode-rbnf
Architecture: all
Depends:
 ${misc:Depends},
 ${python3:Depends},
Description: 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.