A search text as the API matches it, the one canonical form the library sends and every
rule reads: in NFKC and without surrounding whitespace. NFKC, not only NFC, is deliberate:
the API finds nothing for a decomposed umlaut ("Ko" + U+0308, as pasted from macOS file
names or PDFs), and NFKC also folds fullwidth digits and ligatures ("fi" to "fi"). A text
pasted with a trailing space or newline went out as typed. Inner whitespace is kept.
Normalised first, then trimmed, so a character NFKC turns into a space is trimmed too.
A search text as the API matches it, the one canonical form the library sends and every rule reads: in NFKC and without surrounding whitespace. NFKC, not only NFC, is deliberate: the API finds nothing for a decomposed umlaut ("Ko" + U+0308, as pasted from macOS file names or PDFs), and NFKC also folds fullwidth digits and ligatures ("fi" to "fi"). A text pasted with a trailing space or newline went out as typed. Inner whitespace is kept. Normalised first, then trimmed, so a character NFKC turns into a space is trimmed too.