From 5f342e4d84f2130bd2beee374d90d4d70684acb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Bo=CC=88hning?= <1497707+bohning@users.noreply.github.com> Date: Thu, 21 Dec 2023 15:42:58 +0100 Subject: [PATCH] =?UTF-8?q?Add=20the=20typographer=E2=80=99s=20apostrophe?= =?UTF-8?q?=20(U+2019)=20to=20the=20set=20of?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit punctuation characters. Currently, the search field (a.k.a. jump to) does not allow entering this apostrophe because it is neither recognized as alphanumeric nor as punctuation character. --- src/base/UUnicodeUtils.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/UUnicodeUtils.pas b/src/base/UUnicodeUtils.pas index 750bd28e7..d1714dce0 100644 --- a/src/base/UUnicodeUtils.pas +++ b/src/base/UUnicodeUtils.pas @@ -284,7 +284,7 @@ function IsPunctuationChar(ch: WideChar): boolean; begin // TODO: add chars > 255 (or replace with libxml2 functions?) case ch of - ' '..'/',':'..'@','['..'`','{'..'~', + ' '..'/',':'..'@','['..'`','{'..'~',widechar($2019), #160..#191,#215,#247: Result := true; else