On Thu, 18 Feb 1999, Joacim Persson wrote:

> On Mon, 15 Feb 1999, Asger Alstrup Nielsen wrote:
> 
> > >   JL> - [not really a bug] bold and friends should toggle in all
> > >   JL> cases.
> > > 
> > > Can we make this work with _*little*_ effort? If not let's keep it as is.
> > 
> > I think it's a major bug, that we *have* to fix.  Joacim?
> 
> ...I asked for a spec on how it /should/ work in...december 1997, still
> haven't seen one. =)  The problem is that everything goes on deep down in
> LyXFont; anyway we choose to do it, it will be a hack. 
> 
> Bold can be set in 4 different ways: ctrl-b, from the menu, with the popup,
> or from the "Toggle user defined style"-button in the toolbar.  Should bold
> toggle in all 4 or only in some cases? 

If people want toggling with M-b they can currently just change the
"toggle-on-all-these" button in the character popup.  Maybe we should just
make that the default setting or at least make it a lyxrc setting.  That
would be the easiest solution at present.  Of course it then defeats most
of the reason for the changes Joacim made in the first place.

> If it toggles in all cases (or not toggles in any case), the popup and the
> "toggle..." tool button will become somewhat misleading. 
> 
> If it should toggle in some cases but explicitly switch on or off in some
> cases (the menu for instance), the only way to achieve that without a
> significant rewriting of the font code would be to pass a boolean variable
> specific for bold through a series of function calls from the menu down to
> LyXFont::update(). (yes, ugly) ...or use a global variable (uglier).

Perhaps this is the more correct option.  Hmmm...  The main reason for the
changes in the first place was the bizarre combinations of toggling in the
character popup.  So perhaps we should make the popup an exception.

But then again we're still left the problem of what happens when half the
selection is bold and the other half isn't?  Maybe an even easier solution
is to have another simple key combo to represent "normal unadorned text"
this would be an alias for "M-c Space" how about M-n is it assigned to
anything?
 
I think I prefer this last option in combo with the lyxrc setting for
"toggle-on-all-these".

Allan. (ARRae)

Reply via email to