when Microsoft Word or LibreOffice Writer would be available):
The end of a line will finish with a lower case, and possibly punctuation like ', :', that are not end of sentences, and can be continued with following line in most case (not lists, for example).Īnother approach could be using a macro (e.g. Or better with French where we put spaces before ' :' and ' ' : (\l?)\n (but if it's copied from a PDF, there won't be ending spaces) (\l?)\n It should be, if we want ending with lower case + possible space: Sentences begining by space - or tabs - can be an error or some other problems or formatting, I'd rather check them manually (it's more easier than searching a whole book for errors in concatened text later), so I'll stay with: bad idea!)įor a beginning of cutted sentence, you'll have a lower case at the beginning, and perhaps a space before, but I wouldn't replace all line begining by a space like you do (your '|', meaning 'OR', do this).
(adding punctuation after a single lower case was an error in my first post, too lazy to rewrite the expression, I moved the \n in front. Yes, but you put an 'OR', and it'll choose as begining a lower case or a space.
I have added only one space if string begins from space.