Well, I didn't like the way to store LaTeX commands, either. I am not
sure that I am brave enough to (or capable of) develop that part, but
I can give it a try.
However, in my incredibly humble opinion, the syntax should be based
on a markup language (preferably XML), which is planned for lyx-1.6.x,
I guess. An intermediate format for insets may increase confusion,
therefore.
But of course this development may also ease the migration to XML in
the transition from lyx-1.5 to 1.6, since inset syntax becomes more
structured.
If you still think the new insetCommand syntax is necessary, I can
code it (don't know how long it takes). For the moment, nomencl
implementation needs a slighly enhanced version of InsetCommandParams.
For the 1.4.x issue: That is fine for me. If anybody needs (and if I
have time), I can create a patch and put it on the wiki.
Ugras
On 9/11/06, Georg Baum <[EMAIL PROTECTED]> wrote:
Ozgur Ugras BARAN wrote:
> It is so rare that, It is fantastic not to be wrong. :))
>
> then it should work well for the case \command[][]{}
The fact that InsetCommand stores its parameters in LaTeX-like syntax in LyX
files is a historical mistake, so I would rather avoid to extend this even
further.
If you feel brave enough you could develop a new syntax for InsetCommand and
use that, e.g. something like
param name value
optparam name value
where each parameter is specified as a name, value pair in the LyX file.
I can perfectly understand if you don't want to do that, but it would be
very welcome.
> any comments on backporting this feature to lyx 1.4.x ?? it shouldn't
> take too much time for me..
That is not possible unfortunately, because it is a file format change, and
file format changes are not allowed in 1.4. You can of course still
backport it for private use if you are accepting the fact that your files
will be incompatible with official LyX versions.
Georg