|
From: | John W. Eaton |
Subject: | Re: first help sentence truncated |
Date: | Thu, 30 Aug 2018 12:18:18 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
On 08/29/2018 05:06 PM, Rik wrote:
On 08/29/2018 01:41 PM, Juan Pablo Carbajal wrote:Hi, Just a question, but why instead of re-inventing the english language, do not chekc for period followed by non-characters strings and end of line? something in the lines of (assuming non-greedy *): '.*[.]\W*$' I do not see why a regex cannot handle abbreviations vs. periods.That would catch multiple sentences. For example,
It seems to me we could use the same rules as Texinfo (based on the rules for TeX) for determining the ends of sentences and then require the extra work for those cases when the rules aren't sufficient. The Texinfo rules may be found here:
https://www.gnu.org/software/texinfo/manual/texinfo/texinfo.html#Ending-a-Sentence and https://www.gnu.org/software/texinfo/manual/texinfo/texinfo.html#Not-Ending-a-SentenceI wouldn't work too hard on this, but it seems fairly straightforward if someone who is interested.
Also, for the record, I generally type two spaces at the end of a sentence. It seems natural to me, as it's a habit formed many years ago when learning to type on real typewriters with fixed-space characters. But I also realize that style is falling out of favor now, even when using fixed-width fonts or lousy "word processors" that don't automatically insert the extra space at ends of sentences that one would expect to see with good quality typesetting.
jwe
[Prev in Thread] | Current Thread | [Next in Thread] |