Normalize repeated combining characters to a single one

This commit is contained in:
Richard Frith-Macdonald 2022-04-07 14:35:05 +01:00
parent d18cba351c
commit 9460d6a469

View file

@ -190,12 +190,30 @@ static inline void GSeq_normalize(GSeq seq)
*second = tmp;
notdone = YES;
}
else if (*first == *second)
{
unichar *end = seq->chars + count;
while (*first == *second && second < end)
{
second++;
count--;
}
first++;
while (second < end)
{
*first++ = *second++;
}
notdone = YES;
break;
}
}
}
first++;
second++;
}
}
seq->count = count;
}
}
seq->normalized = YES;