On Saturday 01 February 2003 2:07 pm, Lars Gullik Bjønnes wrote:
> Angus Leeming <[EMAIL PROTECTED]> writes:
> | Lars Gullik Bjønnes wrote:
> | > Angus Leeming <[EMAIL PROTECTED]> writes:
> | > | Aren't I clever! Lars, may I apply this fix please?
> | >
> | > Get somebody else to test this and report back.
> |
> | What's to test? The minimal fix works on the test case supplied with the
> | bug.
>
> just get somebody to test it.

<Shrug> Feel free... <\Shrug>

Please run the attached test.tex through reLyX and view the generated lyx file 
with lyx:
# RELYX=$LYXBUILDIR/lib/reLyX/reLyX
# $RELYX -f test.tex
# lyx test.lyx

I anticipate that you'll see a pile of gibberish, à la view1.png, also 
attached.

Now apply relyx.diff from the base of the LyX source tree and run test.tex 
through relyx
# patch -p0 < relyx.diff
# $RELYX -f test.tex
# lyx test.lyx

I would be grateful if you confirm that it now imports à la view2.png.

Regards,
Angus

<<attachment: view1.png>>

<<attachment: view2.png>>

Index: lib/reLyX/Text/TeX.pm
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/reLyX/Text/TeX.pm,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 TeX.pm
--- lib/reLyX/Text/TeX.pm	27 Sep 1999 18:44:35 -0000	1.1.1.1
+++ lib/reLyX/Text/TeX.pm	1 Feb 2003 14:23:29 -0000
@@ -101,7 +101,8 @@ $usualtokenclass = "[^$notusualtoks]";
 #    \" or \frac, e.g. Note that it eats whitespace AFTER the token. This is
 # correct LaTeX behavior, but if text follows such a macro, and you just
 # print out the macro & then the text, they will run together.
-$macro = '\\\\(?:[^a-zA-Z]\*?|([a-zA-Z]+\*?)\s*)'; # Has one level of grouping
+$macro = '\\\\(?:\)|([^a-zA-Z)]\*?)|([a-zA-Z]+\*?)\s*)';
+#$macro = '\\\\(?:[^a-zA-Z]\*?|([a-zA-Z]+\*?)\s*)'; # Has one level of grouping
 #$macro = '\\\\(?:[^a-zA-Z]|([a-zA-Z]+)\s*)'; # Contains one level of grouping
 
 # active is a backslashed macro or $$ (same as \[) or ^^ followed by a char

Reply via email to