Page 1 of 1

Customizable "hyphenate at" symbol list

Posted: Fri Jun 27, 2003 11:08 am
by gold
When I am using word-wrapping, TextPad has its own internal list of symbols (characters) which are good to break words/sentenses at. Those include space, comma, hyphen, brakets, etc.....I don't know the whole list.

The problem comes when I am working with LaTeX document. For example I write:

Code: Select all

This effect was investigated both theoretically\cite{
Xu:1999} and experimentally \cite{Wellknown:2001:SF,
Wellstood:2000:zigzag}
Word wrapping above is done by TextPad in this way.
What do we see? TextPad decided that it is okay to word wrap after '{' and also after ',', although there were no space after them. If I work in the mode when hard breaks are inserted at the end of lines (immidiately or when I save) I will get additional '\r\n' (return and line feed) characters inserted after '{' and also after ','. When I will pass this document to LaTeX compiler, LaTeX will complain because it is not supposed to be any '\r\n' (which are interpreted like space) after '{' and also after ','. Thus TextPad's word wrapping routine has introduced the bug in LaTex file.

What can be done? One very simple thing. Associate with each document class a list of characters which are okay to wrap at/after. In the most strict case this will be only space. But let the user choose.

So, for LaTeX documents I would definitely remove "{}()[],:" from this list.

Edward