Menu

#2811 soft wrap: wordBreakChars are not regognized

open
nobody
None
7
2012-04-28
2007-02-10
No

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 "_".

Discussion

  • Matthieu Casanova

    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

     
  • Robert Schwenn

    Robert Schwenn - 2007-02-10

    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.

     
  • Alan Ezust

    Alan Ezust - 2008-06-14
    • priority: 5 --> 7
    • summary: wword wrap: wordBreakChars are not regognized --> soft wrap: wordBreakChars are not regognized
     
  • Alan Ezust

    Alan Ezust - 2008-06-14

    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...

     
  • Kazutoshi 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.

     
  • Alan Ezust

    Alan Ezust - 2011-12-03

    kazutoshi, are you still working on this?

     
  • Alan Ezust

    Alan Ezust - 2011-12-03
    • assigned_to: nobody --> k_satoda
     
  • Kazutoshi Satoda

    • assigned_to: k_satoda --> nobody
     

Log in to post a comment.