emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: "Dr. Arne Babenhauserheide" <arne_bab@web.de>
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/)]
Date: Wed, 03 Aug 2022 17:58:52 +0800	[thread overview]
Message-ID: <87zgglir6r.fsf@localhost> (raw)
In-Reply-To: <877d3q21yn.fsf@web.de>

"Dr. Arne Babenhauserheide" <arne_bab@web.de> 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] — it is not recognized as end of a sentence:
>
> Die Anzahl und Stärke der Werte ist durch eure
> gewählte Machtstufe begrenzt:[fn:23] Ein starker
> Wert@@latex:\index{Starker Wert}@@ kostet einen Punkt und ein
> überragender Wert@@latex:\index{überragender Wert}@@ drei
> Punkte.[fn:133]  Starke Werte markiert ihr mit =+=, überragende Werte
> mit =++=.

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


      reply	other threads:[~2022-08-03 10:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-02  5:55 [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/)] Dr. Arne Babenhauserheide
2022-08-02 13:23 ` Ihor Radchenko
2022-08-02 13:44   ` Dr. Arne Babenhauserheide
2022-08-03  9:58     ` Ihor Radchenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zgglir6r.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=arne_bab@web.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).