Customizable "hyphenate at" symbol list

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply

Do U want to have customazable list of characters after/at which TextPad is allowed to word-wrap?

yes
6
86%
no
1
14%
 
Total votes: 7

gold
Posts: 1
Joined: Fri Jun 27, 2003 10:43 am
Location: Germany
Contact:

Customizable "hyphenate at" symbol list

Post 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
Post Reply