otfmacros/pymacro
2021-03-07 11:44:30 +00:00
..
tests move otf macro logic to process() so that they can be overwritten, other minor changes 2021-03-07 10:57:18 +00:00
macros add on the fly macros 2021-03-06 15:01:48 +00:00
pymacro fix pymacro not using custom defined plurals 2021-03-07 11:44:30 +00:00
readme.md update readme 2021-03-07 10:01:56 +00:00
test.sh add on the fly macros 2021-03-06 15:01:48 +00:00

pymacro

A python implementation of the macros spec

usage

$ ./pymacro -h
usage: pymacro [-h] [-m MACROS_FILE] [-i INPUT] [-o OUTPUT]

optional arguments:
  -h, --help            show this help message and exit
  -m MACROS_FILE, --macros-file MACROS_FILE
                        File where macros are stored (default: macros)
  -i INPUT, --input INPUT
                        File to be processed. (default: -)
  -o OUTPUT, --output OUTPUT
                        Path of output (default: -)

testing

Run test.sh. A diff is run on the actual output against what should have come out according to the spec.