Commit Graph

15 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
e7a1cce551 Rename some LFUN names to match their text name
Also, rename copy-label-as-reference to label-copy-as-reference and update LFUNs.lyx accordingly.
2014-02-13 13:50:33 +01:00
Richard Heck
f9de88c53c Remove the shebang line from our python scripts, per Jose's suggestion.
Fedora ships these chmod 644 and has never seen a problem. The advantage
to doing this is that it better controls what version of python we are
using to launch the script, and it will reveal if we're somehow somewhere
not controlling that properly.
2014-01-28 12:52:16 -05:00
Pavel Sanda
a982bdc5fa Attempt to bump prefs2prefs_lfuns.py. 2012-09-29 20:04:56 +02:00
Julien Rioux
0fb13b648c * prefs2prefs.py : Use a list of [format, conversions] pair.
Use a list of [int, list of functions] pair, representing
      - int: the format number, and
      - list of functions: what needs to be done to the file to
                           update it to the given format number.

    This matches what is done in lyx2lyx and helps keeping track of
    format numbers and their corresponding conversion routines.

    Also, add another sanity check.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39668 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-12 20:43:06 +00:00
Richard Heck
bcdb0dfcce prefs2prefs for #6966, per Pavel's suggestion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38377 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-14 18:31:39 +00:00
Richard Heck
8f207c5736 Thinko.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37251 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-18 15:40:07 +00:00
Richard Heck
054dfe3c00 Improve the prefs2prefs scripts a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37250 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-18 15:37:20 +00:00
Richard Heck
f97bc9b9e7 A little more work on prefs2prefs.
More to come, Pavel!



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37225 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-16 03:59:43 +00:00
Richard Heck
f3d5390d8b Conversion for tabular-feature.
I believe this completes the LFUN conversions, at least if RELEASE_NOTES
is complete in this respect.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35436 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-18 15:16:04 +00:00
Richard Heck
1e8dc000d8 Conversion for paragraph-spacing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35435 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-18 15:13:13 +00:00
Richard Heck
036aef6f26 Conversion for toc-insert.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35434 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-18 14:57:59 +00:00
Richard Heck
59155540e3 Conversion for line-insert.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35433 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-18 14:56:25 +00:00
Richard Heck
d8f9626fef Conversion for all-insets-toggle.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35432 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-18 14:42:38 +00:00
Richard Heck
e1ed2d861e Conversions for notes-mutate and argument-insert, plus a little cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35431 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-18 14:27:12 +00:00
Richard Heck
851d01721f A go at creating a prefs2prefs framework. There's a main file, prefs2prefs.py, and two subsidiary files,
prefs2prefs_lfuns.py and prefs2prefs_prefs.py. I've organized it this way because, in many ways, these are
 the same task. It's very line-by-line, unlike lyx2lyx and layout2layout, where things can be more "global". 
So we read the file, line by line, and give a bunch of converter functions a chance to see if they want to 
modify that line.

The converter functions are all in the subsidiary files. (Only the lfun one has anything in it now.) They 
take a line as argument and return a list: (Bool, NewLine), where the Bool says if we've modified anything 
and the NewLine is the new line, if so.

The format of the existing files is format 0, and we'll introduce new format numbers as we proceed, 
just as with layout2layout. So the conversion from format 0 to format 1 will be huge; others will 
generally be simple.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35426 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-17 14:44:38 +00:00