@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 Æ)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3846#discussion_r1573249549
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/3846/review/[email protected]>

Reply via email to