W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2001

don't collapse two spaces at the end of a sentence

From: Dan Jacobson <jidanni@yam.com.tw>
Date: Tue, 11 Dec 2001 18:17:37 +0800
To: html-tidy@w3.org
Message-ID: <m2667e83i5.fsf@Mdan.jacobson.tw>
Gentlemen, are your sure that you always want to collapse two spaces
at the end of a sentence into one?  Perhaps you can let us "opt out"
of it maybe?   Let's see what Stallman says:

File: emacs,  Node: Sentences,  Next: Paragraphs,  Prev: Words,  Up: Text

Sentences

   The Emacs commands for manipulating sentences and paragraphs are
mostly on Meta keys, so as to be like the word-handling commands.

[...]

   The sentence commands assume that you follow the American typist's
convention of putting two spaces at the end of a sentence; they consider
a sentence to end wherever there is a `.', `?' or `!' followed by the
end of a line or two spaces, with any number of `)', `]', `'', or `"'
characters allowed in between.  A sentence also begins or ends wherever
a paragraph begins or ends.

[...]

   If you want to use just one space between sentences, you should set
`sentence-end' to this value:

     "[.?!][]\"')]*\\($\\|\t\\| \\)[ \t\n]*"

You should also set the variable `sentence-end-double-space' to `nil'
so that the fill commands expect and leave just one space at the end of
a sentence.  Note that this makes it impossible to distinguish between
periods that end sentences and those that indicate abbreviations.

[Dan says: can we please not force us to mess with emacs defaults due
to tidy inflexibility?]

[By the way, i'm still to worried about BGCOLOR="black" etc. to use
newest tidy]
-- 
http://www.geocities.com/jidanni/ Tel+886-4-25854780
Received on Tuesday, 11 December 2001 10:36:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:47 GMT