TranslitRS is a command-line utility for transliteration between Cyrillic and Latin scripts of the Serbian language. It can work on plain text files directly, or as a filter for Pandoc document processor (Markdown, HTML, LaTeX, Microsoft Word...).
-i, --input <path>
\
Read input from file \
Default: standard input-o, --output <path>
\
Write output to file \
Default: standard output-f, --from <charset>
\
Convert from character set \
Default: latin-t, --into <charset>
\
Convert to character set \
Default: cyrillic-d, --skip-digraph
\
Do not check for digraph exceptions-u, --force-foreign
\
Process words with foreign and mixed characters-l, --force-links
\
Process hyperlinks, email addresses and units-p, --pandoc-filter
\
Run in Pandoc JSON pipe filter mode-v, --version
\
Show version and quit-h, --help
\
Show usage help and quitListed below are available character sets and their shorthand codes:
latin, lat, l
latin8, lat8, l8
cyrillic, cyr, c
When running as a Pandoc filter, the arguments listed above can't be passed directly. Instead, use the following arguments variables:
CHARS_FROM=<charset>
\
Convert from character setCHARS_INTO=<charset>
\
Convert to character setSKIP_DIGRAPH=1
\
Do not check for digraph exceptionsFORCE_FOREIGN=1
\
Process words with foreign and mixed charactersFORCE_LINKS=1
\
Process hyperlinks, email addresses and units```sh
translitrs -f lat8 -t cyr -i source.txt -o destination.txt
CHARSFROM=c CHARSINTO=l pandoc essay.docx --filter translitrs -o essay.docx ```