help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FW: bug#32758: 26.1 emacs-mac 7.2; forward-sentence in eww


From: Yuri Khan
Subject: Re: FW: bug#32758: 26.1 emacs-mac 7.2; forward-sentence in eww
Date: Wed, 10 Oct 2018 18:28:25 +0700

On Wed, Oct 10, 2018 at 5:17 PM Van L <van@scratch.space> wrote:

> I am looking for a one-space after punctuation sentence-ending for M-e to 
> jump by.
>
> Disabling the following variable stops short at Nov. or Gov. (see below)
>
> ┌────
> │ (setq sentence-end-double-space nil)
> └────
>
> ┌────
> │ Haley’s departure also stoked speculation she could replace Lindsey Graham 
> as the senator from
> │ South Carolina, a possibility that Trump played down. Talk in Washington is 
> that should Trump
> │ replace Attorney General Jeff Sessions with Graham after the Nov. 6 
> congressional elections,
> │ South Carolina Gov. Henry McMaster would be responsible for selecting a 
> replacement to serve
> │ until the 2020 election. McMaster was previously Haley’s No. 2 in the state.
> └────
>
> and I’m aware of names like A. B. C. Nurmagomedov which will stop early, too.

It might be a good idea to treat the sequence “period followed by a
single non-breaking space” as not ending a sentence. This, coupled
with the proper use of non-breaking spaces with abbreviations and
initials, will go a long way in solving the above false positive in
sentence end detection.

> ┌────
> │ 178  (defun sentence-end ()
…
> │ 191        ;; We accept non-break space along with space.
…
> │ 199         "[ \u00a0\t\n]*")))
> └────



reply via email to

[Prev in Thread] Current Thread [Next in Thread]