🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #30678

Pick a text renderer, any text renderer

#30678
From: Karl Kleinpaste
Date: Mon, 03 Feb 1997 00:00
256 lines
13911 bytes
Karl Kleinpaste <karl@jprc.com> wrote:
>> What's so cool about it?

brad@clari.net (Brad Templeton) writes:
> What I think is more cool is the newsgroup menu, which is also a page
> like this, which similar macros to say, "put list of articles here,
> using a sub-macro as to how you put them."
> What matters is not the particular look, it's the idea of a customizable,
> look.  HTML is used as a tool to do all the work.  The newsreader just
> renders the HTML (with macros in this case) and lets somebody else do
> the work of designing to emphasize what's important about each
> particular newsgroup.

I thought about this, on and off, all weekend.  (I was finishing
remodeling my bathroom, and there's very little in such work to occupy
the mind, while pushing grout in between tub tiles.)

It seems you have truly undergone the transition, "the browser *is*
the newsreader," if we merely acknowledge that the prototypical HTML
renderer is in fact a web browser.  Not that this is wrong or bad in
and of itself.  But it's neither remarkable nor obligatory to achieve
the desired result.  And it is probably one explanation for why your
demo looks simply like yet another web interface, and not especially
like a newsreader.

You've gotten to the point of saying, ultimately, "the newsreader just
renders the HTML".

What you appear to have done is define a macro-ized HTML meta-format
(for, e.g., some group's summary display), and then you shovel per-
article information into the macros and /poof/ out pops fully-formed
HTML on the user's screen, rendered by whatever it is that's
displaying a window there.

Other than the fact that you use HTML, Gnus does precisely the same
thing, using format strings.  That's all you're providing that's
worthy of note, as far as I can see.  And yes, your format controls
are customizable.  Guess what?  So are Gnus'.  Here's a slice of my
.emacs:

    (setq gnus-select-group-hook
	  (function
	   (lambda ()
	     (if (or (string-match "talk.abortion" gnus-newsgroup-name))
		 (error "%s?  be serious." gnus-newsgroup-name))
	     ;; Ignore From: in summary for certain groups.
	     (cond ((or	(string-match "clari." gnus-newsgroup-name))
		    (setq gnus-summary-line-format
			  "%U%R%z%I%(%[%4L: %-6,6n%]%)   %s\n"))
		   ((or (string-match "comp.sources" gnus-newsgroup-name)
			(string-match "dow-jones" gnus-newsgroup-name)
			(string-match "comp.internet.net-happening" gnus-newsgroup-name))
		    (setq gnus-summary-line-format
			  "%U%R%z%I%(%[%4L%]%)   %s\n"))
		   (t
		    (setq gnus-summary-line-format
			  "%U%R%z%I%(%[%4L: %-20,20n%]%) %s\n")))
	     )))

For those who don't read elisp, the effect of the above statement is
to specify that, on selection of any given group, the variable
gnus-summary-line-format, which determines placement of author/
subject/line-count/been-read/&c status, is altered according to the
newsgroup name pattern.  In most groups, I use default displays in the
summary.  In clari.*, I give more room to subject and less to author,
because at most what I can learn from a clari.* From: is the article's
wire service origin.  In a couple groups, I lose the author entirely.

The big difference: Gnus requires the author of default format specs
to learn Emacs format strings, whereas your scheme requires him to
learn macro-ized HTML.

Frankly, given the choice between writing complicated elisp and
writing complicated HTML, I'll take the elisp.  And I don't say so
because I'm a technically-oriented sort of person -- I say so because
HTML sucks, whether one is technically oriented or just Joe Average.
I write just enough HTML to make my own pages work; I do just about as
little as I can get away with.  The fact that it's so @#$% easy to
write utter crap in HTML, while writing crap in elisp will get you
instant complaints from everything between eval and set-text-property,
is why I prefer elisp.

> Gnus has many good features, which all had to be custom coded and
> installed in your newsreader.  And few people use it.

Do you believe that every feature of Gnus is hard-coded and fixed?  If
so, please eliminate that misperception.

_Somebody_, _somewhere_, is going to have come up with the format
controls to specify information placement in any given display.  You
had to custom-code yours, Brad, and please take careful note a second
time of your own comment earlier, "somebody else do[es] the work of
designing to emphasize what's important about each particular
newsgroup".  Similarly, Lars custom-coded certain Gnus defaults.  I
changed those defaults for my own purposes.  All default format
selections are by nature custom-coded by _somebody_.

And _nobody_ uses your macro-ized HTML, Brad.

> All the smarts
> in Gnus are in the wrong place.  The smarts should be divided (which
> was the original idea behind HTML) with the author providing the structure
> and the reader providing the final presentation decisions.

I think it should be obvious that I have made my own presentation
decision regarding how a group's summary display should look.  I take
enough of the supplied structure to make sense to myself, and pick a
way to show it to myself.

Just like your custom-coded HTML selections.  The smarts are in the
same place: The presentation specs.  Certain defaults are provided by
the newsreader author (your HTML macros, Lars' elisp).  Most of the
time, the defaults will be untouched.  Those with special needs will
tweak the defaults for their own purposes...and at least I've got a
handle on those defaults in order to tweak them when I want.

The only difference here is:
[1] Your (hypothetical) newsreader is a macro-ized HTML renderer.
[2] The (actual) newsreader I use is a format string renderer.

What difference is there, other than that your choice of format
controller happens to be the market-force equivalent of an elephant
rolling over a mouse?

(Hm.  The preceding question is a deliberate shot [not intended
rudely] aimed at Brad's nationality, relative to a certain prime
minister's observation once upon a time regarding the relationship
between the proximal political positions of Canada and America.  It
seems apropos.)

Is raw market force a _good_ reason to select it?  I don't think so.
Usenet itself lacked market force for an indecently long time and yet
managed to do considerably better than flourish.

> But the newsreader is the wrong place to add that link.  The more
> interesting links on the page are the ones to the news software FAQ
> and trn FAQ and a mythical news.software.readers home page and charter,
> and perhaps to a page to search news.software.readers itself, plus the
> link to the other news.software groups.  The long description of the
> group's purpose at the bottom and the short one at the top.

All this has nothing to do with HTML as the choice of renderer.  The
default for how to specify matters has to be done by the author of
whatever macros the renderer will use.  Both the macro data as well as
the data to be shovelled through the macros in such uses should come
from the server, obtained by the renderer (newsreader).  But /any
rendering engine/ will do the job.

(Digression: Here's one important [to me] observation about such
formatting: Wasting valuable screen real estate within every single
group's summary display [or every article's display] with, e.g., group
descriptions and similar repetitive information is wasteful and
irritating.  Group-descriptive text is useful when one first arrives
at a group, and quite possibly never again thereafter.  Don't waste
the user's eyeballs and screen space on it.)

> You can solve any of these problems in specific with code in the
> newsreader.  You could say, "we could make a list of FAQs and then I
> could add code to take me to the one for each group."  "We could make
> lists of related groups and I could program Gnus to show them."

Lars (in particular) does not tend to think in such non-general terms,
fortunately, any more than you do.  And you'll kindly give us credit
for being able to think ahead about such things as well as yourself.
Nearly nothing in Gnus is hard-coded in terms of display choice.

> The trick is not to solve the problems in specific, but to provide
> a general tool, and one that can work not just for users of a more
> programmable reader like Gnus, but in a standard form that can work
> across the board. 

The standard form as used by Joe Average _is_ the across-the-board
solution.  While Gnus is, even now, slightly hairy in initial set-up
for Joe Average, very little needs to be done before it is very
usable, Joe need not tweak any defaults (just as Joe already doesn't
tweak enough of NS' defaults to notice), and, like any other reader,
can be ignored thereafter.  Gnus' programmability is not important to
Joe here: Gnus' programmability is only important insofar as its
actions relative to the server are concerned, as well as Gnus'
author(s) understanding of those interactions, so as to custom-code a
good set of defaults for standard, across-the-board use.

If we conclude that a good goal is per-group summary format choices,
that support belongs on the server, with the reader able to request
the details from the server, that is, for your hypothetical reader to
ask for the HTML formatting macros, or for Gnus to ask for the format
strings.

Big deal.  It doesn't matter how it's done, and hasn't a whit to do
with macro-ized HTML in particular.  /Any renderer/ will do it.  And
Gnus, as a reader that exists /now/, is much closer to doing so than
anything else.

Let me step back one instant:  I'm not merely trying to blow Gnus'
horn.  I certainly think it has a powerful horn to blow.  But what's
important here is not what Gnus has done, but what Gnus _can do_, in a
general framework, and that's demonstrably to do nearly anything so
far proposed that a reader _ought_ to be able to do.  End back step.

> You find it by noticing that news.software.readers has a very different
> look from biz.clarinet.sample, because they are very different groups with
> different purposes... stuff that nobody even planned when the
> software was written.

And, oddly enough, you custom-code the appearance of each.  I'll make
a little wager that some Gnus hacker is, as he reads this note right
now, considering what it would take to process a slice of macro-ized
HTML.  Would I have any takers /against/ the idea that Gnus would be the
first widely-deployed reader capable of handling such a requirement?

> Did the authors of web browsers know what would be done with the web?
> Of course not.  They just made an enabling technology and let other
> people figure that out.

I don't need the lecture, Brad: The same can be said of Gnus.  Did RMS
know that Emacs would end up used as a mailer, news reader, web
browser, game environment, image viewer, psychoanalyst?  He probably
had a bit of a clue after he wrote hanoi.el, but he didn't know the
eventual outcome, either.

> Really, I think putting descriptions of the newsgroup with the group
> and links to useful resources like FAQs and searching as content.

That is why I included the parenthetical comment, about my perception
-vs- your perception of the phrase "customization."  Insofar as
"customized look" means "giving the user high-quality information,"
fine; when it goes on to the demonstrably unavoidable and gratuitous
crap that now routinely shows up in HTML, not fine -- not fine at all.

HTML _will_ be abused, and that is one hell of a good reason not to
foster its use in Usenet, even in a macro-ized version just to select
per-group formatting choice.  To date, I've yet to see any abuse of
format strings, because nothing done with my choice of format strings
has the slightest possibility of hurting anyone else, either visually
or in terms of network abuse.  The same can never be said of HTML, if
anything the author writes is subject to interpretation at the reader.

I fully expect that, within month or two, someone such as Bill Perry
will take w3's HTML parser and shoehorn it into Gnus' TM-based MIME
handling.  Then we Gnusers will be _able_ to read HTML without bugging
our eyeballs out with all the angle brackets and keywords.  But that
is not a good reason to regard HTML as the best, or even the
unavoidable, future of Usenet newsreader technology.

Most of what you propose to do with your hypothetical newsreader has
already been done in Gnus, without any additional technology or new
overhead.  Such things as you want to do in your hypothetical reader
will be possible in a reader like Gnus specifically because its
authors are already just as forward-thinking as yourself, and will be
prepared for the server-reader interaction improvements when they
come.  That is, give us an FAQ-request verb in nnrpd, and Gnus will be
the first reader to use it, buttonizing it in the summary mode format.
Gnus' renderer is /already/ adequate to the task, and /already/ deployed.

Technical Details
Message-ID: <vxkzpxl8qae.fsf_-_@pocari-sweat.jprc.com>
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: <5cpvo7$3ov@fugue.clari.net> <vxkbua7cdki.fsf@pocari-sweat.jprc.com> <5cqtb6$fcf@fugue.clari.net>

Show Full Headers
Complete Article Headers
Message-ID: <vxkzpxl8qae.fsf_-_@pocari-sweat.jprc.com>
Subject: Pick a text renderer, any text renderer
Date: Mon, 03 Feb 1997 00:00:00 +0000
From: Karl Kleinpaste <karl@jprc.com>
References: <5cpvo7$3ov@fugue.clari.net> <vxkbua7cdki.fsf@pocari-sweat.jprc.com> <5cqtb6$fcf@fugue.clari.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
X-Deja-AN: 214217198
Organization: Justsystem Pittsburgh Research Center
Keywords: html gnus newsreader format groups defaults renderer
Newsgroups: news.software.readers