Re: CANONICALIZE how to use?
Jean Louis <[email protected]> Thu, 13 Apr 2017 22:16:57 +0300
| Newsgroups | gmane.lisp.clisp.general |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Apr 13, 2017 at 12:59:30PM -0400, Sam Steingold wrote: > > * Jean Louis <[email protected]> [2017-04-13 17:31:32 +0300]: > > > > I was under impression that č could be replaced by c, and š by s and > > so on. > > That would be lovely, but I am not sure how to define such a function on > UNICODE characters canonically. > > Many UNICODE characters have no meaningful ASCII counterpart altogether > (think oriental hieroglyphs), so they would have to be dropped or > replaced with hex escapes or something... > > (this is a relatively common question, and google offers "inconclusive" > answers). The practical world use is not that difficult. I found a solution, to use iconv: echo ßöäȧ čekaj malo | iconv -f UTF-8 -t ASCII//TRANSLIT ssoaa cekaj malo so I will just make simple function. Thank you. Jean ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ clisp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/clisp-list