fredizzimo / amphetype

Automatically exported from code.google.com/p/amphetype
1 stars 0 forks source link

Collapse spaces #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It is visually very hard to distinguish one space from 2 spaces, especially
when they come at the end of a line and it's unclear what's screen
whitespace used to justify and what's actual spaces in the text. Given that
Amphetype demands exact 100% fidelity, this can lead to errors. More than
one of my texts has a lower WPM than it ought to because an invisible
double-space screwed me up.

The easiest way would be to just disallow more than one space in a row; 2
or more would be filtered down into 1.

Original issue reported on code.google.com by gwe...@gmail.com on 17 Apr 2010 at 9:14

GoogleCodeExporter commented 9 years ago
I had this problem as well.  What I have done is add a user configurable 
"strip" regex.  Anything it matches, is replaced with a single space, so to 
replace all double spaces on import I set the strip regex option in the UI to 
"\s\s".  Its also pretty useful for taking out other symbols and such from a 
source text.

Find it here:

https://github.com/agbell/amphetype

Original comment by AGB...@gmail.com on 5 Feb 2014 at 2:30