Thread View: news.software.readers
11 messages
11 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
20 lines
1586 bytes
1586 bytes
phenix@interpath.com (John Moreno): > I'd say the way to do it would probably be to require something like 2% new > text per article - which means that it wouldn't even show up on most test. An how do you define "new text"? Especially when folks change the indentprefix to indicates quoted text? Here we go again... Sven -- Sven Guckes guckes@math.fu-berlin.de The Holy Wars of Usenet: CODE: base64/quoted-printable EDITOR: emacs/vi OS: mac/pc SIGS: sigdashesline="-- " sigdashes=ON PAGER: less/more TEXT: indentprefix="> " SHELL: sh/bash/csh/tcsh/zsh
Re: indentprefix and quoted text
Author: John Moreno
Date: Tue, 03 Mar 1998 00:00
Date: Tue, 03 Mar 1998 00:00
40 lines
2896 bytes
2896 bytes
In comp.sys.mac.comm Sven Guckes <guckes@math.fu-berlin.de> wrote: > phenix@interpath.com (John Moreno): > > I'd say the way to do it would probably be to require something like 2% new > > text per article - which means that it wouldn't even show up on most test. > > An how do you define "new text"? > Especially when folks change the > indentprefix to indicates quoted text? > > Here we go again... 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 (which requires finding the prefix of not only THIS article but that of previous articles also) and it let's the user set the indentprefix and then looks for non-alphanum to check for the previous prefixes, 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. 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. Which is all you can really hope for - that the person posting has considered what they are doing and have DECIDED that everything is necessary. Making it difficult in this case is a good thing - the more difficult it is the more thought they are apt to put into it. -- 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.
Re: indentprefix and quoted text
Author: Russell Schulz
Date: Wed, 04 Mar 1998 00:00
Date: Wed, 04 Mar 1998 00:00
18 lines
1660 bytes
1660 bytes
phenix@interpath.com (John Moreno) writes: > 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 (which requires finding the prefix of not only THIS article > but that of previous articles also) why `requires'? I resent the time I put into my code looking for repeated characters that might be quoting, and adding special cases for things that are often used in a quote-like way but are almost never quotes (just try reading comp.lang.perl.* where 1/3 the lines begin with `$'). -- Russell_Schulz@locutus.ofB.ORG Shad 86c
Re: indentprefix and quoted text
Author: John Moreno
Date: Wed, 04 Mar 1998 00:00
Date: Wed, 04 Mar 1998 00:00
59 lines
3368 bytes
3368 bytes
In comp.sys.mac.comm Russell Schulz <Russell_Schulz@locutus.ofB.ORG> wrote: > phenix@interpath.com (John Moreno) writes: > > > 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 (which requires finding the prefix of not only THIS article > > but that of previous articles also) > > why `requires'? > > I resent the time I put into my code looking for repeated characters > that might be quoting, and adding special cases for things that are > often used in a quote-like way but are almost never quotes (just > try reading comp.lang.perl.* where 1/3 the lines begin with `$'). Well, even if you stick with the basic '> ' or '>' you still have to exame the string and see how much it was used on that line. In fact that's a problem I've seen quite frequently with programs - they do a bit of rewrapping on followup article creation but don't think it through. You get lines that look like this: ****************************************************** > > This is a comment by person X which was over 80 > chars long. > > and the wrapping looks terrible. ****************************************************** While they should have at least looked like this, if they were going to do that: ****************************************************** > > This is a comment by person X which was over 80 > > chars long. > > and the wrapping looks terrible. ****************************************************** Which isn't great, but isn't as bad - and it will enable programs like MacSOUP, or YA-NewsWatcher to to fix it: ****************************************************** > > > This is a comment by person X which was over 80 > > > chars long. and the wrapping looks terrible. ****************************************************** Like so when the user selects it and issues the Rewrap command. -- 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.
Re: indentprefix and quoted text
Author: Sven Guckes
Date: Thu, 05 Mar 1998 00:00
Date: Thu, 05 Mar 1998 00:00
20 lines
1554 bytes
1554 bytes
Sven Guckes <guckes@math.fu-berlin.de> writes : An how do you define "new text"? : Especially when folks change the : indentprefix to indicates quoted text? dasher@netcom.com (Anton Sherwood): > Well, the obvious thing [...] is to see whether > "first nonblank character in line" is the same in a majority of lines. Why do a statistical evaluation on the article at all? The definition of the indentprefix as "> " should suffice to recognize quoted text. That's all it takes. Sven -- http://www.math.fu-berlin.de/~guckes/rfc/minimal.text.structure.html
Re: indentprefix and quoted text
Author: Russell Schulz
Date: Thu, 05 Mar 1998 00:00
Date: Thu, 05 Mar 1998 00:00
48 lines
2543 bytes
2543 bytes
phenix@interpath.com (John Moreno) writes:
> ******************************************************
>> > This is a comment by person X which was over 80
>> chars long.
>> > and the wrapping looks terrible.
> ******************************************************
broken input => broken output.
> While they should have at least looked like this, if they were going to
> do that:
>
> ******************************************************
>> > This is a comment by person X which was over 80
>> > chars long.
>> > and the wrapping looks terrible.
> ******************************************************
see my `resent' comment earlier; I can cater to some accidental
rudeness, but I'm not going to cater to all of it.
I quote (and rewrap as necessary); I don't perfectly rewrap what
others didn't. usually, I'll delete it anyway.
>> > 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 (which requires finding the prefix of not only THIS article
>> > but that of previous articles also)
>>
>> why `requires'?
>
> Well, even if you stick with the basic '> ' or '>' you still have to
> exame the string and see how much it was used on that line.
yes; if everyone used `>' you could just count them.
why is a 2nd level required, and a 3rd level not?
> | this would get
> | wrapped correctly
> | ] but this would ] not get wrapped ] correctly?
--
Russell_Schulz@locutus.ofB.ORG Shad 86c
Re: indentprefix and quoted text
Author: Anton Sherwood
Date: Thu, 05 Mar 1998 00:00
Date: Thu, 05 Mar 1998 00:00
21 lines
1469 bytes
1469 bytes
: phenix@interpath.com (John Moreno): : > I'd say the way to do it would probably be to require something like 2% new : > text per article - which means that it wouldn't even show up on most test. Sven Guckes <guckes@math.fu-berlin.de> writes : An how do you define "new text"? : Especially when folks change the : indentprefix to indicates quoted text? : Here we go again... Well, the obvious thing (to this naive newcomer to the discussion) is to see whether "first nonblank character in line" is the same in a majority of lines. -- "How'd ya like to climb this high WITHOUT no mountain?" --Porky Pine 70.6.19 Anton Sherwood *\\* +1 415 267 0685 *\\* DASher at netcom point com >>>>>>>>>>>>>>>>>>>> visiting New Mexico, end of March <<<<<<<<<<<<<<<<<<<<
Re: indentprefix and quoted text
Author: John Moreno
Date: Thu, 05 Mar 1998 00:00
Date: Thu, 05 Mar 1998 00:00
158 lines
7240 bytes
7240 bytes
Russell Schulz <Russell_Schulz@locutus.ofB.ORG> wrote: > phenix@interpath.com (John Moreno) writes: > > > ****************************************************** > >> > This is a comment by person X which was over 80 > >> chars long. > >> > and the wrapping looks terrible. > > ****************************************************** > > broken input => broken output. Even if it is broken a bit of elementry work can do a reasonable job of fixing it. And it might not have (necessarily) been broken when they got it. Say the user reads a article that looks like: ****************************************************** > > This is a comment by person X which is EXACTLY 80 chars long. > > and the wrapping looks terrible. ****************************************************** Now when they go to followup a newsreader that doesn't produce broken output will have something pretty similiar to what I did below, while a newsreader that does produce broken output will do the above (my first example). > > While they should have at least looked like this, if they were going to > > do that: > > > > ****************************************************** > >> > This is a comment by person X which was over 80 > >> > chars long. > >> > and the wrapping looks terrible. > > ****************************************************** > > see my `resent' comment earlier; I can cater to some accidental > rudeness, but I'm not going to cater to all of it. > > I quote (and rewrap as necessary); I don't perfectly rewrap what > others didn't. usually, I'll delete it anyway. Yeah, but if more newsreaders didn't produce bad output and more (not necessarily the exact same set) did offer a way to correct the unavoidable overflow so that it looks nice (Rewrapping) then it'd be better all the way around. As it is we've got people using things that post 120 chars long lines without a fuss and then other things that take those lines and if they were previously quoted will produce a godawful mess. > >> > 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 (which requires finding the prefix of not only THIS article > >> > but that of previous articles also) > >> > >> why `requires'? > > > > Well, even if you stick with the basic '> ' or '>' you still have to > > exame the string and see how much it was used on that line. > > yes; if everyone used `>' you could just count them. > > why is a 2nd level required, and a 3rd level not? Uhm, I'm not sure where you got that - if you do it for anything other than straight new text, then you've pretty much done it for all levels - with the only exception being that depending upon how you decide what is and is not the previous quote string quoting methods like "JM said: " might not be handled. But I don't know of anybody that wouldn't handle the below just fine. > > | this would get > > | wrapped correctly > > > | ] but this would ] not get wrapped ] correctly? If that line was supposed to look like: > > | ] this would get > > | ] wrapped corectly Then the newsreaders (the ones I've used at least) that do rewrapping would handle it just fine: > > | ] this would get wrapped corectly I did it in MacSOUP with the above line (copied, pasted, selected, Rewrap Text). Switched to YA and did the same thing, same resulting text. Actually that's not /quite/ correct. MacSOUP and YA will both handle it correctly, NewsReader.Com can't handle it correctly because you can't tell it what portion of the text is to be rewrapped and which aren't - it only rewraps lines that are too long, it can't handle rewrapping short lines. I don't consider this a failing in NewsReader.Com, but rather a limitation placed upon it by HTML. And as I indicated in my first answer to Sven - the programs use different methods of picking what is and is not a prefix. Both methods have their strengths and weaknesses, but normally do the exact same thing. MacSOUP uses a comparsion of one line and the next, that means it has problems with lines like this: ****************************************************** > This is a very long line. > This is a not so long line. ****************************************************** Rewrapping that gets: ****************************************************** > This is a very long line. not so long line. ****************************************************** YA-NewsWatcher checks for nonalphanums at the begining, which means it has problems with: ****************************************************** > :-) That's funny. Let's make ourselves a long line and let it wrap around and see what we get ****************************************************** After the Rewrap command, that get's you: ****************************************************** > :-) That's funny. Let's make ourselves a long line and let it wrap > :-) around and see what we get ****************************************************** NewsReader.Com seems to work similar to YA-NewsWatcher, except with a more restriceted set of prefix chars: ****************************************************** > :-) That's funny. Let's make ourselves a long line and let it wrap around and see what we get ****************************************************** Get's you: ****************************************************** > :-) That's funny. Let's make ourselves a long line and let it wrap > :around and see what we get ****************************************************** That's a bit long winded - to boil it down, any method of rewrapping is going to have problems, but I can tell you that these three programs get it right about 99% of the time. When they do it's useful and when they dont' it's easy to fix. And in all of them you get a chance to look it over and fix it before posting. -- John Moreno
Re: indentprefix and quoted text
Author: Russell Schulz
Date: Sat, 07 Mar 1998 00:00
Date: Sat, 07 Mar 1998 00:00
24 lines
1821 bytes
1821 bytes
why has no one else set followups out of comp.sys.mac.* ? guckes@math.fu-berlin.de (Sven Guckes) writes: >> Well, the obvious thing [...] is to see whether >> "first nonblank character in line" is the same in a majority of lines. (anyone who proposes this probably doesn't read c.l.perl.misc and `$'). > Why do a statistical evaluation on the article at all? because people are inconsiderate. the tin author decided to make `:' the default. some people quote with `|>'. some (almost worst of all) people quote with ` >'. and some (worst of all!) quote with ` '. > The definition of the indentprefix as "> " should suffice > to recognize quoted text. That's all it takes. I know you know this isn't true. -- Russell_Schulz@locutus.ofB.ORG Shad 86c
Re: indentprefix and quoted text
Author: Russell Schulz
Date: Tue, 10 Mar 1998 00:00
Date: Tue, 10 Mar 1998 00:00
48 lines
2568 bytes
2568 bytes
phenix@interpath.com (John Moreno) writes: >> broken input => broken output. > > Even if it is broken a bit of elementry work can do a reasonable > job of fixing it. And it might not have (necessarily) been broken > when they got it. then they should have put in the effort, not me. >> I quote (and rewrap as necessary); I don't perfectly rewrap what >> others didn't. usually, I'll delete it anyway. > > Yeah, but if more newsreaders didn't produce bad output and more (not > necessarily the exact same set) did offer a way to correct the > unavoidable overflow so that it looks nice (Rewrapping) then it'd be > better all the way around. yeah, and if we'd just get people to quote with `>', it might happen. > ****************************************************** >> This is a very long line. >> This is a not so long line. > ****************************************************** > > ****************************************************** >> This is a very long line. not so long line. > ****************************************************** ooh, that's bad. > YA-NewsWatcher checks for nonalphanums at the begining, which means it > has problems with: any perl group. > That's a bit long winded - to boil it down, any method of rewrapping is > going to have problems, but I can tell you that these three programs get > it right about 99% of the time. for straight text, without punctuation, probably 100%. for real Usenet articles, probably considerably less. -- Russell_Schulz@locutus.ofB.ORG Shad 86c
Re: indentprefix and quoted text
Author: John Moreno
Date: Wed, 11 Mar 1998 00:00
Date: Wed, 11 Mar 1998 00:00
85 lines
4508 bytes
4508 bytes
Russell Schulz <Russell_Schulz@locutus.ofB.ORG> wrote: > phenix@interpath.com (John Moreno) writes: > > >> broken input => broken output. > > > > Even if it is broken a bit of elementry work can do a reasonable > > job of fixing it. And it might not have (necessarily) been broken > > when they got it. > > then they should have put in the effort, not me. The point is that you newsreader will encounter lines that will need to be wrapped after the quote char has been added. > >> I quote (and rewrap as necessary); I don't perfectly rewrap what > >> others didn't. usually, I'll delete it anyway. > > > > Yeah, but if more newsreaders didn't produce bad output and more (not > > necessarily the exact same set) did offer a way to correct the > > unavoidable overflow so that it looks nice (Rewrapping) then it'd be > > better all the way around. > > yeah, and if we'd just get people to quote with `>', it might happen. We can hope and have programs that take advantage of it when it does happen. > > ****************************************************** > >> This is a very long line. > >> This is a not so long line. > > ****************************************************** > > > > ****************************************************** > >> This is a very long line. not so long line. > > ****************************************************** > > ooh, that's bad. Yes it is, but it also means that this works (like Randal S. in clpm). ****************************************************** > Randal Schwartz> This is a very long line. > Randal Schwartz> And this is a not so long line. ****************************************************** and get's turned into: ****************************************************** > Randal Schwartz> This is a very long line. And this is a not so long line. ****************************************************** > > YA-NewsWatcher checks for nonalphanums at the begining, which means it > > has problems with: > > any perl group. Yes, but it wouldn't be hard to special case the '$' and '@' characters to keep it from having that problem. > > That's a bit long winded - to boil it down, any method of rewrapping is > > going to have problems, but I can tell you that these three programs get > > it right about 99% of the time. > > for straight text, without punctuation, probably 100%. > > for real Usenet articles, probably considerably less. No, that 99% IS "for real Usenet articles". I seldom have to make any adjustments to keep MacSOUP from messing up it's rewrapping - and since it's a separate command, I always see when it will happen and can take steps to prevent it (just adding a extra space is enough). The only way to get 100% (or almost there /could/ still be mistakes - long href's with the closing '>', or a sentence where it's beeing used "x is > y" and it get's wrapped) is to have everybody use '>' or '> '. -- 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