Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.
/ Latinize Public archive

Latinize is a library and CLI tool written in Nim, it's indeed to convert accents (diacritics) from strings to latin characters.

License

Notifications You must be signed in to change notification settings

AmanoTeam/Latinize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

Latinize is a library and CLI tool written in Nim, it's indeed to convert accents (diacritics) from strings to latin characters.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages