Thread View: news.software.readers
2 messages
2 total messages
Started by Sven Guckes
Tue, 03 Mar 1998 00:00
Re: indentprefix and quoted text
Author: Sven Guckes
Date: Tue, 03 Mar 1998 00:00
Date: Tue, 03 Mar 1998 00:00
44 lines
2441 bytes
2441 bytes
phenix@interpath.com (John Moreno): > > An how do you define "new text"? > Well, I've been talking about this recently and there are a couple of > ways to go about it - YANW 3 does rewrapping of quoted text ... That's nice. Or so it seems. How does YANW define quoted text? How does YANW determine that some text shell NOT be wrapped at all? Usually you do not want text to be wrapped - especially when you need the connection between lines, such as in tables: foo/bar column1 column2 row1 1,1 1,2 row2 2,1 2,2 > ... YANW let's the user set the indentprefix and then > looks for non-alphanum to check for the previous prefixes So the indentprefix is configurable - thus allowing more confusion. :-/ How is non-alphanum defined? [^a-zA-Z0-9] ? > MacSOUP also does rewrapping but it decides what the prefix is based upon > commonality between lines. If you expect to have people trying to > change/hide the prefix then MacSOUPs method will work better. So you should use MacSOUP when you expect that YANW users will change the indentprefix? ;-) > But, unless the newsreader offers global search/replace (which I'll > admit is almost certain with a external editor) YANW3 method would work > just fine - and if they bother to go through it by hand and change all > of the prefix then at least THEY think everything is necessary. Sure. But why do all programs have to define their own kind of editing? Wouldn't it be a lot easier if you could use your favourite editor? Sven [spoilt by Unix]
Re: indentprefix and quoted text
Author: John Moreno
Date: Tue, 03 Mar 1998 00:00
Date: Tue, 03 Mar 1998 00:00
97 lines
4867 bytes
4867 bytes
Sven, why are your messages suddenly not having a References header? In comp.sys.mac.comm Sven Guckes <guckes@math.fu-berlin.de> wrote: > phenix@interpath.com (John Moreno): > > > An how do you define "new text"? > > Well, I've been talking about this recently and there are a couple of > > ways to go about it - YANW 3 does rewrapping of quoted text ... > > That's nice. Or so it seems. It is. > How does YANW define quoted text? Well, I haven't seen the code. But a regular expression to do the same thing would probably look something like this $YAquotestr='> '; # user setable /($YAquotestr[^a-zA-Z0-9]*)/; > How does YANW determine that some > text shell NOT be wrapped at all? It originally wraps text before quoting (if necessary) and then doesn't wrap quoted text except upon command. So if I take the above three lines and past them below. They don't get wrapped at all since they are too short. Now the way it looks you might have intended the lines to be just like that, but the 2nd and 3rd lines look like they should be on the same line if possible, so I'd just select those two lines and chose the Rewrap command, and I'd end up with this: > How does YANW define quoted text? > How does YANW determine that some text shell NOT be wrapped at all? So I'd get the two lines above with out having to type at all. > Usually you do not want text to be wrapped - especially when > you need the connection between lines, such as in tables: > > foo/bar column1 column2 > row1 1,1 1,2 > row2 2,1 2,2 Well, you have to do something about lines over 80 chars. But most tables don't have to be worried about since it'd take a while for them to get to the stage where things start looking ugly. And in any case it won't look any worse than any other wrapping. > > ... YANW let's the user set the indentprefix and then > > looks for non-alphanum to check for the previous prefixes > > So the indentprefix is configurable - thus allowing more confusion. :-/ Well, not for YA it doesn't! > How is non-alphanum defined? [^a-zA-Z0-9] ? I'm not sure exactly - but that seems approximately right. > > MacSOUP also does rewrapping but it decides what the prefix is based upon > > commonality between lines. If you expect to have people trying to > > change/hide the prefix then MacSOUPs method will work better. > > So you should use MacSOUP when you expect that > YANW users will change the indentprefix? ;-) Nope, both of them know what THEY are using as a indentprefix - this is a advantage that standalone programs can have or multiple cooperating progrmas. > > But, unless the newsreader offers global search/replace (which I'll > > admit is almost certain with a external editor) YANW3 method would work > > just fine - and if they bother to go through it by hand and change all > > of the prefix then at least THEY think everything is necessary. > > Sure. But why do all programs have to define their own kind of editing? > Wouldn't it be a lot easier if you could use your favourite editor? Well, that really depends upon how extensible the editor is and what it knows about usenet messages. Most of them don't know anything about them, and so don't know to wrap before 80 or how to Rewrap or anything like that. -- John Moreno I am trying to convince the author of YA-NewsWatcher that the latest version should be released to the public. He doesn't think there's much interest in a new version. Help me prove him wrong. To do so, send me mail <mailto:phenix@interpath.com> with a Subject of New YA. Comments on what you like/dislike in the current version will be appreciated.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads