any_ascii

Crates.ioany_ascii
lib.rsany_ascii
version0.3.2
sourcesrc
created_at2020-02-15 04:36:03.607639
updated_at2023-03-16 00:25:29.398609
descriptionUnicode to ASCII transliteration
homepagehttps://anyascii.com
repositoryhttps://github.com/anyascii/anyascii
max_upload_size
id209325
size535,566
(hunterwb)

documentation

README

AnyAscii

Unicode to ASCII transliteration

Web Demo

Converts Unicode characters to their best ASCII representation

AnyAscii provides ASCII-only replacement strings for practically all Unicode characters. Text is converted character-by-character without considering the context. The mappings for each script are based on popular existing romanization systems. Symbolic characters are converted based on their meaning or appearance. All ASCII characters in the input are left unchanged, every other character is replaced with printable ASCII characters. Unknown characters and some known characters are replaced with an empty string and removed.

use any_ascii::any_ascii;

let s = any_ascii("άνθρωποι");
// anthropoi

Rust 1.42+ compatible

cargo add any_ascii

Install executable: cargo install any_ascii

$ anyascii άνθρωποι
anthropoi

$ echo άνθρωποι | anyascii
anthropoi

FULL README

Commit count: 848

cargo fmt