Debian Codegraph @

data/Roman.sor

raw
1 # Roman numbers
2 1:(.)(.)(.) \1
3 2:(.)(.)(.) \1\1
4 3:(.)(.)(.) \1\1\1
5 4:(.)(.)(.) \1\2
6 5:(.)(.)(.) \2
7 6:(.)(.)(.) \2\1
8 7:(.)(.)(.) \2\1\1
9 8:(.)(.)(.) \2\1\1\1
10 9:(.)(.)(.) \1\3
11
12 (\d) $(\1:IVX)
13 (\d)(\d) $(\1:XLC)$2
14 (\d)(\d\d) $(\1:CDM)$2
15
16 ([123])(\d\d\d) $(\1:Mxx)$2 # [:Roman-large:]
17 (\d+)(\d\d\d) \($1\)$2 # [:Roman-large:]
18
19 ([123])(\d\d\d) $(\1:M--)$2
20 ([123]\d{3})(\d\d\d) $(overline $1)$2 # overline: ×1000
21 (\d{1,3})(\d\d\d) $(overline $1)$2 # overline: ×1000
22 ([123]\d{3})(\d{5}) \|$(overline $1)\|$2 # bar: ×100
23 (\d{1,3})(\d{5}) \|$(overline $1)\|$2
24 (\d+) \1
25
26 == overline ==
27
28 (.*)(.) $(overline \1)\2̅ # recursive overline
29
30 == historical ==
31
32 (\d)(\d\d\d) $(\1:ↀↁↂ)$2
33 ([123])(\d\d\d\d) $(\1:ↂ--)$(historical \2)
34 (.*) $1
35
36 == help ==
37
38 help Modules\nRoman-large (language code): multiple parenthesized form\nRoman: overline (×1000) with bar (×100)\nFunctions: historical – with special Unicode characters for 1000, 5000 and 10000