Roman_2.sor 833 B

12345678910111213141516171819202122232425262728
  1. __numbertext__
  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:M--)$2
  15. ([123]\d{3})(\d\d\d) $(overline:$1)$2 # overline: ×1000
  16. (\d{1,3})(\d\d\d) $(overline:$1)$2 # overline: ×1000
  17. ([123]\d{3})(\d{5}) \|$(overline:$1)\|$2 # bar: ×100
  18. (\d{1,3})(\d{5}) \|$(overline:$1)\|$2
  19. (\d+) \1
  20. (overline:.*)(.) $1\2̅ # recursive overline
  21. "historical (\d)(\d\d\d)" $(\1:ↀↁↂ)$2
  22. "historical ([123])(\d\d\d\d)" $(\1:ↂ--)$(historical \2)
  23. "historical (.*)" $1
  24. help Modules\nRoman: multiple parenthesized form\nRoman_2: overline (×1000) with bar (×100)\nFunctions: historical (in Roman_2) with special Unicode characters for 1000, 5000 and 10000