Re: Hacks so I can daily-drive breakinsets3?

Jean-Marc Lasgouttes via lyx-devel <[email protected]> Sat, 4 Jul 2026 21:52:29 +0200
Newsgroups gmane.editors.lyx.devel
Message-ID <[email protected]>
Le 04/07/2026 à 13:22, Jürgen Spitzmüller a écrit :
> Looks really good!

Thanks!

>>     * some extra whitespace around the insets so that there is enough
>> room for the label. Note that this is (1) difficult to do and (2) can
>> be ugly is an inset has a small part on one row and a small part n
>> another row and the label is a bit long.
> 
> ... this would be preferable. This is what we currently have with
> "conglomerate" insets. If the label is only given on the longest line
> (see below), it doesn't sound more difficult than what we have now (but
> it might be, of course)

The problem is that there has to be enough room on the line for the 
label. But one does not know where to break the line before knowing 
which line should have the label on it. That makes things more difficult.

So I anticipate that having the label on the first line is easier 
because it is deterministic. But I may be wrong and there may be 
properties of the line breaking algorithm that makes life easier.

Then I have the `small' issue that an inset in my model is
- an INSETBEGIN row element (the little corners on the left)
- one or more (when the inset is broken) INSETROW elements that point to 
a row of text
- an INSETEND row element (little corners on the left)

The spacing has to be added to the INSETBEGIN/END element and actually 
depends on the INSETROW element (is the text there smaller than the 
label string?). Therefore, getting the spacing right may be tricky. But 
I can make it work eventually.

I am not sure whether what I write makes sense to you, but it helps me 
to write down these ideas.

JMarc


-- 
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel