Roman.sor 945 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. (\d) $(\1:IVX)
  12. (\d)(\d) $(\1:XLC)$2
  13. (\d)(\d\d) $(\1:CDM)$2
  14. ([123])(\d\d\d) $(\1:Mxx)$2 # [:Roman-large:]
  15. (\d+)(\d\d\d) \($1\)$2 # [:Roman-large:]
  16. ([123])(\d\d\d) $(\1:M--)$2
  17. ([123]\d{3})(\d\d\d) $(overline $1)$2 # overline: ×1000
  18. (\d{1,3})(\d\d\d) $(overline $1)$2 # overline: ×1000
  19. ([123]\d{3})(\d{5}) \|$(overline $1)\|$2 # bar: ×100
  20. (\d{1,3})(\d{5}) \|$(overline $1)\|$2
  21. (\d+) \1
  22. == overline ==
  23. (.*)(.) $(overline \1)\2̅ # recursive overline
  24. == historical ==
  25. (\d)(\d\d\d) $(\1:ↀↁↂ)$2
  26. ([123])(\d\d\d\d) $(\1:ↂ--)$(historical \2)
  27. (.*) $1
  28. == help ==
  29. 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