mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Increment preferences format to 34: rename Cyrillic *.kmap files
This commit is contained in:
parent
40159fd2ab
commit
cd933534bd
@ -1876,7 +1876,7 @@ if __name__ == '__main__':
|
||||
lyx_check_config = True
|
||||
lyx_kpsewhich = True
|
||||
outfile = 'lyxrc.defaults'
|
||||
lyxrc_fileformat = 33
|
||||
lyxrc_fileformat = 34
|
||||
rc_entries = ''
|
||||
lyx_keep_temps = False
|
||||
version_suffix = ''
|
||||
|
@ -134,6 +134,8 @@
|
||||
# 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.
|
||||
@ -439,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
|
||||
####################################
|
||||
|
||||
@ -486,5 +498,6 @@ conversions = [
|
||||
[ 30, []],
|
||||
[ 31, []],
|
||||
[ 32, []],
|
||||
[ 33, []]
|
||||
[ 33, []],
|
||||
[ 34, [rename_cyrillic_kmap_files]]
|
||||
]
|
||||
|
@ -65,7 +65,7 @@ namespace {
|
||||
|
||||
// The format should also be updated in configure.py, and conversion code
|
||||
// should be added to prefs2prefs_prefs.py.
|
||||
static unsigned int const LYXRC_FILEFORMAT = 33; // sanda: add \citation_search_view
|
||||
static unsigned int const LYXRC_FILEFORMAT = 34; // yuriy: rename kmap files
|
||||
// when adding something to this array keep it sorted!
|
||||
LexerKeyword lyxrcTags[] = {
|
||||
{ "\\accept_compound", LyXRC::RC_ACCEPT_COMPOUND },
|
||||
|
Loading…
Reference in New Issue
Block a user