diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-11-01 00:45:03 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-11-06 00:46:26 +0100 |
commit | ae25cb167bd95db35f73eade278f5f1e8a12c48b (patch) | |
tree | dba8c45d5409f9312d566eae75bac1656cfb143d /module/text/numbers/sv.scm | |
parent | Add tests for (text markup). (diff) | |
download | calp-ae25cb167bd95db35f73eade278f5f1e8a12c48b.tar.gz calp-ae25cb167bd95db35f73eade278f5f1e8a12c48b.tar.xz |
Forward extra kw args to number->string-{ordinal,cardinal}.
Diffstat (limited to 'module/text/numbers/sv.scm')
-rw-r--r-- | module/text/numbers/sv.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/text/numbers/sv.scm b/module/text/numbers/sv.scm index 1760f622..51a9c4c6 100644 --- a/module/text/numbers/sv.scm +++ b/module/text/numbers/sv.scm @@ -20,7 +20,7 @@ [(<= 60 e 65) "dec"] )) -(define (number->string-cardinal n) +(define (number->string-cardinal n . _) (cond [(< n 0) (string-append "minus " (number->string-cardinal (- n)))] [(= n 0) "noll"] [(= n 1) "ett"] @@ -93,7 +93,7 @@ (number->string n))])) (define* (number->string-ordinal - n key: a-form?) + n key: a-form? allow-other-keys:) (define a-string (if a-form? "a" "e")) (cond [(>= -3 n) (format #f "~a sista" (number->string-ordinal (- n)))] [(= -2 n) "näst sista"] |