#text #format-text #typesetting #troff

app arbitrator

Format text based on a set of rules and regexes

4 releases

0.1.3 Aug 13, 2021
0.1.2 Aug 12, 2021
0.1.1 Aug 12, 2021
0.1.0 Aug 12, 2021

#1228 in Text processing

29 downloads per month

GPL-3.0 license

7KB
121 lines

Arbitrator

Format text based on a set of rules and regexes.

Installation

cargo install arbitrator

Usage

example.txt

This is one of my paintings.
Wow thats really cool.
Thank you!

example.json

{
    "paintings": "cool {} nice",
    "cool": "{} {}"
}

Example command:

arbitrator --input example.txt --rules example.json --output output.txt

output.txt

cool This is one of my paintings. nice
Wow thats really cool. Thank you!

Dependencies

~5–6.5MB
~124K SLoC