#411 word wrap in pdwindow


This patch changes the Pd window to make line breaks at word boundaries. This is more legible than the default text widget behavior, which is to break at character boundaries.


  • Jonathan Wilkes

    Jonathan Wilkes - 2011-08-01
  • Hans-Christoph Steiner

    this would make a good GUI plugin, it would be simple, something like:

    .pdwindow.text configure -wrap word

  • Jonathan Wilkes

    Jonathan Wilkes - 2011-08-17

    I'm not quite sure what the purpose would be. I'm submi

    tting this as an improvement over tk's default wrapping

    , which splits atoms in the pdwindow. I suppose there's

    the slight side effect of introducing more ambiguity b

    etween word wrapping and the line breaks which represen

    t the end of a message, but generally one scans for "pr

    int" or whatever one specified as an argument to print,

    followed by a colon. (Anyhow, the way to get rid of t

    hat ambiguity altogether is to have two bgcolors that a

    lternate each time something is posted to the pdwindow.


  • Hans-Christoph Steiner

    In all the tools I use, from terminals to log viewers to programming editors, they wrap on characters rather than words. That's pretty typical for UNIX or GNU tools. I am sure many people would prefer word wrapping, therefore a GUI plugin gives us both options.



Cancel  Add attachments

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks