Email or username:

Password:

Forgot your password?
Top-level
sam henri gold

some strings you might have to create a monogram for with no clear solution:
"Mhi'ya Iman Le'Paige"
"John Appleseed"
"Dr. Jonathan Maple Appleseed Esq."
"Père Jean-Philippe de Zélicourt"
"Dr. med. Max Mustermann junior, M.A."
"木田 泰夫"
"أحمد الراجحي"

5 comments
sam henri gold

The naïve approach that I've seen quite a few times is just taking the first two characters and lobbing off the rest.

But now you have a bunch of monograms that look like “DR” or “JO” or “PÈ” which makes no sense as a monogram.

In Swift, `PersonNameComponentsFormatter` could be useful here. But when I was doing this for a web project, no idea what you’re supposed to do with nothing but some regular expressions and faith that you’ll have something serviceable.

Marcel

@samhenrigold Not to belittle this whole thing because I know it's fun to solve problems like this in smart ways but... I always came to the conclusion that monograms just aren't worth it and found a different solution, ditching them completely.

Mike Beasley

@samhenrigold simple solution: use a placeholder icon instead of a monogram and just change the color to something derived from a hash of the name

Go Up