latinize

Convert accents (diacritics) from strings to latin characters.

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License LGPL-3.0
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:25

Installation

nimble install latinize
choosenim install latinize
git clone https://github.com/AmanoTeam/Latinize

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
latinize - - - - - - -

Source

Repository https://github.com/AmanoTeam/Latinize
Homepage https://github.com/AmanoTeam/Latinize
Registry Source nimble_official

README

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.

Installation

Install using nimble:

nimble install --accept 'git://github.com/AmanoTeam/Latinize.git'

Note: Latinize requires Nim 1.4.0 or higher.

Library usage

import latinize

const
  text: string = "ỆᶍǍᶆṔƚÉ áéíóúýčďěňřšťžů"
  result: string = translate(s = text)

assert result == "ExAmPlE aeiouycdenrstzu"

CLI tool usage

$ 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.

Downloads

You can download prebuilt static binaries of the CLI tool for Android and Linux from the GitHub releases page.

Contributing

If you have discovered a bug in this library and know how to fix it, fork this repository and open a Pull Request.

Third party software

Latinize includes some third party software in its codebase. See them below: