#unicode #confusable #homoglyphs

confusables

Utilities around Unicode confusables/homoglyphs

1 unstable release

0.1.0 Aug 23, 2023

#986 in Text processing

Download history 101/week @ 2024-01-05 127/week @ 2024-01-12 253/week @ 2024-01-19 365/week @ 2024-01-26 273/week @ 2024-02-02 309/week @ 2024-02-09 428/week @ 2024-02-16 271/week @ 2024-02-23 279/week @ 2024-03-01 290/week @ 2024-03-08 226/week @ 2024-03-15 212/week @ 2024-03-22 249/week @ 2024-03-29 204/week @ 2024-04-05 426/week @ 2024-04-12 1054/week @ 2024-04-19

1,985 downloads per month

GPL-3.0 license

130KB
120 lines

Confusables

Build & Tests Crates.io docs.rs

A Rust crate that provides utilities around Unicode confusables/homoglyphs. Specifically about:

  • detecting confusable characters in strings
  • replacing confusable characters (according to the data file specified in the Unicode® Technical Standard)
  • confusable-resilient operations (equality, contains) on strings

The Unicode data file is parsed at compile time so there is no extra overhead at runtime.

Get Started

All the new methods are implemented as part of a trait which you will need to import:

use confusables::Confusable;

All methods come with code examples so be sure to check those!

Dependencies