mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 16:31:13 +00:00
Update prefs2prefs again. Thanks Vincent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37255 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
bc176dc904
commit
18a015081b
@ -21,8 +21,17 @@
|
||||
#
|
||||
# Conversion chain
|
||||
|
||||
def simple_renaming(line, old, new):
|
||||
if line.find(old) == -1:
|
||||
return no_match
|
||||
line = line.replace(old, new)
|
||||
return (True, line)
|
||||
|
||||
no_match = (False, [])
|
||||
|
||||
########################
|
||||
### Format 1 conversions
|
||||
|
||||
def remove_obsolete(line):
|
||||
tags = ("\\use_tempdir", "\\spell_command", "\\personal_dictionary",
|
||||
"\\plaintext_roff_command", "\\use_alt_language",
|
||||
@ -47,9 +56,17 @@ def language_use_babel(line):
|
||||
newline = "\\language_package_selection " + newval
|
||||
return (True, newline)
|
||||
|
||||
def language_package(line):
|
||||
return simple_renaming(line, "\\language_package", "\\language_custom_package")
|
||||
|
||||
|
||||
########################
|
||||
|
||||
|
||||
conversions = [
|
||||
[ # this will be a long list of conversions for format 0
|
||||
remove_obsolete,
|
||||
language_use_babel
|
||||
language_use_babel,
|
||||
language_package
|
||||
] # end conversions for format 0
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user