Wordwrap
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
Roy Beatty
Re: Wordwrap
You could try editting text.syn -- the default syntax definition file for text files. I myself haven't explored syn files -- perhaps one of those settings could affect how TextPad groups letters into words.
-
Everett Dade
Re: Wordwrap
First, a belated thanks to Roy Beatty for his reply. I finally found time to try his suggestion last night. It almost works. I made up a test syntax file `test.syn' with the line `KeyWordChars = !-~', and very little else.. Why this? Because ! is the first printable ASCII character and ~ is the last one. And TP 4.5 promises not to break lines at symbols which could appear in key words. Based on the example syntax files downloaded with TP 4.5, the dash in the middle indicates a range, as in a-z or 0-9. Working with this syntax file generally made lines break only at spaces, no matter what printable characters I used. So TP 4.5 accepts arbitrary ranges. However, lines would still break after right parentheses ), right brackets ], and right braces }, but not after left versions (, [, and { of these symbols. What is more important for me, they still break after dashes -.
I conclude that some rules for line breaks have been hard-wired into TP 4.5. This is all right for a word precessor used to write letters or novels. It is not acceptable in a text processor, which much put up with the idiosycracies of various technical languages. In particular, the TeX mathematical typesetting lenguage, which I use constantly, treats carriage returns as spaces. And TeX is very sensitive to spaces. So an unwanted line break can lead to unwanted spaces, or worse, in the finished product.
TP 3.1, which we installed in an earlier computer and used satisfactorily for several years, did not suffer from this problem. At the moment, I am going to try to download a version of TP 3.x to replace TP 4.5 in my new computer.
I conclude that some rules for line breaks have been hard-wired into TP 4.5. This is all right for a word precessor used to write letters or novels. It is not acceptable in a text processor, which much put up with the idiosycracies of various technical languages. In particular, the TeX mathematical typesetting lenguage, which I use constantly, treats carriage returns as spaces. And TeX is very sensitive to spaces. So an unwanted line break can lead to unwanted spaces, or worse, in the finished product.
TP 3.1, which we installed in an earlier computer and used satisfactorily for several years, did not suffer from this problem. At the moment, I am going to try to download a version of TP 3.x to replace TP 4.5 in my new computer.