- support for polytonic Greek, fileformat incremented to 338, fixes bug 4969, patch by me and Jürgen

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25356 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2008-06-22 23:21:46 +00:00
parent 419b5a1551
commit e2e78fa20a
4 changed files with 25 additions and 2 deletions

View File

@ -1,6 +1,9 @@
LyX file-format changes
-----------------------
2008-06-21 Uwe Stöhr <uwestoehr@web.de>
* Format incremented to 338: support for polytonic Greek.
2008-06-13 Abdelrazak Younes <younes@lyx.org>
* Format incremented to 337: convert/revert graphics display param.

View File

@ -42,6 +42,7 @@ galician galician "Galician" false iso8859-15 gl_ES ""
german german "German (old spelling)" false iso8859-15 de_DE ""
ngerman ngerman "German" false iso8859-15 de_DE ""
greek greek "Greek" false iso8859-7 el_GR ""
polutonikogreek polutonikogreek "Greek (polytonic)" false iso8859-7 el_GR "\makeatletter\let\lyx@tildeaccent\~\addto\extrasgreek{\bbl@deactivate{~}\let\~\lyx@tildeaccent}\makeatother"
hebrew hebrew "Hebrew" true cp1255 he_IL ""
# "hungarian" is a synonym for the "magyar" babel language option
# "hungarian" might be used for special purposes, see http://www.math.bme.hu/latex/magyar_pre_tug2004.pdf

View File

@ -2584,6 +2584,23 @@ def revert_plainlayout(document):
i += 1
def revert_polytonicgreek(document):
"Set language polytonic Greek to Greek"
i = 0
if document.language == "polutonikogreek":
document.language = "greek"
i = find_token(document.header, "\\language", 0)
if i != -1:
document.header[i] = "\\language greek"
j = 0
while True:
j = find_token(document.body, "\\lang polutonikogreek", j)
if j == -1:
return
document.body[j] = document.body[j].replace("\\lang polutonikogreek", "\\lang greek")
j = j + 1
##
# Conversion hub
#
@ -2650,9 +2667,11 @@ convert = [[277, [fix_wrong_tables]],
[335, [convert_InsetSpace]],
[336, []],
[337, [convert_display_enum]],
[338, []],
]
revert = [[336, [revert_display_enum]],
revert = [[337, [revert_polytonicgreek]],
[336, [revert_display_enum]],
[335, [remove_fontsCJK]],
[334, [revert_InsetSpace]],
[333, [revert_paper_sizes]],

View File

@ -115,7 +115,7 @@ namespace os = support::os;
namespace {
int const LYX_FORMAT = 337;
int const LYX_FORMAT = 338; //Uwe: support for polytonic Greek
typedef map<string, bool> DepClean;
typedef map<docstring, pair<InsetLabel const *, Buffer::References> > RefCache;