Re: Associating names with characters for named Unicode characters
Alejandro Zamora Fonseca <[email protected]> Wed, 3 Jan 2024 17:41:09 -0300
| Newsgroups | gmane.editors.j.devel |
|---|---|
| Message-ID | <CANfGzZwfmGkTW4kW2Pv5xCGvzr1v5F=6RX7tnMjK5dG6BN8_KA__22628.7443003216$1704314538$gmane$org@mail.gmail.com> |
--0000000000003a5e06060e10a38c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable You are welcome :) No, sorry it is a small library, there only a few functions for unicode conversions mainly But you could do something with the Java internals For example: CL-USER> (jstatic "codePointOf" "java.lang.Character" "BOX DRAWINGS LIGHT HORIZONTAL") 9472 CL-USER> (code-char *) #\=E2=94=80 CL-USER> ... and maybe create a reader macro on top of this Best, Alejandro El mi=C3=A9, 3 ene 2024 a las 17:31, Robert Dodier (<[email protected]= m>) escribi=C3=B3: > Alejandro, thanks a lot for your reply. > > Is there a way, in abcl-utils, to inform the Lisp reader to recognize > named characters such as #\BOX_DRAWINGS_LIGHT_HORIZONTAL in source > code? That is the ultimate goal I am seeking. > > best, > > Robert > --0000000000003a5e06060e10a38c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">You are welcome :)<div><br></div><div>No, sorry it is a sm= all library, there only a few functions for unicode conversions mainly</div= ><div><br></div><div>But you could do something with the Java internals</di= v><div><br></div><div>For example:</div><div><br></div><div>CL-USER> (js= tatic "codePointOf" "java.lang.Character" "BOX DRA= WINGS LIGHT HORIZONTAL")<br>9472<br>CL-USER> (code-char *)<br>#\=E2= =94=80<br>CL-USER>=C2=A0<br></div><div><br></div><div>... and maybe crea= te a reader macro on top of this</div><div><br></div><div>Best,</div><div><= br></div><div>Alejandro</div><div><br></div></div><br><div class=3D"gmail_q= uote"><div dir=3D"ltr" class=3D"gmail_attr">El mi=C3=A9, 3 ene 2024 a las 1= 7:31, Robert Dodier (<<a href=3D"mailto:[email protected]">robert.= [email protected]</a>>) escribi=C3=B3:<br></div><blockquote class=3D"gmai= l_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-lef= t-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Alejandr= o, thanks a lot for your reply.<br> <br> Is there a way, in abcl-utils, to inform the Lisp reader to recognize<br> named characters such as #\BOX_DRAWINGS_LIGHT_HORIZONTAL in source<br> code? That is the ultimate goal I am seeking.<br> <br> best,<br> <br> Robert<br> </blockquote></div> --0000000000003a5e06060e10a38c--