Removing accents from strings before or while comparing them

There is libunac [1] which provides a function to remove accents from a string. 
 

There is an algorithm discussed here [2] which could be implemented with
libunistring:

Now, the best algorithm is hinted at the approved answer: Use NKD
(decomposition) to decompose accented letters into the base letter and a
seperate accent, and then remove all accents.

[accent characters are in the non-spacing mark category "Mn"]


[1] http://www.nongnu.org/unac/unac-man3.en.html
[2] 
http://stackoverflow.com/questions/144761/how-to-remove-accents-and-tilde-in-a-c-stdstring

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/16953

Title:
  Aptitude: should accept both "Si" and "Sí" (when asking for
  confirmation)

To manage notifications about this bug go to:
https://bugs.launchpad.net/server-papercuts/+bug/16953/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to