emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Automatically escaping single spaces


From: Aaron Ecay
Subject: Re: [O] Automatically escaping single spaces
Date: Mon, 18 Mar 2013 23:59:52 -0400
User-agent: Notmuch/0.15.2+43~ge848af8 (http://notmuchmail.org) Emacs/24.3.50.1 (x86_64-unknown-linux-gnu)

Hi Suvayu,

I’ve 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 “. [^ ]” 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 “e.g.” is at the end of a line in the org
document.  (You’d also have to remove the newline: translate “e.g.\nfoo”
into “e.g.\ foo”).  Another advantage to pre-specifying is that you might
want a non-breaking space in “Fig.~1” but a breakable space in “e.g.\ foo”;
so you could keep two lists.

-- 
Aaron Ecay



reply via email to

[Prev in Thread] Current Thread [Next in Thread]