From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KBHxAlRJ6mJqZQAAbAwnHQ (envelope-from ) for ; Wed, 03 Aug 2022 12:09:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yMAAA1RJ6mLQCQEA9RJhRA (envelope-from ) for ; Wed, 03 Aug 2022 12:09:24 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C5E3A1F99A for ; Wed, 3 Aug 2022 12:09:23 +0200 (CEST) Received: from localhost ([::1]:33398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJBJa-0007ao-Fd for larch@yhetil.org; Wed, 03 Aug 2022 06:09:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJB8O-00053f-UL for emacs-orgmode@gnu.org; Wed, 03 Aug 2022 05:57:50 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:41794) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJB8N-0003xD-Dn for emacs-orgmode@gnu.org; Wed, 03 Aug 2022 05:57:48 -0400 Received: by mail-pl1-x62f.google.com with SMTP id v18so15915945plo.8 for ; Wed, 03 Aug 2022 02:57:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=16thyipEEFmADhpGA/kw+39AkZ148vjvt1siNwTfbWE=; b=XxUOxFyZ5cao0Vrlf5iHX8s6uz7e0JR9lJ5lX6vXbYTkVyIw3QF8tadzfGDtBXtnmh 5JRoUF0dVAZeccXGrwX+ZM6TauQxF/VAWhAWnMbYBFKmgCmhxuhBPwVvbf+56Jla8omr i8bESl2zIHbzZCwzJJAEqiWOMghxhcx/ZfJ87l25h+phTC7QuvYR9PxBwl5DxiSWmTrq 7YYa29fCIXY2h1xPrvU2COFSnZhEGqfkFTnHwlCP2W33qXdhlLsQrniis2z1Pi/TFCtt JNcX2IWa8jydsqDAYXLRab/ky4xy9PeXUn+M7c1B5INu878JVUHm4MbAs+Z7kGxc1iUg ETvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=16thyipEEFmADhpGA/kw+39AkZ148vjvt1siNwTfbWE=; b=pGZmuYSaptrSwyZ8toaW5GeEcciWkJxN0dyNLnsPzyrHdKfbVMgT1YewMmA5LonKCE Ve1HdJzQSvuif7nj4+LOoUn4KOVoIach0E/mkyb1MDqFLWw+Ff/JFCmcDJZvQVRLojcL 4F8gfOMcDNLfwPp/GMaJvGeFCwhCP74S6EeLC7EEgVJsuRX51LBMTPGIymBk6r+8/ptk qOGW2AsT9A9+o7ioQfihGbLH4LMwaCL4b8CapKWm1Qu7fly0PcF97YeHmJA1GwlkfCGw Jk9f5d2E1jIeJDFxDUhPLf5qPK1LOhzSB+rJaja995h9sLWInnceBuru92fYy6FfXW35 AjBA== X-Gm-Message-State: ACgBeo1C0jnAUn5syxp/PbTjphqwmaVbdM8eFbl9A7v3i+9csh+ocykc npT8alKq2dgsqWH0f2rzTns= X-Google-Smtp-Source: AA6agR5oxnaauyzekKiuyTNRA+1pYr67obJnjdMT7/cbJObvjuzZu6jc1qWI9ZE04zJpj9B7cBENtQ== X-Received: by 2002:a17:90b:1d0b:b0:1f5:72f:652c with SMTP id on11-20020a17090b1d0b00b001f5072f652cmr4072251pjb.38.1659520665712; Wed, 03 Aug 2022 02:57:45 -0700 (PDT) Received: from localhost ([115.154.175.57]) by smtp.gmail.com with ESMTPSA id h4-20020a628304000000b0052594a3ba89sm7548358pfe.65.2022.08.03.02.57.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Aug 2022 02:57:45 -0700 (PDT) From: Ihor Radchenko To: "Dr. Arne Babenhauserheide" Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-forward-sentence does not recognize the end of sentences with footnotes [9.5.4 (N/A @ /gnu/store/zi4gr63h5k2w3y5srydk3k05bjrx9pi9-emacs-org-9.5.4/share/emacs/site-lisp/org-9.5.4/)] In-Reply-To: <877d3q21yn.fsf@web.de> References: <87fsif190b.fsf@web.de> <87y1w6kcde.fsf@localhost> <877d3q21yn.fsf@web.de> Date: Wed, 03 Aug 2022 17:58:52 +0800 Message-ID: <87zgglir6r.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=yantar92@gmail.com; helo=mail-pl1-x62f.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659521363; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=16thyipEEFmADhpGA/kw+39AkZ148vjvt1siNwTfbWE=; b=nf17etmoolg9Senc0ItzyVWopEpBX3miV5tAOR1s5poager3kANxl32n30LRBkz5Yn5uAp H0+MNI9MgiUBl81J1gur9vvShJ8b2Yc9UzDWR1qWCLrJ+HgcrLSS9WKy7EvOzltnPA9+3J GnXLdpSpSl4UkGr7RMSG0ozO4Vz6+JN2upbssjI2iMgBchCoyqGBHx0YQ31VINwnAGvtj0 pqUrq4THq7rXUiJyeROLLGXhPdnj+2bRKjjXLvWH/38RJ5uVajAoY9d9LmY67s6zlbkkmz Lpz38oGvaIeEOW37mJSFB/OMSSVREMlVkzPspjSiywFej35IsLP/vtmsCZwVCw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659521363; a=rsa-sha256; cv=none; b=Iu35UAXaU+s1ZFm/zw76jTbwmJ9yUCPb6qsZe/3XtrQKRDAQtsNdTSq5bP3PoEmxL1xyl1 JMFdJnsST28XE3nplSBQ+HADUttICldfi5kUQOlRI7K9n4jOFl8I4MNQRF6Vk0LNsJ5iJr 12qKvmwbWt1zA/vRH5wpli68M/aQ6NsedpPZQeF3sCKLPzVLpNVLsyPyFpt9pkl2OydCFw LcgBcN3NCNSIkXcWXBFVuz6EN40yVQrqzIOkNlXAP+bh1FSI1Bu4tMBWeaeHzfRMseFu0r N4SKRToANfs0Cnfms+ZumfKMYXbLC0WXE3zYyhevltHfK/VZ/YOazE/lq+v4+A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XxUOxFyZ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -8.41 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=XxUOxFyZ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C5E3A1F99A X-Spam-Score: -8.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: diRTId5hh4Jk "Dr. Arne Babenhauserheide" writes: >> But colon is not a sentence end. Or do I miss something? > > I think I added colon there; in default setting this should jump to the > end of [fn:133]. If you have sentence with two spaces set, try adding a > space after [fn:133] =E2=80=94 it is not recognized as end of a sentence: > > Die Anzahl und St=C3=A4rke der Werte ist durch eure > gew=C3=A4hlte Machtstufe begrenzt:[fn:23] Ein starker > Wert@@latex:\index{Starker Wert}@@ kostet einen Punkt und ein > =C3=BCberragender Wert@@latex:\index{=C3=BCberragender Wert}@@ drei > Punkte.[fn:133] Starke Werte markiert ihr mit =3D+=3D, =C3=BCberragende = Werte > mit =3D++=3D. So, are you saying that a footnote after sentence ending symbol must be a part of sentence? Is it common in German? Other languages? I'm afraid that the subject of sentence and is very tricky to handle for an arbitrary language. Not all the languages even use "." to separate sentences. If we want to properly fix the issue, we may need to create a dedicated rule-set on how to handle sentence end for different languages or maybe even implement a patch for Emacs itself. I'm afraid that regexps will not cut it. Best, Ihor