Crates.io | word_replace |
lib.rs | word_replace |
version | 0.0.3 |
source | src |
created_at | 2017-08-03 17:38:29.990231 |
updated_at | 2017-08-04 05:42:56.964769 |
description | word replacement tool for a text file with toml-based dictionary |
homepage | |
repository | https://github.com/rinthel/word_replace.git |
max_upload_size | |
id | 26276 |
size | 21,932 |
word_replace
finds words tagged by @@
in input text files, and
replace them into words defined in the toml-based dictionary.
It was designed for ease of technical word translation in the source files
for a markdown book (a.k.a. mdbook).
For Korean, word_replace
reads the [ko-postpos]
table in the toml file,
and automatically adjust postpositions after tagged words depending on
whether the final jamo exists or not.
word_replace [-w] [-d <dictfile>] [-l <language>] [-r <root>] [<INPUT>] [<OUTPUT>]
-w, --warning Shows all warnings.
-d <dictfile> Sets a dictionary file. default: dict.toml
-l <language> Sets a language. default: ko
-r <root> Sets a root directory. default: .
<INPUT> Set a source directory. default: src_pre
<OUTPUT> Set a destination directory. default: src