From f07a38f116f9c8337955309b2d6065f145a1e9ac Mon Sep 17 00:00:00 2001 From: Ben Winston Date: Sat, 8 Jun 2024 17:20:24 -0400 Subject: bugfix: diacritics can sometimes be combining?? --- booki.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/booki.c b/booki.c index d076720..8d81d14 100644 --- a/booki.c +++ b/booki.c @@ -256,6 +256,13 @@ bool comparable(const char* pattern, const char* candidate, int len) { return false; } } + // combining diacritics + else if (c >= 0xCC && c <= 0xCD) { + // these exist afterwards, so skip this one and the following + candidate += 2; + c = *candidate; + continue; + } else { // don't know how to compare these return false; -- cgit v1.2.3