From: "André A. Gomes" <andremegafone@gmail.com>
To: Juri Linkov <juri@linkov.net>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, 56844@debbugs.gnu.org
Subject: bug#56844: [PATCH] Refactor repunctuate-sentences to accommodate corner case.
Date: Tue, 02 Aug 2022 14:43:42 +0300 [thread overview]
Message-ID: <8735eezx8x.fsf@gmail.com> (raw)
In-Reply-To: <865yjd5ax6.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 31 Jul 2022 22:49:33 +0300")
Juri Linkov <juri@linkov.net> writes:
>>> It now gracefully handles the case when abbreviations such as e.g. or
>>> i.e. are used in sentences.
>>
>> [...]
>>
>>> + (regexp "\\([]\"')]?\\)\\([.?!]\\)\\([]\"')]?\\) +\\([\"')[:upper:]]\\)")
>>
>> I'm not quite sure I understand this patch. Are you changing this to
>> only consider punctuation that's followed by an upper-case character to
>> be sentence-end punctuation?
>
> It would be better to add such heuristics to repunctuate-sentences-filter,
> so anyone could customize it.
In general I'd agree with you, but this patch is actually fixing a bug,
not introducing a personal preference. That's how I see it at least.
--
André A. Gomes
"You cannot even find the ruins..."
next prev parent reply other threads:[~2022-08-02 11:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-30 18:06 bug#56844: [PATCH] Refactor repunctuate-sentences to accommodate corner case André A. Gomes
2022-07-31 8:34 ` Lars Ingebrigtsen
2022-07-31 19:49 ` Juri Linkov
2022-08-02 11:43 ` André A. Gomes [this message]
2022-08-02 12:48 ` Visuwesh
2022-08-02 11:41 ` André A. Gomes
2022-08-02 11:45 ` Lars Ingebrigtsen
2022-08-02 12:10 ` Robert Pluim
2022-08-02 12:35 ` Stefan Kangas
2022-08-02 19:59 ` Juri Linkov
2022-09-02 10:47 ` Lars Ingebrigtsen
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8735eezx8x.fsf@gmail.com \
--to=andremegafone@gmail.com \
--cc=56844@debbugs.gnu.org \
--cc=juri@linkov.net \
--cc=larsi@gnus.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.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).