Re: [patch] Improving CAS support in LyX

2006-08-10 Thread Bo Peng
Please find attached a patch which monotonically improves such support. I tested it with octave, maxima, and mathematica. I do not have any of them... but I will install octave and test. BTW, how difficult it is to add support for other applications like matlab, R, python etc? Thanks. Bo

Re: czech translation

2006-08-10 Thread Sanda Pavel
> Sanda> - the file->import menu behave in a strange way, because it > Sanda> ignores the shortcut defined in .po file. maybe there something > Sanda> wrong in .po file, but i dont see what. > >> There is no way now to translate the list of formats for either > >> import or export, since these are

Re: Lyx -> LaTeX backward (IN-)compaitbilty

2006-08-10 Thread Jens Noeckel
I've just added another (and not reported earlier, I believe) bug related to the latex export, when done from the command line. It causes irreversible loss of existing EPS files. I'm not saying that it's useless to have such an additional functionality, but I think given the pros and cons

Re: Lyx -> LaTeX backward (IN-)compaitbilty

2006-08-10 Thread Jens Noeckel
On Aug 10, 2006, at 4:13 PM, Enrico Forestieri wrote: On Thu, Aug 10, 2006 at 08:28:31AM -0700, Jens Noeckel wrote: On Aug 10, 2006, at 6:25 AM, Georg Baum wrote: Jens Noeckel wrote: I had brought up an issue on the LyX users list, see the quoted text below; meanwhile I've looked aroun

Re: Lyx -> LaTeX backward (IN-)compaitbilty

2006-08-10 Thread Enrico Forestieri
On Thu, Aug 10, 2006 at 08:28:31AM -0700, Jens Noeckel wrote: > > On Aug 10, 2006, at 6:25 AM, Georg Baum wrote: > > > Jens Noeckel wrote: > > > >> I had brought up an issue on the LyX users list, see the quoted text > >> below; meanwhile I've looked around for some more info on this, and > >> f

Re: captions in Qt .ui files

2006-08-10 Thread Angus Leeming
José Matos wrote: > On Thursday 10 August 2006 17:23, Angus Leeming wrote: >> I'm not very good at awk > LOL. > After seeing your spells(*) with sed, awk and co., I think that I am > allowed to disagree. ;-) Flattery will get you everywhere, José ;-) Ok, the script below works for me with $ awk

Re: captions in Qt .ui files

2006-08-10 Thread José Matos
On Thursday 10 August 2006 17:23, Angus Leeming wrote: > I'm not very good at awk LOL. After seeing your spells(*) with sed, awk and co., I think that I am allowed to disagree. ;-) (*) they are more than simple scripts. :-D -- José Abílio

Re: doc_toc.py bug?

2006-08-10 Thread José Matos
On Thursday 10 August 2006 00:02, Jean-Marc Lasgouttes wrote: > > "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > > José> Done. The code can be simplified more and in a more consistent > José> way but for now it works. > > Jean-Marc> And we are tomorrow anyway... > > I spoke t

Re: Use different temp files for preview.

2006-08-10 Thread José Matos
On Thursday 10 August 2006 12:38, Helge Hafting wrote: > There is > no acrobat reader for 64-bit linux, but xpdf is open source so > it exists and works for every linux there is. Just to add, don't forget that there is no acrobat reader for linux ppc, or any other arch you choose. -- José Abí

Re: captions in Qt .ui files

2006-08-10 Thread Angus Leeming
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > qt_l10n.pot: $(top_srcdir)/src/frontends/qt2/ui/*.ui > LC_ALL=C ; export LC_ALL ; \ > $(AWK) -v top_srcdir="$(top_srcdir)" ' \ > function fixupfilename() \ > {\ > return substr(FILENAME,

[PATCH] test if to_file is writable

2006-08-10 Thread Bo Peng
Dear list, I am lying. I do not know that acrobat reader will lock the previewed file so the attached patch is just an innocent patch to test if to_file in convert() is writable. If not, to_file0, to_file1 etc will be used. I have not tested this patch, but will you like it? Note that there will

Re: captions in Qt .ui files

2006-08-10 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> It has a mass of magical scripts. Don't go there ;-) OK :) Angus> What's the magic that you use to extract the translatable Angus> strings from the .ui files? I thought it was the ui_l10n.pot Angus> target in po/Makefile.in.in T

Re: captions in Qt .ui files

2006-08-10 Thread Angus Leeming
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > Georg> Jean-Marc Lasgouttes wrote: > >> Can they be removed? They clutter .po files. > Georg> AFAIK they where once removed also in trunk, but designer adds > Georg> them back. > So we have to find a way to skip these. How does KDE gather the >

Re: czech translation

2006-08-10 Thread Jean-Marc Lasgouttes
> "Sanda" == Sanda Pavel <[EMAIL PROTECTED]> writes: Sanda> - the file->import menu behave in a strange way, because it Sanda> ignores the shortcut defined in .po file. maybe there something Sanda> wrong in .po file, but i dont see what. >> There is no way now to translate the list of formats

Re: czech translation

2006-08-10 Thread Jean-Marc Lasgouttes
> "Sanda" == Sanda Pavel <[EMAIL PROTECTED]> writes: >> Finally, we need a message from you stating that you accept to >> distribute your contributions according to the GPL. Sanda> I hereby grant permission to licence my contributions to LyX Sanda> under the Gnu General Public Licence, versio

Re: czech translation

2006-08-10 Thread Sanda Pavel
> Sanda> - the file->import menu behave in a strange way, because it > Sanda> ignores the shortcut defined in .po file. maybe there something > Sanda> wrong in .po file, but i dont see what. > > There is no way now to translate the list of formats for either import > or export, since these are def

Re: Use different temp files for preview.

2006-08-10 Thread Paul A. Rubin
Bo Peng wrote: Perhaps the Windows installers could offer to install them (and recognize them as the default viewer for PDF formats if installed)? Currently, lyx uses the default pdf viewer of windows by default. Users will have to set them manually after lyx is installed. True, but that's b

Re: czech translation

2006-08-10 Thread Sanda Pavel
> Finally, we need a message from you stating that you accept to > distribute your contributions according to the GPL. I hereby grant permission to licence my contributions to LyX under the Gnu General Public Licence, version 2 or later Pavel Sanda

Re: Lyx -> LaTeX backward (IN-)compaitbilty

2006-08-10 Thread Jens Noeckel
On Aug 10, 2006, at 6:25 AM, Georg Baum wrote: Jens Noeckel wrote: I had brought up an issue on the LyX users list, see the quoted text below; meanwhile I've looked around for some more info on this, and felt I could make some suggestions here. Looking at Bug 2419, I see the rationale for hav

Re: captions in Qt .ui files

2006-08-10 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> Jean-Marc Lasgouttes wrote: >> Can they be removed? They clutter .po files. Georg> AFAIK they where once removed also in trunk, but designer adds Georg> them back. So we have to find a way to skip these. How does KDE gather the trans

Re: What are the Alt+X in qt ui files?

2006-08-10 Thread Edwin Leuven
Jean-Marc Lasgouttes wrote: Edwin> ok to commit? Yes, done? but we should find out what happens. someone put them in?

Re: captions in Qt .ui files

2006-08-10 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > Can they be removed? They clutter .po files. AFAIK they where once removed also in trunk, but designer adds them back. Georg PS: I am impressed by the amount of 1.4.3 work that happened while I was away.

Re: [PATCH] Logic error in fix to bug 2740

2006-08-10 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Jean-Marc Lasgouttes wrote: >> Could you test it, so that we avoid another round of fixes? I tried >> to, but I may miss something else. Juergen> works in all special cases I can think of. Thanks for testing. Applied.

Re: Lyx -> LaTeX backward (IN-)compaitbilty

2006-08-10 Thread Georg Baum
Jens Noeckel wrote: > I had brought up an issue on the LyX users list, see the quoted text > below; meanwhile I've looked around for some more info on this, and > felt I could make some suggestions here. Looking at Bug 2419, I see > the rationale for having self-contained export from LyX to LaTeX

Re: [PATCH] Logic error in fix to bug 2740

2006-08-10 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > Could you test it, so that we avoid another round of fixes? I tried > to, but I may miss something else. works in all special cases I can think of. Please apply. Jürgen

Re: czech translation

2006-08-10 Thread Jean-Marc Lasgouttes
> "Sanda" == Sanda Pavel <[EMAIL PROTECTED]> writes: Sanda> - the "Part" environment is correctly translated inside the Sanda> environemnt box and in .ps output of a document. But still Sanda> remains untranslated in the text on screen. this cannot be Sanda> changed through .po file ? All I c

Re: [PATCH] Logic error in fix to bug 2740

2006-08-10 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: >> Juergen, do you agree? Juergen> Looks reasonable, though I did not test it. Could you test it, so that we avoid another round of fixes? I tried to, but I may miss something else. JMarc

Re: [PATCH] Logic error in fix to bug 2740

2006-08-10 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > - Create a new file > - save > > => LyX complains it could not create a backup, which is > understandable, since there is nothing to backup! Oops, I did not test this obvious case. > The following patch seems to fix the logic. > > Juergen, do you agree? Looks reason

Re: Updated cvs.php page

2006-08-10 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: >> - add lyx-tests repository Juergen> That actually makes "three active modules". This is what is written on the page, isn't it? ;-P JMarc

[PATCH] Logic error in fix to bug 2740

2006-08-10 Thread Jean-Marc Lasgouttes
- Create a new file - save => LyX complains it could not create a backup, which is understandable, since there is nothing to backup! The following patch seems to fix the logic. Juergen, do you agree? JMarc Index: src/buffer.C ===

Re: Updated cvs.php page

2006-08-10 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > FYI: I got bored and updated the cvs.php page to add a pointer to trac, and > other smaller things. [...] > - add lyx-tests repository That actually makes "three active modules". Jürgen

Updated cvs.php page

2006-08-10 Thread Jean-Marc Lasgouttes
FYI: I got bored and updated the cvs.php page to add a pointer to trac, and other smaller things. JMarc

Re: What are the Alt+X in qt ui files?

2006-08-10 Thread Jean-Marc Lasgouttes
> "Edwin" == Edwin Leuven <[EMAIL PROTECTED]> writes: Edwin> Jean-Marc Lasgouttes wrote: >> Is there a way to tell qtdesigner not to output this? Edwin> i don't know why they are set Maybe designer puts them when adding new object? Edwin> the attached patch removes them Edwin> ok to commit

Lyx 1.5svn suddenly don't want to produce PDF

2006-08-10 Thread Helge Hafting
I cannot export PDF, I cannot view->PDF tools->reconfigure discovers both acrobat, pdflatex and dvipdfm but still - no view->pdf or export->PDF I know I have the necessary software, for export->latex(pdflatex) followed by a manual pdflatex run gives me a PDF as expected. Helge Hafting

Re: Use different temp files for preview.

2006-08-10 Thread Helge Hafting
Bo Peng wrote: Can anyone confirm this problem? (linux) 1. open lyx, 2. type a 3. pdflatex preview 4. type b 4. pdflatex preview the /tmp//newfile1.pdf is successfully re-generated (tested using xpdf), but "acroread /tmp/.../newfile1.pdf" will not do anything since acrobat reader thinks the

Re: Use different temp files for preview.

2006-08-10 Thread Helge Hafting
Bo Peng wrote: Asger posted some code last June that would enable you to write a wrapper for Acrobat that would obviate the problem. See: http://thread.gmane.org/gmane.editors.lyx.devel/46077 That is for acrobat reader only, and under windows only. Using different temp files will solve the pr

Re: What are the Alt+X in qt ui files?

2006-08-10 Thread Edwin Leuven
Jean-Marc Lasgouttes wrote: Is there a way to tell qtdesigner not to output this? i don't know why they are set the attached patch removes them ok to commit? ed. Index: qt3/ui/QAskForTextDialog.ui === --- qt3/ui/QAskForTextDia

Re: [Pkg-lyx-devel] Re: [PATCH] bug 2741: configure.py is not run when using batch mode

2006-08-10 Thread Jean-Marc Lasgouttes
> "Per" == Per Olofsson <[EMAIL PROTECTED]> writes: Per> Jean-Marc Lasgouttes: >> What about that: mkdir /tmp/tempuserdir lyx -userdir >> /tmp/tempuserdir -e latex foo.lyx rm -rf /tmp/tempuserdir Per> Yes, I think that's an acceptable workaround. Could you confirm that the patch I sent fits

Re: czech translation

2006-08-10 Thread Jean-Marc Lasgouttes
> "Sanda" == Sanda Pavel <[EMAIL PROTECTED]> writes: Sanda> i decided to test this translation while correcting the old Sanda> czech lyx tutorial. i send a patch (against lyx 1.5.0svn) for Sanda> cs_Tutorial.lyx. Thanks, I applied it to 1.4 and 1.5. In the future, I'd rather have 1.4 version

Re: [Pkg-lyx-devel] Re: [PATCH] bug 2741: configure.py is not run when using batch mode

2006-08-10 Thread Per Olofsson
Jean-Marc Lasgouttes: > What about that: > mkdir /tmp/tempuserdir > lyx -userdir /tmp/tempuserdir -e latex foo.lyx > rm -rf /tmp/tempuserdir Yes, I think that's an acceptable workaround. > Per> The best would be if configure.py was removed completely and > Per> everything was detected at runtime

Re: czech translation

2006-08-10 Thread Jean-Marc Lasgouttes
> "Sanda" == Sanda Pavel <[EMAIL PROTECTED]> writes: Sanda> hello, in attachment you can find translated .po file in czech. Sanda> untranslated file was generated from 1.5.0svn tree. Hello, Thanks for the file. I applied it to the 1.5 tree, along with the patch and also in the 1.4 tree, wher

Re: [patch] bug 2756: LyX crashes on next-inset-toggle in math-mode

2006-08-10 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > OK, try this new version instead. I undid the simplifications to the > code, since they were wrong %-] So now the code for > LFUN_NEXT_INSET_TOGGLE is basically moved as is to BufferView::Pimpl. It seems to work as expected. I don't get the console output anymore, and

Re: Use different temp files for preview.

2006-08-10 Thread Bo Peng
Can anyone confirm this problem? (linux) 1. open lyx, 2. type a 3. pdflatex preview 4. type b 4. pdflatex preview the /tmp//newfile1.pdf is successfully re-generated (tested using xpdf), but "acroread /tmp/.../newfile1.pdf" will not do anything since acrobat reader thinks the file is not cha