#unicode #confusable #homoglyphs

confusables

Utilities around Unicode confusables/homoglyphs

1 unstable release

0.1.0 Aug 23, 2023

#1152 in Text processing

Download history 264/week @ 2024-07-22 312/week @ 2024-07-29 351/week @ 2024-08-05 325/week @ 2024-08-12 230/week @ 2024-08-19 261/week @ 2024-08-26 246/week @ 2024-09-02 140/week @ 2024-09-09 14/week @ 2024-09-16 102/week @ 2024-09-23 112/week @ 2024-09-30 90/week @ 2024-10-07 122/week @ 2024-10-14 23/week @ 2024-10-21 9/week @ 2024-10-28 79/week @ 2024-11-04

234 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