Re: HTML 3.2: PRE should not exclude IMG

Walter Ian Kaye (boo@best.com)
Fri, 31 May 1996 15:55:53 -0700


Message-Id: <v03006f04add525b8c9c5@[205.149.180.135]>
In-Reply-To: <199605312159.PAA07210@stimpy.registrar.ualberta.ca>
Date: Fri, 31 May 1996 15:55:53 -0700
To: www-html@w3.org
From: Walter Ian Kaye <boo@best.com>
Subject: Re: HTML 3.2: PRE should not exclude IMG

At 3:59p -0600 05/31/96, Gerald Oskoboiny wrote:
>Walter Ian Kaye writes:
>
>> I use IMG inside of PRE on my "Directory of Files" page. It works
>> perfectly, though I use it in a "relatively safe" way, I think. :)
>>
>> The algorithm Netscape uses is pretty simple:
>>
>>  1--2--3--4--5--6--7--8--9--0--1--2--3--
>>  _____
>>  |:::| s--o--m--e--   t--e--x--t--
>>  |:::|
>>  '---'
>>  a--n--d--   m--o--r--e--
>>
>> The image is 1.5 characters wide, so the following text begins at the next
>> "whole" character position. With a monospace font, the relationship between
>> characters and pixels is a very short arithmetic formula, so laying this
>> out is child's play for the browser.
>
>This isn't a safe use of IMG within PRE, because it is impossible to
>create an image that's "1.5 characters wide."

Just to be clear, I'm not trying to align the "s" with the "d"; it might
align with the "n" or the space or the following "m". My point is about the
ease of the browser's calculation for making the "s" align with *a* column.

__________________________________________________________________________
    Walter Ian Kaye <boo@best.com>     Programmer - Excel, AppleScript,
          Mountain View, CA                         ProTERM, FoxPro, HTML
 http://www.natural-innovations.com/     Musician - Guitarist, Songwriter