Format text is literal; class runs are {digits(n)} {upper(n)} {lower(n)}; a string is a format

This commit is contained in:
2026-09-02 12:37:21 +02:00
parent 99d8aa0fb7
commit ff4b243148
29 changed files with 308 additions and 267 deletions
+7 -7
View File
@@ -2,15 +2,15 @@
{
"format": "${amt}.{cents}",
"amt": [
{ "format": "1", "weight": 2 },
{ "format": "10", "weight": 4 },
{ "format": "100", "weight": 3 },
{ "format": "1#,000", "weight": 1 },
{ "format": "10#,000", "weight": 0.4 },
{ "format": "100#,000", "weight": 0.1 }
{ "format": "{int(1,9)}", "weight": 2 },
{ "format": "{int(10,99)}", "weight": 4 },
{ "format": "{int(100,999)}", "weight": 3 },
{ "format": "{int(1,9)},{digits(3)}", "weight": 1 },
{ "format": "{int(10,99)},{digits(3)}", "weight": 0.4 },
{ "format": "{int(100,999)},{digits(3)}", "weight": 0.1 }
],
"cents": [
{ "format": "00", "weight": 3 },
{ "format": "{digits(2)}", "weight": 3 },
"49",
"95",
"99"