[LyX/master] Make all unbreakable spaces of the same Color_latex color

Jürgen Spitzmüller spitz at lyx.org
Wed Jun 24 07:18:02 UTC 2020


Am Dienstag, den 23.06.2020, 23:46 +0200 schrieb Jean-Marc Lasgouttes:
> I did not mean to commit this yet, but it is a good occasion to
> discuss 
> the issue of space color. I can revert that if needed.
> 
> I am not sure what was the logic of colors right now. So I decided
> that 
> unbreakable is Color_latex and breakable is Color_special. Finally, 
> VISIBLE (which is unbreakable) remains Color_foreground.
> 
> This means as notes that negative spaces are the same as positive
> ones. 
> Should we use some special marking to indicate those negatives
> spacing 
> (like /_\) ? Or a minus on top of the space, like
>      -
> > _______|

I would indicate one property by color only, the other by form. It
would strike me most logically to use color for positive/negative
(blue: positive, red: negative), and, say solid line for non-breakable
and dotted line for breakable.

Or we could stick with color for breakability and find a good form for
negativeness (we already have one for custom length, but I am not sure
this scales well).

> Another thing this is bugging me is that we have a
> Color_added_space, 
> but it is only used for vertical spaces. Should we use this intead
> of 
> Color_latex? Vertical spaces are not unbreakable AFAIK, so maybe
> they 
> should use the same color as normal spaces.

Makes sense.

Jürgen

> 
> Thoughts?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200624/913380bb/attachment.asc>


More information about the lyx-devel mailing list