Jean-Marc Lasgouttes wrote: >>>>>> "Georg" == Georg Baum >>>>>> <[EMAIL PROTECTED]> >>>>>> writes: > > Georg> It uses BriefText as layout for ERT because that is the default > Georg> layout of the textclass (I guess this is clear). It is changed > Georg> to Standard by lyx2lyx because I thought that the default > Georg> layout of any textclass is always named Standard when I wrote > Georg> the convert_ert_paragraphs function in lyx_1_4.py. There are > Georg> lots of other places in lyx2lyx where this assumption is also > Georg> made. > > Do you think it is possible to fix the most annoying ones in lyx2lyx?
It is impossible without knowing the default layout name, because lyx2lyx really needs that at several occasions: - ERT cleanup (convert_ert_paragraphs) - Any case, where something is converted to ERT - Any case, where a new inset with contents needs to be inserted, such as the layout comment -> inset comment conversion. Either we make the default layout name available to lyx2lyx (this is what my lengthy patch does - definitly not for 1.4.0), or we need to ensure that every text class has a Standard layout. We could of course also hardcode a list in lyx2lyx of classes with their default layout names, but I don't like that at all. Georg