On 2009-12-01, Jürgen Spitzmüller wrote:

> Please come back with this after 1.6.5 is out. As trivial and straightforward 
> as this looks, this needs testing, and it's too late for the release.

OK. Here it comes again:

> Guenter Milde wrote:
>> Dear LyX devels,

>> I am glad to see that polytonic Greek is supported in trunk now.
>> However, there is a rudiment of the lengthy discussion on how to best
>> achieve this in the "languages" file:

>> polutonikogreek polutonikogreek      "Greek (polytonic)"     false  
>> iso8859-7  el_GR
>> "\providecommand*{\perispomeni}{\char126}\addto\extraspolutonikogreek{\let\
>> ~\perispomeni}\addto\extrasgreek{\let\~\perispomeni}"

>> The \perispomeni command was my invention for a mnemonic replacement
>> of \char126 because both, '~' and '\~' were said to be unavailable
>> (needed for \nobreakspace and accent-tilde).

>> With http://www.lyx.org/trac/changeset/31270, '\~' is defined as
>> inserting character 126.
>> However, there is no need to do this indirectly.
>> Instead, the language code should be shortened to:

>> polutonikogreek polutonikogreek      "Greek (polytonic)"     false  
>> iso8859-7  el_GR
>> "\addto\extraspolutonikogreek{\let\~\char126}\addto\extrasgreek{\let\~\char
>> 126}"

>> And lyx-devel/branches/BRANCH_1_6_X/src/LaTeXFeatures.cpp
>> patched like

>> --- /usr/local/src/lyx/src/LaTeXFeatures.cpp~        2009-09-23 
>> 10:32:39.000000000
>>  +0200 +++ /usr/local/src/lyx/src/LaTeXFeatures.cpp  2009-12-01
>>  11:25:00.000000000 +0100 @@ -195,10 +195,9 @@
>>      "\\newcommand{\\lyxdeleted}[3]{}\n");

>>  static docstring const textgreek_def = from_ascii(
>> -    "\\providecommand*{\\perispomeni}{\\char126}\n"
>>      "\\AtBeginDocument{\\DeclareRobustCommand{\\greektext}{%\n"
>>      "  \\fontencoding{LGR}\\selectfont\\def\\encodingdefault{LGR}\n"
>> -    "  \\renewcommand{\\~}{\\perispomeni}\n"
>> +    "  \\renewcommand{\\~}{\\char126}\n"
>>      "}}\n"
>>      "\\DeclareRobustCommand{\\textgreek}[1]{\\leavevmode{\\greektext #1}}\n"
>>      "\\DeclareFontEncoding{LGR}{}{}\n");

>> Günter



> Jürgen


Reply via email to