🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #42014

Re: `>' and `> ' adaptive quoting

#42014
From: John Moreno
Date: Fri, 10 Jul 1998 00:00
40 lines
3011 bytes
Jeroen Scheerder <js@xs4all.nl> wrote:

> John Moreno <phenix@interpath.com>:
> 
> > It's not that it coud be smarter, but that the things that are commonly
> > used as quote chars interfere with other things - I've seen "<" which is
> > also used for url's, even ">" can end up wrapped with url's of exactly the
> > wrong length.
> 
> Yes, quoting may interfere with quoted material; and rewrapping can
> possibly introduce new interference.  Then again, a bizarrely quoted ADA
> module doesn't stand much chance on compilation to begin with already.
> :-)

Heh.

> >  ":" is common and ")" fairly rare, but how is a program to
> > handle ":)"?  I know one idiot who uses "> [opt-8]", is that one level or
> > two?
> 
> Usually, for reformatting purposes it suffices to identify consecutive
> stretches of text that share an identical initial segment; such a text
> stretch can be considered a paragraph.  The prefix is easy to see: it's
> the shared initial substring.  And reformatting can be done for all
> these stretches of text, modulo the identical quote prefixes.
> 
> It sounds harder than it is, but actually, any software that has a
> method of distinguishing between quoted and unquoted material already
> contains the relatively hard part.  And even that part boils down to
> something less complex even than a simple regular expression match.

True - I was just trying to make clear that failures will happen.  Any
program can easily, with 100% accuracy, detect it's own quote prefix and
the lines which begin with it, for the rest - you'll have to accept
being just shy of of 100%.

-- 
John Moreno

Technical Details
Message-ID: <1dbz00n.n6kjq113tnszeN@roxboro0-038.dyn.interpath.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn6oro3q.fij.TroubleEveryDay@user1.teleport.com> <1db0orb.1cuui0s1iha1y4N@roxboro0-058.dyn.interpath.net> <19980707.170221.5b3.rnr.w164w_-_@locutus.ofB.ORG> <1dbt61a.1eetpif1da5x0sN@roxboro0-011.dyn.interpath.net> <6nukf0$2m6$1@chinet.chinet.com> <1dbtih9.1pr6uspxxhii9N@roxboro0-011.dyn.interpath.net> <2A21452C70E89BEF.E1D2F9C9F1DA41EB.41A2E1FBD4556B1D@library-proxy.airnews.net> <1dbuc5x.vtk3qx1ci7y9sN@roxboro0-017.dyn.interpath.net> <1dbuwa6.8ijrkctulm7wN@cats.xs4all.nl> <1dbxctm.mnsbog2jdvicN@roxboro0-038.dyn.interpath.net> <m3k95mmd10.fsf@windlord.Stanford.EDU> <1dby3l3.65rn864neu6wN@roxboro0-038.dyn.interpath.net> <1dbz4to.1qukvk1tza74wN@cats.xs4all.nl>

Show Full Headers
Complete Article Headers
Message-ID: <1dbz00n.n6kjq113tnszeN@roxboro0-038.dyn.interpath.net>
Subject: Re: `>' and `> ' adaptive quoting
Date: Fri, 10 Jul 1998 00:00:00 +0000
From: phenix@interpath.com (John Moreno)
References: <slrn6oro3q.fij.TroubleEveryDay@user1.teleport.com> <1db0orb.1cuui0s1iha1y4N@roxboro0-058.dyn.interpath.net> <19980707.170221.5b3.rnr.w164w_-_@locutus.ofB.ORG> <1dbt61a.1eetpif1da5x0sN@roxboro0-011.dyn.interpath.net> <6nukf0$2m6$1@chinet.chinet.com> <1dbtih9.1pr6uspxxhii9N@roxboro0-011.dyn.interpath.net> <2A21452C70E89BEF.E1D2F9C9F1DA41EB.41A2E1FBD4556B1D@library-proxy.airnews.net> <1dbuc5x.vtk3qx1ci7y9sN@roxboro0-017.dyn.interpath.net> <1dbuwa6.8ijrkctulm7wN@cats.xs4all.nl> <1dbxctm.mnsbog2jdvicN@roxboro0-038.dyn.interpath.net> <m3k95mmd10.fsf@windlord.Stanford.EDU> <1dby3l3.65rn864neu6wN@roxboro0-038.dyn.interpath.net> <1dbz4to.1qukvk1tza74wN@cats.xs4all.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 370388392
Mail-Copies-To: never
X-Face: $!7l?58&Lro>GQtr;A/P^'38=7{P[jPy/?JF*m`Z2&~@3:P3L81Sa7RQ=Y~o| ?'D1cB]L9V=\OS(\8S,5
Organization: phenix@interpath.com
X-FAQs-Read: perl, pascal.mac
Newsgroups: news.software.readers