cistercian

command module
v0.0.0-...-a9d4044 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 6 Imported by: 0

README

cistercian

This is a fork of https://github.com/rhardih/cistercian.

Commandline tool to generate Cistercian numerals.

The medieval Cistercian numerals, or "ciphers" in nineteenth-century parlance, were developed by the Cistercian monastic order in the early thirteenth century at about the time that Arabic numerals were introduced to northwestern Europe. They are more compact than Arabic or Roman numerals, with a single glyph able to indicate any integer from 1 to 9,999. Digits are based on a horizontal or vertical stave, with the position of the digit on the stave indicating its place value (units, tens, hundreds or thousands). These digits are compounded on a single stave to indicate more complex numbers.

Installation

go install hg.sr.ht/~ser/cistercian@latest

Example usage

Text
$ cistercian 7323
    ╷
    │╲
    │ ╲
    │  ╲
────┤
    │
    │
    │
╷   │
│   │  ╱
│   │ ╱
│   │╱
└───┘
SVG
$ cistercian -svg 5221 > 5221.svg

Result:

5221 5221

You can set the line thickness with the -stroke-width <int> argument, and the color with the -stroke-color #<code> argument, e.g.:

$ cistercian -svg -stroke-width 20 -stroke-color \#FFDD22 5221 > 5221.svg

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL