File: test4.sor

package info (click to toggle)
libnumbertext 1.0.11-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,380 kB
  • sloc: python: 439; cpp: 395; java: 244; javascript: 108; makefile: 101; xml: 84; sh: 40
file content (11 lines) | stat: -rw-r--r-- 150 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
__numbertext__
^0 noll
1 ett
2 tvÄ
3 tre
(\d)000 $($1tusen)  # postprocessing

# convert triple consonant "ttt" to "tt"

(\D+t)t(t\D+) \1\2
(\D+) \1