[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kopete-devel
Subject:    Re: [kopete-devel] [Bug 135997] KopeTeX doesnot display math and
From:       Andrea Di Menna <a.dimenna () libero ! it>
Date:       2006-11-19 15:13:25
Message-ID: 200611191613.28755.a.dimenna () libero ! it
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Alle 13:39, domenica 19 novembre 2006, Andrea Di Menna ha scritto:
> Alle 20:15, sabato 18 novembre 2006, Frank Roscher ha scritto:
> > ------- Additional Comments From onety-three gmx net  2006-11-18 20:15
> > ------- It seems to be the "let"-command (line 225 here) and this (line
> > 194): test -f ${f##*/} || ln -s $f . # multi-processing!
> >
> > I'm no bash-monkey though, so someone else will have to figure out what's
> > the problem :)
> >
> > The actual error messages are this:
> > /usr/bin/kopete_latexconvert.sh: 1: let: not found
>
> To solve this just change that line:
>
> let OPTIND=$OPTIND+1
>
> with:
>
> OPTIND=`expr $OPTIND + 1`
>
> It works with dash
>

I have spotted another problem:
when you write something like $$ text $$ in a chatwindow and you are using the 
latex plugin text is sent to kopete_latexconvert.sh as an input parameter. 
Since this is a command line parameter characters like \f \t etc etc are 
interpreted as special character. It happens you have to write something like 
\frac which is of course misunderstood by the script. A solution would be 
escaping backslashes. 
In latex.ccp you should add in the handlelatex method (I think, I'm not a lot 
into Qt)

QRegExp backslash ( "\" );
latexformula.replace( backslash, "\\" ); 

Maybe other kind of characters should be escaped, like $.

Sorry, I can't provide any patch cause I haven't got kopete 0.12.3 source 
files. Hope some of the developpers can provide some kind of fix for this. 
Thank you
Andrea

[Attachment #5 (application/pgp-signature)]

_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic