vile
[Top][All Lists]
Advanced

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

Re: [vile] Switch for handling of whitespace on J


From: Paul Fox
Subject: Re: [vile] Switch for handling of whitespace on J
Date: Thu, 01 Nov 2012 21:23:02 -0400

thomas wrote:
 >  
 > So... thinking this is a new feature request, the question comes up:
 > what's the most useful way to extend this.  There are 3 choices
 > embedded here:
 > 
 >      a) join without inserting a space
 >      b) insert two spaces
 >      c) insert single space
 > 
 > We could add three corresponding mode values (whether character-class,
 > regular expression or whatever):
 > 
 >      join-zero-spaces
 >      join-two-spaces
 >      join-one-spaces
 > 
 > and then you'd only have to have set something like
 > 
 >      join-zero-spaces={whatever makes no matches}
 >      join-two-spaces={whatever makes no matches}
 >      join-one-spaces={nonspace as is done already}
 > 
 > Regular expressions might be overkill, but would at least be consistent
 > with everything else in vile.  Character classes haven't been used as
 > mode-values (yet), but would be close to the current logic.  (The syntax
 > and semantics would differ - gotta choose one or the other at design time).

and i _think_ this might allow for extending the two-space rule, so
that one doesn't end up with two spaces after mr. or mrs. or st. etc.
(i used to include "i.e." and "e.g." in that list, until you pointed
out that correctly they're both always followed by a comma.  that made
my editing life much happier.  :-)

paul
=---------------------
 paul fox, address@hidden (arlington, ma, where it's 44.2 degrees)



reply via email to

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