Skip to content

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

License

Notifications You must be signed in to change notification settings

JakubAndrysek/vlna

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published