From d5fb8c6a8d6ba0b7f72d3da04ed5ffe4e22b1131 Mon Sep 17 00:00:00 2001 From: Alec Kojaev Date: Sat, 14 Oct 2023 21:12:19 +0300 Subject: [PATCH] OPDS.md: Fix wording on search sensitivity, NFKC normalization. --- OPDS.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/OPDS.md b/OPDS.md index e80c5e5..0252770 100644 --- a/OPDS.md +++ b/OPDS.md @@ -51,6 +51,15 @@ following representation decisions were made: Search terms in OpenSearch are interpreted as a [PCRE](http://www.pcre.org/current/doc/html/pcre2pattern.html) pattern. +Both patterns and the values which are searched in are normalized to Unicode form +[NFKC](https://www.unicode.org/reports/tr15/). This means that, for example, +pattern `fi` will match ligature `fi`, and vice versa. + +Search is case-insensitive, meaning that pattern `abc` will match `ABC`. + +Search is diacritics-agnostic, meaning that pattern `pate` matches both `pâté` and `patê`, +however pattern `pâté` doesn't match `patê`. + Matches are looked for in: - Book title. @@ -58,8 +67,3 @@ Matches are looked for in: - Book author names. - Book series names. - Book tags. - -Patterns are: - -- Case-insensitive: pattern `abc` also matches `ABC` or `Abc`. -- Diacritics-agnostic: pattern `pâté` matches `pâté`, but not `patê`; however, pattern `pate` matches both.