Vlna is used to replace spaces between words with non-breaking spaces in Czech language texts. The idea is based on vlna tool written by Petr Olšák.
python3 vlna.py AaIiKkSsVvUuOoZz0123456789 < input.tex > output.tex
AaIiKkSsVvUuOoZz0123456789
- add ~ after these characters (optional)- input.tex - input file
- output.tex - output file (optional) - if not set, output is printed to stdout
Replace file will be printed to stdout.
python3 vlna.py AaIiKkSsVvUuOoZz0123456789 < ./test-data/soc/test.tex
Replace file will be saved to test_output_soc.tex
.
python3 vlna.py AaIiKkSsVvUuOoZz0123456789 < ./test-data/soc/test.tex > test_output_soc.tex
Run tests with:
python3 -m unittest -v test/test_vlna.py