characterset... but weird... but

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andrew Davie

This is pretty weird to do, but anyway.  I have previously defined an entire character set by hand - and encoded the RGB triplet bytes using hand-woven 1s and 0s. Then, as noted earlier, to make it easier I had Claude make a tool to put a nice emoji comment beside each RGB triplet, so that I could see what the character looked like.

Separately to that, I have a tool that convered bitmap images into charactersets. I used that tool for the menu grid display (just done).  That means I have one hand-done character set, and one from-image character set.

So, I've decided to "dump" the hand-done character set and use the tool for everything.  This means I need to convert the hand-drawn characters to an image suitable for use by the character set tool. And I need to do some conversion/updates of character numbers so my original code still works. That's still a work-in-progress.

I asked Claude, again, to write a tool to parse the source code and convert the character array definitions back into an image file. That was quick and straightforward. What a time to be alive.  Anyway, given the characters now as an image I can use the original tool to convert back to a source-code character set.  Why???  Well, because it lets me draw characters in a graphics editor rather than faff about with 0s and 1s.

So, the image shows the character set image produced by the source-to-image tool. I've post-modified it to group characters into logical groupings, and added a horizontal electric fence (top right). Easy peasy to do now, of course - way better than typing in binary into source code.

The image-to-source code creates a characterset array -- packed, of course -- in slightly different format to the original way I did it.  It creates a single array of characters, rather than individual character arrays and an array pointing to them.  So I need to modify the draw systems to adjust to that. Shouldn't be too hard.

BTW, when editing in GIMP, I do the non-square-pixels display, and the snap to 5x10 grid, so that editing really feels like editing individual characters.  See screenshot below (grid-lines and non-square pixels).

Andrew Davie

Speaking of characters, I have a separate charset 0to9, which includes the large digits used for time, and A-J for the planets. Also the small digits for the count of geodoge converted. All of these were "white" with a drop-shadow. I've been finding they sometimes get 'drowned' in the other graphics.

I'm trialling these letters with a border around them. Images show the effect. Undecided as yet, but I kinda think they work OK.