@b4n commented on this pull request.
gchar *utils_get_initials(const gchar *name)
{ - gint i = 1, j = 1; - gchar *initials = g_malloc0(5); + GString *initials; + gchar *composed; + gboolean at_bound = TRUE; + gboolean prev_matched = FALSE; + + g_return_val_if_fail(name != NULL, NULL); + + composed = g_utf8_normalize(name, -1, G_NORMALIZE_DEFAULT_COMPOSE);
If you have more knowledge on combining, I'll take it, I only know accents myself :) (and then some ligatures that have assigned characters and that I feel like being variants, like Œ or Æ)