Author: spitz
Date: Sun May 23 11:14:23 2010
New Revision: 34458
URL: http://www.lyx.org/trac/changeset/34458

Log:
backport r34100:

Author: spitz
Date: Fri Apr  9 11:27:54 2010
New Revision: 34100
URL: http://www.lyx.org/trac/changeset/34100

Log:
* src/LaTeXFeatures.cpp: simplify greektext definition. Patch by G. Milde (bug 
#6458)

Modified:
   lyx-devel/branches/BRANCH_1_6_X/src/LaTeXFeatures.cpp
   lyx-devel/branches/BRANCH_1_6_X/status.16x

Modified: lyx-devel/branches/BRANCH_1_6_X/src/LaTeXFeatures.cpp
==============================================================================
--- lyx-devel/branches/BRANCH_1_6_X/src/LaTeXFeatures.cpp       Sun May 23 
01:20:40 2010        (r34457)
+++ lyx-devel/branches/BRANCH_1_6_X/src/LaTeXFeatures.cpp       Sun May 23 
11:14:23 2010        (r34458)
@@ -189,13 +189,11 @@
        "\\newcommand{\\lyxdeleted}[3]{}\n";
 
 static string const textgreek_def =
-       "\\providecommand*{\\perispomeni}{\\char126}\n"
-       "\\AtBeginDocument{\\DeclareRobustCommand{\\greektext}{%\n"
-       "  \\fontencoding{LGR}\\selectfont\\def\\encodingdefault{LGR}%\n"
-       "  \\renewcommand{\\~}{\\perispomeni}%\n"
-       "}}\n"
+       "\\DeclareRobustCommand{\\greektext}{%\n"
+       "  \\fontencoding{LGR}\\selectfont\\def\\encodingdefault{LGR}}\n"
        "\\DeclareRobustCommand{\\textgreek}[1]{\\leavevmode{\\greektext #1}}\n"
-       "\\DeclareFontEncoding{LGR}{}{}\n";
+       "\\DeclareFontEncoding{LGR}{}{}\n"
+       "\\DeclareTextSymbol{\\~}{LGR}{126}");
 
 static string const textcyr_def =
        "\\DeclareRobustCommand{\\cyrtext}{%\n"

Modified: lyx-devel/branches/BRANCH_1_6_X/status.16x
==============================================================================
--- lyx-devel/branches/BRANCH_1_6_X/status.16x  Sun May 23 01:20:40 2010        
(r34457)
+++ lyx-devel/branches/BRANCH_1_6_X/status.16x  Sun May 23 11:14:23 2010        
(r34458)
@@ -59,6 +59,8 @@
 
 - Honour physical paper size settings on output (bug 5247).
 
+- Simplify definition of \greektext (bug 6458).
+
 
 * USER INTERFACE
 

Reply via email to