By the way, I sometimes feel hamstrung by the thought that files
produced with LyX 2.0 ought to work just as well in LyX 1.2.x.
Yes, I refuse to abandon a cleanup just because we would not be able
to revert. Personally, I would go through the
route of hardcoded list of insets. But in case you
On 08/11/2010 04:35 PM, Jean-Marc Lasgouttes wrote:
We can also add code to LyX 1.6 that reads these borked files: if
MyStyle does not exist and the inset is of type Custom, try
Custom:MyStyle.
Of course, we do not know that the inset is of type custom... So, we
would have to try in turn CharSt
We can also add code to LyX 1.6 that reads these borked files: if
MyStyle does not exist and the inset is of type Custom, try
Custom:MyStyle.
Of course, we do not know that the inset is of type custom... So, we
would have to try in turn CharStyle:MyStyle, Element:MyStyle and
Custom:MyStyle.
N
Richard Heck writes:
> Next problem: Reversion is impossible. We have no way of knowing if
> \begin_inset Flex MyStyle
> should be reverted to
> \begin_inset Flex Custom:MyStyle
> or to
> \begin_inset Flex CharStyle:MyStyle
> or not at all.
Very good point. One solution is to have an
On 08/10/2010 06:29 PM, Jean-Marc Lasgouttes wrote:
The plan would be:
* layout2layout: for all insets layouts which name is not in the
hardcoded list
(Note, Branch...), including Custom:, CharStyle:, and Element:,
remove the existing prefix
and replace it with Flex:
* lyx2lyx: do the sam
Le 11 août 10 à 00:29, Jean-Marc Lasgouttes a écrit :
So I'd just forget about "Flex:", and I don't think this would
actually take much work. I.e., I could do it.
I'd really rather keep it, for the reasons outlined above. Think in
a few years, where the underlying lyx will be
Then, a ful
Le 11 août 10 à 00:04, Richard Heck a écrit :
Then this gets written in the lyx file as
\begin_inset Flex Noun
...
Question: Why even bother with the "Flex:" prefix? We don't have a
default "InsetLayout Flex"
and I don't see any reason to have one. Also
It is a namespace. If we have so
On 08/10/2010 05:16 PM, Jean-Marc Lasgouttes wrote:
While trying to fix #6786 (http://www.lyx.org/trac/ticket/6786), I
found out
that the naming of Flex insets is very weird.
I think I looked at this once before and also found it weird.
So I know I am coming after the battle here, but I wonde
While trying to fix #6786 (http://www.lyx.org/trac/ticket/6786), I
found out
that the naming of Flex insets is very weird.
Most insets use for InsetLayout a simple and predictable naming:
Name:type.
"Name" is the inset name used in the lyx file (Note, Branch...), and
type is
a subtype of ch