On Fri, 14 Jan 2000, Berthold Gunreben wrote:

>Hi,
>
>I think I found a bug in LyX Version 1.1.3. I try to use a compose key to
>enter the ô character. What I do is:
>press shift
>press AltGR
>release shift
>press and release ^
>press and release o
>
>and doing this kills lyx. The same combination works with a, e, i and u.
>Cut and Paste from another Terminal works as well. 
>Do you have any hints or is this corrected in CVS?

        Known problem, check the archives; it has something to do with
        the 'high-ascii' codes.

        There's a patch which fixes it (and several other bugs), as
        sent to me by Jean-Marc Lasgouttes

--- cut here ---

>From [EMAIL PROTECTED] Wed Dec 15 21:57:40 1999
Date: 15 Dec 1999 18:36:17 +0100
From: Jean-Marc Lasgouttes <[EMAIL PROTECTED]>
To: Davor Cengija <[EMAIL PROTECTED]>
Cc: Jean-Marc Lasgouttes <[EMAIL PROTECTED]>
Subject: Re: lyx new releases - where are the patches?

>>>>> "Davor" == Davor Cengija <[EMAIL PROTECTED]> writes:

Davor> On 15 Dec 1999, Jean-Marc Lasgouttes wrote:
>> You should use -r too for diffs.
>> 
>> Concerning the particular problems you have with 1.1.3, you can
>> take the patch
>> http://www-rocq.inrua.fr/~lasgoutt/patch-1.1.3++unofficial which
>> solves this and a few other minor issues.

Davor>  host not found (wed 15.12.1999 18:30 CET)

Right. 'inrua' should read 'inria' :(

Anyway, here is the patch.

JMarc

----------------------------------------------------------
  This patch fixes three small problems in lyx 1.1.3:
    - it is possible to insert spaces in math formulas
    - debug messages appear on screen when typing text.
    - entering accented characters is broken on some architectures

  It is absolutely not supported, but intended as a stopgap until
  LyX 1.1.4 is released.

  -- [EMAIL PROTECTED]

diff -ur lyx-1.1.3/development/lyx.spec lyx-1.1.3++/development/lyx.spec
--- lyx-1.1.3/development/lyx.spec      Wed Dec  1 00:56:49 1999
+++ lyx-1.1.3++/development/lyx.spec    Fri Dec 10 17:06:48 1999
@@ -1,6 +1,6 @@
 Summary: A WYSYWIG frontend to LaTeX
 Name: lyx
-Version: 1.1.3
+Version: 1.1.3++ unofficial
 Release: 1
 Copyright: see COPYING file
 Group: X11/Editors
diff -ur lyx-1.1.3/src/mathed/formula.C lyx-1.1.3++/src/mathed/formula.C
--- lyx-1.1.3/src/mathed/formula.C      Wed Nov 24 23:14:46 1999
+++ lyx-1.1.3++/src/mathed/formula.C    Wed Dec  8 15:12:42 1999
@@ -1145,7 +1145,7 @@
           if (('0'<= c && c<= '9') || strchr(";:!|[]().,?", c)) 
              mathcursor->Insert(c, LM_TC_CONST);
         else
-          if (strchr("+/-*<>= ", c))
+          if (strchr("+/-*<>=", c))
              mathcursor->Insert(c, LM_TC_BOP);
         else
           if (strchr(latex_special_chars, c) && c!= '_')
diff -ur lyx-1.1.3/src/trans.C lyx-1.1.3++/src/trans.C
--- lyx-1.1.3/src/trans.C       Mon Nov 15 13:01:38 1999
+++ lyx-1.1.3++/src/trans.C     Fri Dec 10 17:02:13 1999
@@ -162,9 +162,9 @@
        
        for(string::size_type i = 0; i < keys.length(); ++i) {
                char * temp;
-               if (keys[i] == char(254))
-                       lyxerr << "check one triggered" << endl;
-               temp = keymap_[keys[i]] = new char[2];
+//             if (keys[i] == char(254))
+//                     lyxerr << "check one triggered" << endl;
+               temp = keymap_[static_cast<unsigned char>(keys[i])] = new char[2];
                temp[0] = 0; temp[1] = accent;
        }
        kmod_list_[accent]->exception_list = 0;
@@ -276,9 +276,9 @@
                        if (lex.next(true)) {
                                char const * t = lex.text();
                                string_to = strcpy(new char[strlen(t)+1], t);
-                               if (key_from == char(254))
-                                       lyxerr << "check two triggered"
-                                              << endl;
+//                             if (key_from == char(254))
+//                                     lyxerr << "check two triggered"
+//                                            << endl;
                                keymap_[key_from] = string_to;
                                if (lyxerr.debugging(Debug::KBMAP))
                                        lyxerr << "\t`" << string_to << "'"
@@ -347,17 +347,17 @@
 
 string Trans::process(char c, TransManager & k)
 {
-       lyxerr << "enter process" << endl;
+//     lyxerr << "enter process" << endl;
        char dummy[2] = "?";
        char * dt = dummy;
        char * t = Match(c);
-       lyxerr << "finished variables" << endl;
+//     lyxerr << "finished variables" << endl;
     
        if ((t == 0 && (dt[0] = c)) || (t[0] != 0 && (dt = t)) ){
-               lyxerr << "normalkey" << endl;
+//             lyxerr << "normalkey" << endl;
                return k.normalkey(c, dt);
        } else {
-               lyxerr << "deadkey" << endl;
+//             lyxerr << "deadkey" << endl;
                return k.deadkey(c, *kmod_list_[(tex_accent)t[1]]);
        }
 }
diff -ur lyx-1.1.3/src/trans.h lyx-1.1.3++/src/trans.h
--- lyx-1.1.3/src/trans.h       Mon Nov 15 13:01:38 1999
+++ lyx-1.1.3++/src/trans.h     Fri Dec 10 17:01:33 1999
@@ -97,7 +97,7 @@
 
 char * Trans::Match(char c)
 {
-       return keymap_[c];
+       return keymap_[static_cast<unsigned char>(c)];
 }
 
 #endif 
diff -ur lyx-1.1.3/src/version.h lyx-1.1.3++/src/version.h
--- lyx-1.1.3/src/version.h     Wed Dec  1 00:52:32 1999
+++ lyx-1.1.3++/src/version.h   Fri Dec 10 17:02:35 1999
@@ -1,3 +1,3 @@
 /* Version and release date definition */
-#define LYX_VERSION "1.1.3"
-#define LYX_RELEASE "Wed, Dec 01, 1999"
+#define LYX_VERSION "1.1.3++ unofficial"
+#define LYX_RELEASE "Wed, Dec 10, 1999"
--- cut here---
-- 
      v
Davor Cengija
[EMAIL PROTECTED]
===================================
"Please allow 30 days for delivery"

Reply via email to