🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #20951

Re: What's this 'Mozilla' trash anyway?

#20951
From: Jamie Zawinski
Date: Fri, 26 Apr 1996 00:00
169 lines
9686 bytes
This is a multi-part message in MIME format.

--------------148E42DC5929
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Yeechang Lee wrote:
> 
> Ben Polk <bpolk@netscape.com> wrote:
> |No, this isn't right either.  The Netscape news reader puts newlines
> |in at the line breaks shown in the users compose window.  The
> |epidemic of long lines comes from people using wide windows AND not
> |putting in breaks by themselves.
> 
> This, of course, begs the obvious question--why not restrict the
> window to <=75 characters, or else offer to reformat the doucment for
> the user to fit within those guidelines?

Time to post this again, I guess...

--------------148E42DC5929
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Message-ID: <30EF6616.46530C4C@netscape.com>
Date: Sat, 06 Jan 1996 22:20:06 -0800
From: Jamie Zawinski <jwz@netscape.com>
Organization: Netscape Communications Corporation, Mozilla Division
X-Mailer: Mozilla 2.0b5 (X11; U; Linux 1.2.13 i586)
MIME-Version: 1.0
Newsgroups: comp.infosystems.www.browsers.misc,comp.infosystems.www.browsers.ms-windows
Subject: Re: long lines suck -- usenet is not a wordprocessor (Was: COBOL <->Perl Interface...)
References: <30EC297D.5579@wsadmin2.cv.hp.com> <4chegi$40b@csnews.cs.colorado.edu> <30EC5D73.75FF@netscape.com> <30EEB468.1911@cloud9.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

It is a requirement that, in the message composition window, the user not be
required to hit return at the end of every line.  Macintosh and Windows users
are used to system-standard editors which do not require this.  To most
people, the notion that one would have to hit return at the end of every line
is ridiculous: it is just Not How It Is Done on these platforms.

It is also a requirement that, by the time the message is sent out over SMTP
or NNTP, it is not sent with CRLF only at the end of the paragraph: the fact
of life on Usenet is that it is a short-line medium.  Lines should generally
be less than 80 columns wide, with explicit line breaks, unless there is a
specific need to exceed that (like a table.)

So, the Netscape composition window takes the following approach: let the
platform-specific text editor do display-time word-wrapping.  If a paragraph
is typed, and then a word is inserted in the middle of that paragraph, the
rest of the paragraph should re-wrap.  Hitting return is a "hard" line break
that will never be auto-filled.

This makes the editor behave like all the editors users are already used to.

However, when the time comes to deliver the message, Netscape takes all of
the "implicit" line breaks (where words have wrapped because they reached the
right edge of the window) and turns them into "explicit" line breaks.  In
this way, the message which is sent over SMTP/NNTP is formatted in such a way
that a recipient using a fixed-width non-auto-filling display device will see
exactly what the author has typed, with line breaks in the same places.

There are several problems with this.

The first is that, when quoting messages using the conventional USENET style
(to set off each quoted line by preceeding it with "> ") the line lengths
tend to get longer with each subsequent quote.  It is common, then, for lines
to exceed the width of the window.  When seen in a word wrapping display,
they will often have an unattractive (some would say unreadable) long-short-
long-short wrapping style, like

  > All work and no play makes Jack a dull boy.  All work and no play makes
  Jack a
  > dull boy.  All work and no play makes Jack a dull boy.  All work and no
  play
  > makes Jack a dull boy.  All work and no play makes Jack a dull boy.  
  All
  > work and no play makes Jack a dull boy.  

It would be horrible were Netscape to send out messages that looked like
this.  Therefore, there is an additional hack in the formatting code which is
that we never wrap lines which have ">" as their first character.  If the
line begins with ">", it is assumed to be a "quoted" line, and its implicit
line breaks are not converted to explicit line breaks.

This is a violation of the otherwise-WYSIWYG nature of the editor, in that
the person composing the message will see alternating long-short lines, but
the person reading the message will simply see some lines which are "long"
compared to the others.

Now, the next problem with this is that we wrap lines based on where the
system's built-in text editor has chosen to do display-time word-wrapping.
This, in turn, is based on the size of the window.

We create all composition windows 72 characters wide, on all platforms.
(The hard requirement is that the windows be 79 characters wide or less,
but it is traditional for the "fill column" to be set to 72 to allow room
for followups to quote this message several times before the lines begin
to exceed 80 characters.)

The problem is this: if the user drags the window wider, we will then wrap at
the current width of the window, which may well be excessively wide.

One solution to this, which we rejected, would be to disallow the window from
being made wider than 79 columns.  That would be bad, because there are
situations when it is necessary and appropriate to send messages with long
lines: when formatting a table, for example.

Another solution would be to pop up a dialog box warning the user that their
window is too wide (probably just before the message is sent) which offered 
to shrink it and allow the paragraphs to refill.  We may yet do this, but
rejected it initially as too intrusive and annoying.

Another attractive and often-suggested solution is to cause the editor to
always do word-wrapping somewhere before 79 columns, regardless of the width
of the window.  However, this assumes a much more sophisticated editor: one
with enough composition and formatting commands that the width of each
paragraph could be controlled individually.  There is not a built-in editor
that is that powerful on all the platforms on which we must ship, which would
mean we'd have to write it ourself.  But more importantly, it would then no
longer be "The Builtin Editor", meaning it would no longer be the editor (and
have the behavior) that the user expects.

A simpler version of this hypothetical "more sophisticated" editor would be
one which inserted "hard" newlines when the user typed a word which passed
the right edge.  In this editor, typing a paragraph and then inserting a word
in the middle of it would leave the paragraph with ragged margins.  It would
then need to provide a "refill paragraph" command to discard and recompute
the line breaks of that paragraph.  That's a fine idea, but the builtin
editors don't work this way, and don't provide such a command.  Regardless of
how hard it would be to make them behave that way (and it might be hard, or
it might be easy) the fact remains that we would have changed the behavior of
the editor in a rather fundamental way, way which would surprise users
already accustomed to it from its use in other applications.

Other alternatives are to provide a "ruler" at the top of the window, or to
draw a vertical "line of death" behind the text at 72 (or 79) columns,
reminding the user that they should avoid having lines longer than that.
We tried the "line of death" approach for a while, but most people didn't
understand what it was: they assumed it was some kind of redisplay glitch,
and reported it as a bug!

Also, both of these approaches assume the user notices the subtle graphical
information we're showing them, and that they care/understand that <80
columns is a Good Thing (this isn't obvious at all to novice users.)

Note also, that all of these problems/solutions apply only to the case of
generating messages of type text/plain, which is all that the Netscape mail
composition window can directly do at this time.  If someday the composition
window allows generation of something other than text/plain, for example,
text/html or text/enriched, then the generated messages would contain 
formatting information, and these problems all go away.  (Well, get traded
for an orthogonal set of problems. :-))

-- 
Jamie Zawinski    jwz@netscape.com   http://www.netscape.com/people/jwz/
``A signature isn't a return address, it is the ASCII equivalent of a
  black velvet clown painting; it's a rectangle of carets surrounding
  a quote from a literary giant of weeniedom like Heinlein or Dr. Who.''
                                                         -- Chris Maeda


--------------148E42DC5929--


Technical Details
Message-ID: <3181188F.586@netscape.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <4l2qa1$ngg@sparky.navsea.navy.mil> <4l4v1i$j7i@news.tuwien.ac.at> <4lil2m$cr1@amaru.inf.utfsm.cl> <317EE736.5ABA@netscape.com> <slrn4nvmc7.rfd.ylee@simile.cc.columbia.edu>

Show Full Headers
Complete Article Headers
Message-ID: <3181188F.586@netscape.com>
Subject: Re: What's this 'Mozilla' trash anyway?
Date: Fri, 26 Apr 1996 00:00:00 +0000
From: Jamie Zawinski <jwz@netscape.com>
References: <4l2qa1$ngg@sparky.navsea.navy.mil> <4l4v1i$j7i@news.tuwien.ac.at> <4lil2m$cr1@amaru.inf.utfsm.cl> <317EE736.5ABA@netscape.com> <slrn4nvmc7.rfd.ylee@simile.cc.columbia.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 151580709
Content-type: multipart/mixed; boundary="------------148E42DC5929"
Organization: Netscape Communications Corporation, Mozilla Division
Mime-version: 1.0
Newsgroups: comp.infosystems.www.browsers.misc,news.software.readers
X-mailer: Mozilla 2.0 (X11; U; IRIX 5.3 IP22)