Python Forum
unicode to ascii for look-like letters
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unicode to ascii for look-like letters
#1
does anyone know of a module or database to convert Unicode to ASCII of look-like letters? by that i mean any codes above 127 that have an appearance like or similar to a letter or any character in ASCII gets translated to that letter or character in ASCII that it looks like. for example the letter "A" with a variety of different accent marks or different display effects get translated to "A". if it wants input and/or gives results as numeric codes, that's OK.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
Try the unidecode module
>>> from unidecode import unidecode
>>> 
>>> unidecode("L'été à la plage")
"L'ete a la plage"
Reply
#3
that's a misleading name. but thinks for the info.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020