Crates.io | translitrs |
lib.rs | translitrs |
version | 0.2.2 |
source | src |
created_at | 2021-12-15 22:07:30.704822 |
updated_at | 2023-02-19 15:34:41.262982 |
description | Transliteration utility for Serbian language |
homepage | |
repository | https://github.com/filiparag/translitRS |
max_upload_size | |
id | 498787 |
size | 60,941 |
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>
-o, --output <path>
-f, --from <charset>
-t, --into <charset>
-d, --skip-digraph
-u, --force-foreign
-l, --force-links
-p, --pandoc-filter
-v, --version
-h, --help
Listed 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>
CHARS_INTO=<charset>
SKIP_DIGRAPH=1
FORCE_FOREIGN=1
FORCE_LINKS=1
# Transliterate plaintext file from Latin (Unicode) to Cyrillic
translitrs -f lat8 -t cyr -i source.txt -o destination.txt
# Transliterate Microsoft Word document from Cyrillic to Latin
CHARS_FROM=c CHARS_INTO=l pandoc essay.docx --filter translitrs -o essay.docx