Some reading on IRIs and IDNs

Sean Conner sean at conman.org
Wed Dec 9 23:23:03 GMT 2020


It was thus said that the Great Petite Abeille once stated:
> 
> > On Dec 9, 2020, at 23:17, Sean Conner <sean at conman.org> wrote:
> > 
> > could not find one for Lua
> 
> Would this suit?
> 
> https://github.com/haste/lua-idn/blob/master/idn.lua

  Huh ... turns out I should have searched for 'IDN' instead of 'punycode'. 
The code is for Lua 5.2---it will take a bit of work to get it working for
Lua 5.3 but that still leaves normalization issues.  I'm working with the
GNU libidn right now because it can do normailzation, otherwise, I can get
two different IDNs for the same (visually) domain:

	résumé	resume-jxde
	résumé	rsum-bpad

  -spc



More information about the Gemini mailing list