info-mac@uw-beaver (info-mac) (07/13/84)
From: Mike Schuster <MIKES@CIT-20.ARPA> You can change the set of word delimiting characters used by the Text Edit routines for word wrap calculations and double click selections by installing a non-zero address of a routine in the field 'wordBreak' of a TERecord. The default set of delimiting characters is /00 thru /20, inclusive. The routine is passed the address of the first character of the text in a0, and an offset to the character in question in d0. The routine returns with d0 nonzero if the character is a delimiter. Also, the status register should be set reflecting the value in d0. As a sample, this routine defines delimiters to be /00 thru /2f, inclusive. .text .globl wdbreak wdbreak: cmpb #/2f,a0@(0,d0:w) sls d0 tstb d0 rts One thing to remember: defining a period '.' to be a delimiter might be great for editing C programs, but lousy when word wrapping causes a period at the end of a sentence to appear on the next line all by itself. -------