]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/prefs2prefs_prefs.py
DocBook: make all make* functions have the same argument order.
[lyx.git] / lib / scripts / prefs2prefs_prefs.py
index 1eac80cde351c92949c523b9cb7f8835bc6165c9..598c06b7945dc8accfb0e533204e74199df8a634 100644 (file)
 #   Add ct_additions_underlined.
 #   No convergence necessary.
 
+# Incremented to format 32, by spitz
+#   Add ct_markup_copied.
+#   No convergence necessary.
+
+# Incremented to format 33, by sanda
+#   Add \citation_search, \citation_search_pattern
+#   and \citation_search_view.
+#   No conversion necessary.
+
+# Incremented to format 34, by yuriy
+#   Rename *.kmap files for Cyrillic languages
+
 # NOTE: The format should also be updated in LYXRC.cpp and
 # in configure.py.
 
@@ -429,6 +441,16 @@ def remove_use_pixmap_cache(line):
                return no_match
        return (True, "")
 
+def rename_cyrillic_kmap_files(line):
+       line = line.lower()
+       if not (line.startswith("\\kbmap_primary ")
+                       or line.startswith("\\kbmap_secondary ")):
+               return no_match
+       line = line.replace('"bg-bds-1251"', '"bulgarian"')
+       line = line.replace('"koi8-r"', '"russian"')
+       line = line.replace('"koi8-u"', '"ukrainian"')
+       return (True, line)
+
 # End conversions for LyX 2.3 to 2.4
 ####################################
 
@@ -474,5 +496,8 @@ conversions = [
        [ 28, [remove_date_insert_format]],
        [ 29, [remove_use_pixmap_cache]],
        [ 30, []],
-       [ 31, []]
+       [ 31, []],
+       [ 32, []],
+       [ 33, []],
+       [ 34, [rename_cyrillic_kmap_files]]
 ]