Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 884 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 884 Bytes

vlna - Czech typography tool

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.

Installation

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

Example

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

Tests

Run tests with:

python3 -m unittest -v test/test_vlna.py