? Some( UnicodeBlocks() ) # and we get:
#--> [ "Osage", "Manichaean", "Dives Akuru" ]
? Some( UnicodeBlocksXT() ) # and we get:
#--> [
# [ "Osage", [66736, 66815] ],
# [ "Manichaean", [68288, 68351 ] ],
# [ "Dives Akuru", [72272, 72367] ]
# ]
And it can search for some blocks containing a given word in their name:
? Some( UnicodeBlocksContainingXT("box") )
#--> [ "Box Drawing", [9472, 9599] ]
and, from that, by using the information about the [9472, 95599] range we got, we can get a list of some box chars along with their names:
? CharsAndNames( Some( UnicodesToChars(9472 : 9599) )
#--> [
# [ "┖", "BOX DRAWINGS UP HEAVY AND RIGHT LIGHT" ],
# [ "╸", "BOX DRAWINGS HEAVY LEFT" ],
# [ "╏", "BOX DRAWINGS HEAVY DOUBLE DASH VERTICAL" ],
# [ "╚", "BOX DRAWINGS DOUBLE UP AND RIGHT" ],
# [ "┺", "BOX DRAWINGS LEFT LIGHT AND RIGHT UP HEAVY" ]
# ]
And so on.
To make all that possible, a more convenient data structure, that is different from the one provided as-is by the Unicode foundation, is necessary.
ChatGPT helped me to it quickly using this prompt:
PS: In your conversation with Gemini above, try to give it more context about Ring, how it can be used to make transformations of data, and how it differs from Python in terms of syntax, along with some examples, and you will get a better Ring code. As you see, prompting engineering becomes a requirement and a real challenge for all of us !
Sorry for being long and thanks for your time.
Best,
Mansour
--
---
You received this message because you are subscribed to the Google Groups "The Ring Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ring-lang+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ring-lang/cafff3a4-8fb3-4689-b2ce-e3b6b05927abn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ring-lang/f98c44a5-5227-47d2-b8f2-2af8570fda61n%40googlegroups.com.