Latinize is a library and CLI tool written in Nim, it's indeed to convert accents (diacritics) from strings to latin characters.
This is a port of the original Latinize.js Node package.
Install using nimble
:
nimble install --accept 'git://github.com/AmanoTeam/Latinize.git'
Note: Latinize requires Nim 1.4.0 or higher.
import latinize
const
text: string = "ỆᶍǍᶆṔƚÉ áéíóúýčďěňřšťžů"
result: string = translate(s = text)
assert result == "ExAmPlE aeiouycdenrstzu"
$ latinize --help
usage: latinize [-h] [-v] -t TEXT
Simple Nim library and CLI tool to
convert accents (diacritics) from
strings to latin characters.
optional arguments:
-h, --help show this help
message and exit
-v, --version show version number
and exit
-t TEXT, --text TEXT
text you want to
latinize
When no text are supplied, default
action is to read from standard input.
You can download prebuilt static binaries of the CLI tool for Android and Linux from the GitHub releases page.
If you have discovered a bug in this library and know how to fix it, fork this repository and open a Pull Request.
Latinize includes some third party software in its codebase. See them below:
- Latinize.js
- Author: Jakub Dundalek
- Repository: dundalek/latinize
- License: BSD-2-Clause License