all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marcin Borkowski <mbork@mbork.pl>
To: Phil Sainty <psainty@orcon.net.nz>
Cc: Damien Cassou <damien@cassou.me>,
	Emacs developers <emacs-devel@gnu.org>,
	Noam Postavsky <npostavs@gmail.com>,
	Juri Linkov <juri@linkov.net>
Subject: Re: Lack of tooling slowing down contributions
Date: Mon, 17 Jun 2019 11:53:12 +0200	[thread overview]
Message-ID: <87muig35dj.fsf@mbork.pl> (raw)
In-Reply-To: <292af6adcd90b805f8eb1c0241170221@webmail.orcon.net.nz>


On 2019-06-17, at 01:06, Phil Sainty <psainty@orcon.net.nz> 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



  parent reply	other threads:[~2019-06-17  9:53 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-14  7:38 Lack of tooling slowing down contributions Damien Cassou
2019-06-14  7:58 ` Eli Zaretskii
2019-06-14 11:19 ` Noam Postavsky
2019-06-16 19:20   ` Juri Linkov
2019-06-16 22:44     ` Stefan Monnier
2019-06-17 21:08       ` Juri Linkov
2019-06-16 23:06     ` Phil Sainty
2019-06-17  5:44       ` Van L
2019-06-17  9:53       ` Marcin Borkowski [this message]
2019-06-17 10:22         ` Yuri Khan
2019-06-17 21:19       ` Juri Linkov
2019-06-18 21:29         ` Juri Linkov
2019-06-19 12:50           ` Andy Moreton
2019-06-19 20:47             ` Juri Linkov
2019-06-19 21:26               ` Noam Postavsky
2019-06-17  6:57     ` Damien Cassou

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

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

  git send-email \
    --in-reply-to=87muig35dj.fsf@mbork.pl \
    --to=mbork@mbork.pl \
    --cc=damien@cassou.me \
    --cc=emacs-devel@gnu.org \
    --cc=juri@linkov.net \
    --cc=npostavs@gmail.com \
    --cc=psainty@orcon.net.nz \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.