aboutsummaryrefslogtreecommitdiff
path: root/booki.c
diff options
context:
space:
mode:
authorBen Winston2024-06-08 17:20:24 -0400
committerBen Winston2024-06-08 17:20:24 -0400
commitf07a38f116f9c8337955309b2d6065f145a1e9ac (patch)
tree42cd52aca74176972ec42bea4703b1831ccbec84 /booki.c
parent1a7ee1a66cb0878189ee3f2b31d3ef4a48bfd63a (diff)
bugfix: diacritics can sometimes be combining??
Diffstat (limited to 'booki.c')
-rw-r--r--booki.c7
1 files changed, 7 insertions, 0 deletions
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;