On Fri, Dec 14, 2001 at 09:44:09AM +0100, Jean-Marc Lasgouttes wrote:
> Andre> Once you made a distinction between insets and hacks you will
> Andre> come to the conclusion that a paragraph should be an inset,
> Andre> even if it is a hack today. It's much more uniform ...
> 
> So you will be able to insert a paragraph in a paragraph.

One could restrict direct insertion if it is really senseless. But I
believe it is e.g. valid HTML to have  <p>Outer <p>Inner </p></p>

> How will that look like?  You need some kind of wrapper around it, and
> it's called an inset nowadays. 

You mean TextInset?

> I am not saying these should be completely different. Maybe they should
> both inherit from a common base. But I think they are conceptually
> different things.

I think "everything is an inset" fits rather nicely together:

Buffer
  TextInset
    Paragraph
      PlainText
      Table
        TextInset
          Paragraph
          Paragraph
        TextInset
      PlainText
      MathInset
        Fraction
          Number
          Number
    Paragraph
    ....

Here there is no conceptual difference between, say, Paragraph and a
Fraction. Of course, there must be concessions for the implementation of
say "PlainText", we certainly can't afford an inset for each character, but
I see no reason why we should not use the _idea_.

Andre'

-- 
André Pönitz .............................................. [EMAIL PROTECTED]

Reply via email to