Debian Codegraph @

docs/numbers.md

raw symbols SCIP
1 # Numbers
2
3 - [Language Options](#language-options)
4
5 ## Language Options
6
7 The following properties in `tr_languages.c` control how numbers behave for a
8 language:
9
10 tr->langopts.numbers
11 tr->langopts.numbers2
12
13 These controls how numbers are pronounced.
14
15 If `numbers` is set to `0`, numbers will not be pronounced.
16 Setting it to `1` (the default value) will enable number pronunciation using the dictionary rules.
17 For more control over number pronunciation, see the flags in `translate.h`.
18
19
20 tr->langopts.max_digits
21
22 This is the maximum number of digits that can be spoken by the language. If the
23 number of digits is larger than this, the number is spoken digit by digit.
24
25 tr->langopts.break_numbers
26
27 This controls how digits are grouped for speaking large numbers. The default is
28 to group into 3 digit groups (thousand, million, billion, trillion, etc.).
29
30 tr->langopts.thousands_sep
31
32 The character used to separate digit groups. The default is `,`.
33
34 tr->langopts.decimal_sep
35
36 The character used to separate the integer and decimal parts of a real number.
37 The default is `.`.
38