lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On Feb 26, 2016 8:10 AM, "Dirk Laurie" <dirk.laurie@gmail.com> wrote:
>
> 2016-02-26 17:47 GMT+02:00 Coda Highland <chighland@gmail.com>:
> >
> > On Feb 26, 2016 7:15 AM, "Dirk Laurie" <dirk.laurie@gmail.com> wrote:
> >>
> >> 2016-02-26 16:33 GMT+02:00 Alexander Gladysh <agladysh@gmail.com>:
> >> > On Fri, Feb 26, 2016 at 4:45 PM, Richter, Jörg <Joerg.Richter@pdv-fs.de>
> >> > wrote:
> >> >>> I remember seeing an ASCII folding[1] module for Lua a few years ago.
> >> >>
> >> >> Do you mean Unidecode?
> >>
> >> I have occasionally needed the reverse: given a US-ASCII rendering
> >> of a (usually well-known) word or name, reconstruct its original form.
> >>
> >
> > Which is, of course, impossible in the general case, due to the mapping not
> > being one-to-one. For example, resume vs. résumé, or expose vs. exposé.
>
> I was thinking along the lines of Dostoyevsky, Pythagoras, al-Khowarizmi
> etc. The sort of thing one can always Google.
>

Well, I did say "in the general case." If you can narrow the scope to only unambiguous names, that's a different matter.

/s/ Adam