PreviousNextTracker indexSee it online !

(13/211) 2811 - soft wrap: wordBreakChars are not regognized

The buffer-local property "wordBreakChars" defines (from the help:) "Characters, in addition to spaces and tabs, at which lines may be split when word wrapping".

My first line of a file is:
:wrap=soft::maxLineLen=50::wordBreakChars=_\\\.:

But wrapping is not done at backslash or dot or "_".

Submitted rschwenn - 2007-02-10 11:29:45 Assigned
Priority 7 Labels
Status open Group None
Resolution None

Comments

2007-02-10 17:14:16
kpouer

Logged In: YES
user_id=285591
Originator: NO

Hi, it seems this local property is used only for hard wrap.
Soft wrap uses the token marker to know if it should wrap.
But it seems the syntax package do not use this property

2007-02-10 17:43:19
rschwenn

Logged In: YES
user_id=1486645
Originator: YES

Means, that soft wrap performs wrapping only at spaces and tabs actually?

Generally I'd expected, that soft and hard wrap have the same results for my eyes.
A good reason for differences I could see in the fact, that hard wrap really edits the file and probably should be restricted in wrapping. But that is not the case.

See also Feature Requests item #1624755.

2008-06-14 21:06:58
ezust

- **priority**: 5 --> 7
- **summary**: wword wrap: wordBreakChars are not regognized --> soft wrap: wordBreakChars are not regognized

2008-06-14 21:06:58
ezust

Logged In: YES
user_id=935841
Originator: NO

First question: why is "extra word characters" showing up in Editing properties and not this other "wordBreakChars" ?
I would like to see both of these in the EditingOptionsPane.

Second, I want to bump up the priority of this item. I would like to see wordBreakCharacters recognized in soft-wrap also. Although this may be something that we need to put off until after the textarea is replaced...

2009-01-03 14:21:03
k_satoda

A patch using BreakIterator has been submitted.
https://sourceforge.net/support/tracker.php?aid=2483695
The patch may reduce or eliminate the needs of "wordBreakChars" as an
additional property.

2011-12-03 20:10:37
ezust

- **assigned_to**: nobody --> k_satoda

2011-12-03 20:10:37
ezust

kazutoshi, are you still working on this?

2012-04-28 16:46:56
k_satoda

- **assigned_to**: k_satoda --> nobody

2012-04-28 16:46:56
k_satoda

I'm not working on this. However, the bellow mentioned patch was
committed at r21116 and the change made it easier to tweak the rule of
soft wrap and hopefully unify the rule with hard wrap. But it still
needs much work.

I found the property wordBreakChars has been there since the initial
revision in CVS. It doesn't care about soft wrap in the first place.
http://jedit.svn.sourceforge.net/jedit/?view=rev&rev=3791
http://jedit.svn.sourceforge.net/viewvc/jedit/jEdit/trunk/doc/users-guide/customizing.xml?view=markup&pathrev=3791
http://jedit.svn.sourceforge.net/viewvc/jedit/jEdit/trunk/org/gjt/sp/jedit/textarea/JEditTextArea.java?view=markup&pathrev=3791

I updated the documentation to match the fact in r21611.