H
H
Hachiman Hikigaya2021-10-14 12:35:49
Python
Hachiman Hikigaya, 2021-10-14 12:35:49

How to compare two strings having different "fonts"?

text = " "
search = "giyu"
if search in text:
    print("ok")

Do you know sites for creating beautiful text? Here's how I, doing a search in the database, find it?

https://textgenerator.ru/font/bold-italic
Let text be equal to giyu, but copied through such a site ^
(Something is not fasting here)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2021-10-14
@var4yn_nik

Unicode normalization is a bad thing.
The first term for Google is homoglyph (homoglyph), i.e. characters that look very similar (such as Russian and Latin o). For python, there seems to be a library of the same name , but I myself have not worked with it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question