On Thu, Aug 16, 2007 at 03:46:44AM -0400, Richard Heck wrote: > Jean-Marc Lasgouttes wrote: > > Martin Vermeer <[EMAIL PROTECTED]> writes: > > > >> Like the attached? > >> > > I'd rather have entries like > > > > InsetLayout charstyle:noun > > LyxType charstyle > > LabelString noun > > LatexType fontstyle > > LatexName defined > > Font > > Shape Smallcaps > > EndFont > > End > > > > Using such namespaces allows IMO to do more precise things. > > > Is `charstyle' supposed just to be repeated? Or can one also do: > > InsetLayout whatever:noun > LyxType charstyle > LabelString noun > LatexType fontstyle > LatexName defined > Font > Shape Smallcaps > EndFont > End
Yes, you can do this. The price you pay is the long name appearing also on the inset labels. > And does the namespace play any role? I had been thinking of using it, in > part, to structure the menu, so that e.g. charstyle::font::italic might end > up at Edit>CharStyle>Font>Italic. But maybe that should just be its own > entry, MenuPosition or something of the sort. Currently the namespace -- if you add one --is just a "dumb" part of the name. But you can query the LyXtype entry, and use that. I see no reason for yet another MenuPosition entry, though... why not, if you have other plans for LyXtype :-) So, how to proceed? Is this ready to be committed? - Martin