Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jakubandrysek/vlna

Vlna is used to replace spaces between words with non-breaking spaces in Czech language texts.
https://github.com/jakubandrysek/vlna

czech language latex python3 tilda vlna vlnak

Last synced: 15 days ago
JSON representation

Vlna is used to replace spaces between words with non-breaking spaces in Czech language texts.

Awesome Lists containing this project

README

        

# 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](http://ftp.linux.cz/pub/tex/local/cstug/olsak/vlna/) tool written by Petr Olšák.

## Installation
```bash
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.
```bash
python3 vlna.py AaIiKkSsVvUuOoZz0123456789 < ./test-data/soc/test.tex
```

Replace file will be saved to `test_output_soc.tex`.
```bash
python3 vlna.py AaIiKkSsVvUuOoZz0123456789 < ./test-data/soc/test.tex > test_output_soc.tex
```

## Tests
Run tests with:
```bash
python3 -m unittest -v test/test_vlna.py
```