Skip to content

Commit

Permalink
OPDS.md: Fix wording on search sensitivity, NFKC normalization.
Browse files Browse the repository at this point in the history
  • Loading branch information
oldnomad committed Oct 14, 2023
1 parent 89e8103 commit d5fb8c6
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions OPDS.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,19 @@ 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 ``, 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.
- Book description (Calibre comments).
- 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.

0 comments on commit d5fb8c6

Please sign in to comment.