Re: The extent of <nofill> and other text/enriched nitpicks

Pete Resnick <presnick@qualcomm.com> Thu, 15 February 1996 02:00 UTC

Received: from ietf.nri.reston.va.us by IETF.CNRI.Reston.VA.US id aa08000; 14 Feb 96 21:00 EST
Received: from CNRI.Reston.VA.US by IETF.CNRI.Reston.VA.US id aa07996; 14 Feb 96 21:00 EST
Received: from list.cren.net by CNRI.Reston.VA.US id aa09790; 14 Feb 96 21:00 EST
Received: from localhost (localhost [127.0.0.1]) by list.cren.net (8.6.12/8.6.12) with SMTP id UAA21300; Wed, 14 Feb 1996 20:27:09 -0500
Received: from glaucus.cso.uiuc.edu (glaucus.cso.uiuc.edu [128.174.81.2]) by list.cren.net (8.6.12/8.6.12) with SMTP id UAA21241 for <ietf-822@list.cren.net>; Wed, 14 Feb 1996 20:25:42 -0500
Received: from resnick1.isdn.uiuc.edu by glaucus.cso.uiuc.edu (AIX 3.2/UCB 5.64/4.03) id AA12780; Wed, 14 Feb 1996 19:24:02 -0600
Message-Id: <v03004d06ad47e681c0b3@resnick1.isdn.uiuc.edu>
Date: Wed, 14 Feb 1996 19:24:07 -0600
X-Orig-Sender: owner-ietf-822@list.cren.net
Sender: ietf-archive-request@IETF.CNRI.Reston.VA.US
From: Pete Resnick <presnick@qualcomm.com>
To: Lennart Lovstrand <lennart@next.com>
Cc: Terry Crowley <tcrowley@vermeer.com>, "ietf-822@list.cren.net" <ietf-822@list.cren.net>, "Sukvinder Singh Gill(Exchange)" <sukvg@wspu.microsoft.com>
Subject: Re: The extent of <nofill> and other text/enriched nitpicks
In-Reply-To: <9602131038.AA12010@pan.next.com>
References: <BMSMTP82390751960tcrowley@vermeer>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Sender: resnick@glaucus.cso.uiuc.edu
X-Mailer: Eudora [Macintosh version 3.0a77-2.96]
X-Listprocessor-Version: 8.0(beta) -- ListProcessor by CREN

On 2/13/96 at 4:38 AM, Lennart Lovstrand wrote:
>Amen.  I had exactly the same reflection when writing the text/richtext and
>text/enriched converters for NeXT's (RTF-based) mail UA.  The updated
>text/enriched spec is much clearer and one thing I'm particularly happy to
>see explicitly stated is the implied line breaks around paragraph formatting
>commands like <center>.

Thanks. Our main purpose was to clarify some of the things that were simply
underspecified. I'm glad you like it.

><nofill> still seems a bit loose, though.  In particular, it's not clear to
>me exactly what the extent of the affected text really is supposed to be.
>From the draft-03 spec, it sounds like it will begin immediately after the
>right bracket in "<nofill>" and continue to immediately before the left
>bracket in "</nofill>".

That is exactly correct.

>However, this means that an example like this:
[...]
>since each nofill block will include the CRLF just after <nofill>, the one
>just before </nofill>, and the double CRLF between the two blocks will
>generate an extra CRLF too.

Yes, it does. However, I don't think we want to play around with this too
much. First, there are a good deal of parsers out there that do this now,
and it's probably not nice to legislate them into illegitimacy. Second, and
more importantly, the idea is that this is supposed to be a simple little
formatting language. The more exceptions we put in, the higher the
complexity. It's probably not optimal, but then again, it's not so bad.

>HTML's <pre> command has a special rule for this.  It dictates that any
>directly adjoining newline to the <pre> command is to be excluded from the
>affected text.

Yes, that would be nice. But there are lots of those kinds of things that I
would not necessarily want to impose on someone writing a text/enriched
parser. Remember, it would be nice if this thing went away eventually.

> For example, if you have:
>
>	--------------------------------
>	<center>
>	aaa
>	bbb
>	</center>
>
>	<center>
>	xxx
>	yyy
>	</center>
>	--------------------------------
>
>you currently get:
>
>	--------------------------------
>	            aaa bbb
>
>	            xxx yyy
>	--------------------------------
>
>if I read the spec right.

Actually, as you have written it, you should get an extra space before the
first a and x, as well as extra spaces after the final b and y. This is
because the CRLF after and before each formatting command "counts".

>On a related topic, the rule that makes a single CRLFs turn into a space
>seems a bit simplistic.  For example, this:
>
>	--------------------------------
>	first
>	<flushleft>
>	<bold>
>	second
>	</bold>
>	</flushleft>
>	third
>	--------------------------------
>
>will generate this:
>
>	--------------------------------
>	first
>	 second
>	 third
>	--------------------------------
>
>That is, there will be an extra space before both "second" and "third" and
>maybe one after "first" and "second" too.

Actually, I count two spaces after "second".

>It would probably be better to
>borrow an idea from the paragraph commands and say something like "a single
>CRLF will cause a space to be produced unless it would mean that it would be
>generated immediately next to another space or newline".

Again, we're increasing complexity. It's not that I don't think that these
would be nice ideas; it's just that we were looking to change as little as
possible and effect installed base as little as possible too.

pr

--
Pete Resnick <mailto:presnick@qualcomm.com>
QUALCOMM Incorporated
Home: (217)337-1905 / Fax: (217)337-1980