The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Any suggestions to remove accents from Unicode strings
05-17-2017, 08:02 AM
Post: #1
Any suggestions to remove accents from Unicode strings
I have a simple Prime program that can search for an element name in multiple languages - but on an English-configured keyboard (English being my native language) , entering the foreign text is impractical, requiring hunting through the character set for the right accent or knowing the Unicode number.

When searching for things on the internet, searching is much more tolerant of spelling errors. Specifically, Google translate will often successfully translate words typed in without using accents.

Is there any practical way to mask out accents from text in a program to make typing in a search string easier?

I cannot imagine any easy solution, comparable to masking out 1 bit in ASCII to search for text whilst ignoring whether it is upper or lower case.

(The particular accented languages I try are French and Polish, but I am only fluent in English)

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Any suggestions to remove accents from Unicode strings - StephenG1CMZ - 05-17-2017 08:02 AM



User(s) browsing this thread: 2 Guest(s)