From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Andrus Subject: Re: Automatically escaping single spaces Date: Tue, 19 Mar 2013 09:20:34 -0600 Message-ID: <0C7B7610-34DF-47E5-970C-6CBBF3DDC8EF@gmail.com> References: <20130318134024.GC27876@kuru.dyndns-at-home.com> <87r4jcvy2v.fsf@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHyL5-0005Tz-6O for emacs-orgmode@gnu.org; Tue, 19 Mar 2013 11:20:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHyL3-00009u-0M for emacs-orgmode@gnu.org; Tue, 19 Mar 2013 11:20:35 -0400 Received: from mail-pb0-f50.google.com ([209.85.160.50]:63651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHyL2-00009f-P8 for emacs-orgmode@gnu.org; Tue, 19 Mar 2013 11:20:32 -0400 Received: by mail-pb0-f50.google.com with SMTP id up1so513983pbc.37 for ; Tue, 19 Mar 2013 08:20:31 -0700 (PDT) In-Reply-To: <87r4jcvy2v.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs Org mode Oops, forgot to reply to the list. On Mar 18, 2013, at 9:59 PM, Aaron Ecay wrote: > Hi Suvayu, >=20 > I=92ve had on my list of rainy day ideas for a while writing a = function > for org-export-filter-plain-text-functions that would implement > something like this. It should be as simple as doing a text replace, > either on =93. [^ ]=94 sequences in general or only spaces after a = given > list of abbreviations. The advantage of the second approach is that = it > could catch the case where =93e.g.=94 is at the end of a line in the = org > document. (You=92d also have to remove the newline: translate = =93e.g.\nfoo=94 > into =93e.g.\ foo=94). Another advantage to pre-specifying is that = you might > want a non-breaking space in =93Fig.~1=94 but a breakable space in = =93e.g.\ foo=94; > so you could keep two lists. FWIW, You shouldn't have to worry about newlines. If Emacs is setup = properly they should never appear except at sentence boundaries. Which = is to say, autofill and fill-paragraph know not to break lines in the = middle of a sentence after punctuation. If the user adds a newline = manually you can assume they meant it to be a new sentence. IIRC the = variable at play is `sentence-end-double-space'. -Ivan=