Transliterate Serbian Cyrillic ↔ Latin from files or stdin.
A Rust port of oblakstudio/transliterator,
shipped as a single static binary called transliterate.
Prebuilt binaries for Linux (musl, x86_64 + aarch64), macOS (Intel + Apple
Silicon) and Windows are published on the releases page. Linux users can
also install .deb or .rpm packages from the same release.
Or build from source:
cargo install --path .echo "Београд" | transliterate lat # → Beograd
echo "Београд" | transliterate cut-lat # → Beograd (diacritic-free)
echo "Đorđe" | transliterate cir # → Ђорђе
echo "Četiri" | transliterate cut-lat # → Cetiri
transliterate lat input.txt --out output.txt
transliterate lat a.txt b.txt c.txt # files are concatenated in orderSubcommands:
lat— Cyrillic → Serbian Latin (with diacritics)cut-lat— Cyrillic and diacritic Latin → URL-safe Latincir— Serbian Latin → Cyrillic
With no files, input is read from stdin. With --out PATH, output is
written to a file instead of stdout.
Dual-licensed under either MIT or Apache 2.0, at your option.