From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: Automatically escaping single spaces Date: Mon, 18 Mar 2013 23:59:52 -0400 Message-ID: <87r4jcvy2v.fsf@gmail.com> References: <20130318134024.GC27876@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHniO-0002pF-96 for emacs-orgmode@gnu.org; Mon, 18 Mar 2013 23:59:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHniN-0002HA-DF for emacs-orgmode@gnu.org; Mon, 18 Mar 2013 23:59:56 -0400 Received: from mail-vc0-f179.google.com ([209.85.220.179]:35374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHniN-0002H2-9D for emacs-orgmode@gnu.org; Mon, 18 Mar 2013 23:59:55 -0400 Received: by mail-vc0-f179.google.com with SMTP id gf12so34867vcb.38 for ; Mon, 18 Mar 2013 20:59:54 -0700 (PDT) In-Reply-To: <20130318134024.GC27876@kuru.dyndns-at-home.com> (Suvayu Ali's message of "Mon, 18 Mar 2013 14:40:24 +0100") 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: Suvayu Ali Cc: Emacs Org mode Hi Suvayu, I=E2=80=99ve had on my list of rainy day ideas for a while writing a functi= on 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 =E2=80=9C. [^ ]=E2=80=9D sequences in general or only spaces afte= r a given list of abbreviations. The advantage of the second approach is that it could catch the case where =E2=80=9Ce.g.=E2=80=9D is at the end of a line i= n the org document. (You=E2=80=99d also have to remove the newline: translate =E2=80= =9Ce.g.\nfoo=E2=80=9D into =E2=80=9Ce.g.\ foo=E2=80=9D). Another advantage to pre-specifying is = that you might want a non-breaking space in =E2=80=9CFig.~1=E2=80=9D but a breakable space= in =E2=80=9Ce.g.\ foo=E2=80=9D; so you could keep two lists. --=20 Aaron Ecay