From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.devel Subject: Re: Lack of tooling slowing down contributions Date: Mon, 17 Jun 2019 11:53:12 +0200 Message-ID: <87muig35dj.fsf@mbork.pl> References: <87ftocy5uv.fsf@cassou.me> <87a7ehea7w.fsf@mail.linkov.net> <292af6adcd90b805f8eb1c0241170221@webmail.orcon.net.nz> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="7355"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: Damien Cassou , Emacs developers , Noam Postavsky , Juri Linkov To: Phil Sainty Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 17 11:55:38 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hcoMS-0001kz-RV for ged-emacs-devel@m.gmane.org; Mon, 17 Jun 2019 11:55:36 +0200 Original-Received: from localhost ([::1]:45676 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcoMR-0002Cz-Rf for ged-emacs-devel@m.gmane.org; Mon, 17 Jun 2019 05:55:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33275) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcoMM-0002Ct-Em for emacs-devel@gnu.org; Mon, 17 Jun 2019 05:55:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcoML-0000sh-96 for emacs-devel@gnu.org; Mon, 17 Jun 2019 05:55:30 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:40852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hcoML-0000nq-1Z for emacs-devel@gnu.org; Mon, 17 Jun 2019 05:55:29 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 70115E6743; Mon, 17 Jun 2019 11:55:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ru0xAILR7Lb7; Mon, 17 Jun 2019 11:55:18 +0200 (CEST) Original-Received: from localhost (83.25.50.34.ipv4.supernova.orange.pl [83.25.50.34]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 725BBE63AE; Mon, 17 Jun 2019 11:55:18 +0200 (CEST) In-reply-to: <292af6adcd90b805f8eb1c0241170221@webmail.orcon.net.nz> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.110.48.8 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237772 Archived-At: On 2019-06-17, at 01:06, Phil Sainty wrote: > On 2019-06-17 07:20, Juri Linkov wrote: >>>> It would also be nice that tooling within Emacs helps contributors >>>> get >>>> their contributions right. For example, I would expect M-q to add the >>>> double-spacing at the end of sentences. >>> >>> If you have set sentence-end-double-space to t, then text like >>> >>> foo bar. >>> etc etc. >>> >>> Will be refilled by M-q with double spaces. But if you write >>> >>> foo bar. etc etc. >>> >>> I.e, using single spacing, then M-q won't change that, because Emacs >>> doesn't recognize that as being two separate sentences. >> >> This feature is sorely missed: every time I copy text from web browsers >> to Emacs I have to manually insert additional space at the end of every >> copied sentence before typing M-q. > > > You can't do this automatically, can you? One of the reasons that the > double-spaced sentence convention is useful in the first place is that > it unambiguously differentiates sentence endings from other uses of that > punctuation character which do *not* indicate the end of a sentence. > > E.g. for example, should not become "E.g. for example". > > P. G. Wodehouse should not end up as "P. G. Wodehouse". > > Prof. Moriarty should not end up as "Prof. Moriarty" > > When the same punctuation character is used for multiple things, I don't > imagine there's any way for Emacs to do this accurately, short of > natural- > language parsing (which sounds like a giant can of worms) ? > > > -Phil TeX uses a nice approximate solution where a period after a capital letter does not mean a sentence ending. This does not solve everything (of course), but helps in cases like "P. G. Wodehouse" (I love his Bertram Wooster stories, btw). On the other hand, it can be tripped by things like "He used to work in NASA. Now he's a full-time comic strip author". Best, -- Marcin Borkowski http://mbork.pl