On Sunday, July 24, 2016 1:18:32 AM WEST Guillaume Munch wrote:
> Dear list
> 
> 
> Here are two patches that I would like to include in master.
> 
> * The first one adds a flag [-t FORMAT] to lib/scripts/layout2layout.py
> to specify a target format for conversion. I took some code from
> lyx2lyx and I would be happy if somebody can confirm that the
> python2-specific code is appropriate as I do not understand much
> of this issue.
> 
> * The second patch adds a new constant LYXFILE_LAYOUT_FORMAT in
> src/TextClass.cpp. This constant determines the target format
> when one clicks "Convert" in the Local Layout pane.
> 
> This is some groundwork for a branch "lyx unstable" that I have, that is
> based on master but that reads and writes the 2.2 format. This allows me
> to set LYXFILE_LAYOUT_FORMAT = 60 (the 2.2 layout format), so that it
> does not create files that cannot be read by 2.2. But, both patches
> are meaningful for master.
> 
> In the attached patches for master, the old behaviour is preserved
> because of the definition LYXFILE_LAYOUT_FORMAT = LAYOUT_FORMAT.
> 
> 
> Sincerely
> Guillaume

After a cursory look at your code I have no objection. :-)

BTW, the usual rant at this type of code is that equally important would an 
option that allowed to express what is the stable version that you are 
interested (the equivalent -V option of lyx2lyx). But that can be done later, 
of course. :-)

Regards,
-- 
José Abílio

Reply via email to