So over the weekend I added "image search" to my search engine, "image" here meaning ascii art! You can try it here: gemini://gemplex.space/image/search.
There's also an option to show a random ascii art: gemini://gemplex.space/image/random
1 year ago ยท ๐ gritty, mozz, devyl, unknownbox, johano
gemini://gemplex.space/image/search
gemini://gemplex.space/image/random
Ha... Neat! gemini://gemplex.space/image/search?welcome ยท 1 year ago
gemini://gemplex.space/image/search?welcome
It's a simple heuristic, based on stuff like the ratio of non-alphanumeric characters. It's not perfect, but it mostly works. You can take a look at the source if you want. https://git.sr.ht/~elektito/gemplex ยท 1 year ago
https://git.sr.ht/~elektito/gemplex
Awesome! How are you determining if the preformatted block is ascii-art or something else like code? ยท 1 year ago