On 2013–02–15 "H. Özoguz" wrote:
Which text editor can do that, find too long sentences?
None, since no editor knows by default what “too long” is. But a few editors (at least vim and I assume emacs as well) have an idea of what a sentence is. Both are scriptable, which means you can tell them what you consider “too long”. If you use a different editor read the manual or ask your favourite search engine. In vim pressing “vis” (visualise inner sentence) marks the current sentence, then pressing “g<Ctrl-g>” yields: Selected 2 of 4 lines; 14 of 50 words; 82 of 296 bytes That means current sentence is 82 bytes long. The rest is up to you. Pick a language you like, vim uses its own scripting language but also has bindings for python, perl, lua, etc. Pseudo-code: go to begin of file start: get byte length of sentence if length > max_length % do something fi move on to the next sentence goto start Or just define a regular expression for a sentence (google is your friend) and use a scripting language directly if your editor is not scriptable. Marco