-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday, June 16, 2003, 10:58:42 AM, Dimka wrote:
>>> i receive messages that are poorly broken up into
>>> paragraphs [...]
B>> That's impossible to do reliably without artificial intelligence.
B>> If you think I'm wrong, try writing a rule in plain English that's
B>> detailed enough to write a PCRE macro from it.
> What about this:
> If there's a capital letter in the start of a new-line, then insert
> a new line.
> That should work 80% of the time, with silly errors. :) This macro
> would be helpful for me too. Can any one make it?
I'd enhance that to:
If (there's a capital letter at the start of a new line) AND (the
previous line ends before wrapcolumn minus length of first word
in the new line)
<insert new line>
else if (there's two or more spaces or <tab> in the start of a new
line)
<insert new line>
else
<do nothing>
end if
This rule should work all the time with 99% accuracy, except in cases
where the moron that doesn't use blank line between paragraphs doesn't
put capital letter at start of a new sentence, and where neither the
human would be able to see if there is a new paragraph (in cases where
last paragraph ends at the very end of the line).
But I don't think this can be done in TB!. :( :)
Domchi
-----BEGIN PGP SIGNATURE-----
Version: 6.5.8ckt
Comment: KeyID: 0x33FAB7E4
Comment: Fingerprint: FD16 4946 03AF 4E93 5B0F EE8B B81E AA54 33FA B7E4
iQA/AwUBPu2sCLgeqlQz+rfkEQIsZQCgtNYoy1zfoH+CdmIApSVf28mxJ8EAnilw
oq68VwpYWGrSjok+eiQXP3dP
=haV5
-----END PGP SIGNATURE-----
________________________________________________________
http://www.silverstones.com/thebat/TBUDLInfo.html