On Tue, Dec 30, 2003 at 11:11:38AM +0000, Jose' Matos spake thusly: > On Monday 29 December 2003 17:58, Martin Vermeer wrote: > > > > How do you plan to do this? A list of layouts that accept a given > > > CharStyle? > > > > Yes... as a parameter within that CharStyle definition. "AllowedIn" or > > something, with a comma separated arg list. > > IMHO we should follow the way dtd are descrived, there you group several > elements in one entity, then you say if such an entity can go inside another > element or not. > > Take surname and firstname as example, we expect that where one is allowed > the other is as well. > > So I'm proposing some kind of phony entries (using the *make* parlance). Do > you understand what I mean?
I think I do. > I don't know if this is easy to implement but surely is the sane way to go. No, I think we'll run into trouble if we do this literally, as the whole layout file syntax is so very different now. However, one basic idea in this that we could consider is: describing the insets a given paragraph style may contain, rather than (my above proposal) describing the paragraph styles that may contain a given inset. Hmmm. Thinking continues. > > > JMarc > > > > - Martin > > -- > José Abílio > > LyX and docbook, a perfect match. :-) The patch is in now "as is". BTW Jean-Marc, I now remember that one problem with \" instead of " was, that you first have to read in the string delimited by "", and only then substitute whatever it is you want to substitute. If the string contains substrings \", the first step wil fail because of the ". Of course there would be ways around it, but requiring extra coding. I thought this was good enough. And obvious to XML/SGML users. - Martin
pgp00000.pgp
Description: PGP signature