I'm in my eleventh hour, financially speaking, and I'm dusting off an #AI project I started a couple of months ago and then abandoned due to how overwhelmingly new and unknown a lot of the work is.

This isn't some #ChatGPT bullshit either, just some simple visual classification of fonts.

The idea here is to build a #SearchEngine for graphic designers and typographers to discover and explore fonts in a way no font repository has done yet.

#GraphicDesign #Typography

Unlike a lot of people, I understand regular expressions quite well.

Unlike a lot of people who understand regular expressions, I apologize for my monstrosities.

#RegEx #RegularExpressions #Python

@unshittifier Don't apologize, explain. Add re.VERBOSE, split regexp by blocks, and add a comment for each block.

https://docs.python.org/3/library/re.html#re.VERBOSE

#python

re — Regular expression operations

Source code: Lib/re/ This module provides regular expression matching operations similar to those found in Perl. Both patterns and strings to be searched can be Unicode strings ( str) as well as 8-...

Python documentation

@unshittifier 😂

...but also I agree with @orsinium that the better approach for future developers (possibly including future you) is to make it more readable and add explanations into the code

@unshittifier go on…this sounds wonderfully useful

@stevelaskevitch Well, lots of font repositories expect you to just... know what you're looking for. But half the time I'm looking for a font alternative, a font from an image, or a font based on a vibe/aesthetic.

What I'm working on currently fits the former two, just by letting you pick a well-known font, or font you have a sample of, and search for fonts that visually match.

The visual matching will also help with categorizing fonts correctly when they aren't (Google Fonts *cough*).