At 2020-07-25T13:09:29-0500, Dave Kemper wrote: > On 7/25/20, Steve Izma <si...@golden.net> wrote: > > Doesn't this depend on the definition of a word boundary? > > Yes. I admit I've done no testing or research for this thread, but > past experience tells me that the \% escape treats whitespace and not > much else as a word separator. For instance, I've found that > > "\%Abracadabra!" > > doesn't inhibit hyphenation in the word abracadabra, but creates a > hyphenation point between the opening quotation mark and the word. > That's an irrational interpretation, but it's a minor irrationality > that I've learned to live with. (My preprocessing script backs up to > the nearest whitespace before adding the \% so I don't have to think > about it.)
My working model of a groff "word" for input purposes is a sequence of non-space characters or space-related escapes. In Vim manual terms, a groff word is a WORD. I'm not positive, but I think drawing and motion escapes constitute word boundaries as well. Another way to think of it is that a word is a contiguous sequence of anything other than a drawing command that puts ink on a page. In principle, hyphenation could be inserted adjacent to punctuation chaacters. We'd just need to set .cflags appropriately for punctuation characters and have them in the hyphenation pattern files. There are probably problems with my conceptions above. Regards, Branden
signature.asc
Description: PGP signature