Some reading on IRIs and IDNs

cage cage-dev at twistfold.it
Mon Dec 14 15:09:53 GMT 2020


On Sat, Dec 12, 2020 at 12:10:48PM +0100, cage wrote:
> On Fri, Dec 11, 2020 at 06:49:17PM -0500, Sean Conner wrote:
>
> [...]
>
> >
> >   Here's the code I wrote to wrap libidn:
> >
> > 	https://github.com/spc476/lua-conmanorg/blob/master/src/idn.c
> >
> > It's geared for Lua, but the code itself is in C, but it should be pretty
> > easy to see what is going on.
>
> Thank  you Sean!   I am,  in fact  starting to  wrap libidn  (actually
> libidn2) so far seems that i got a working unicode->ascii function. Of
> course i will be happy to share  the results and maybe, if some people
> are going to be  interested (and if i succeed!  :))  i could extract a
> library from this code (it is integrated in the client at moment).

FWIW i managed to  switch from URI to IRI in  my client, fortunately i
was able to reuse  most of the URL parser. For Punycode  i wrapped a C
library.

Not sure if i did everything right but have met no regression so far.

If other  lisper (CL) are interested  we could arrange a  library from
this code.

Bye!
C.


More information about the Gemini mailing list