Re: Double word bug - LyX is duplicating random words

2015-03-18 Thread Jean-Marc Lasgouttes

Le 18/03/2015 07:21, James a écrit :

I have started to believe the double word bug is deeper than just double
words.
It seems as though what ever is causing duplicating words can similarly
remove words (i.e. like it cuts a word out of the sentence).


Hi James,

I am not sure I asked already (I know I thought about asking :), so here 
it goes:


Did you do a thorough check of your machine with some antimalware (like 
Malwarebytes Anti-Malware Free)?


It is really a shot in the dark, but your problem is so strange that we 
shall look for weird solutions.


Also, what was the outcome of your suspicions about the word-replace 
function? Do you still believe it is triggered in this case?


JMarc



Re: new compiler warnings in master

2015-03-18 Thread Jean-Marc Lasgouttes

Le 18/03/2015 08:30, Uwe Stöhr a écrit :

Within the last 2 weeks a commit lead to these new compiler warnings:
(The same that I constantly report here. I am wondering why the appear
so often with recent commits.)

It's my fault. I will fix this.

JMarc


   ..\..\..\src\insets\InsetSpecialChar.cpp(57): warning C4244: '=':
convesion from 'double' to 'int', possible dataloss
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]

   ..\..\..\src\insets\InsetSpecialChar.cpp(63): warning C4244: '=':
Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(69): warning C4244: '=':
Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(76): warning C4244: '=':
Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(149): warning C4244: '-=':
Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(150): warning C4244:
'Argument': Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(151): warning C4244: '-=':
Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(161): warning C4244: '-=':
Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(162): warning C4244:
'Argument': Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(163): warning C4244: '-=':
Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(174): warning C4244: '+=':
Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(176): warning C4244:
'Argument': Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(193): warning C4244: '-=':
Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(196): warning C4244:
'Argument': Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(197): warning C4244: '-=':
Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]

regards Uwe




Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Jürgen Spitzmüller
2015-03-18 8:53 GMT+01:00 Uwe Stöhr:

 Qt 4.8.6


Does your qt build contain the qtsvg headers?

Jürgen




 regards Uwe



Re: new compiler warnings in master

2015-03-18 Thread Jean-Marc Lasgouttes

Le 18/03/2015 08:30, Uwe Stöhr a écrit :

Within the last 2 weeks a commit lead to these new compiler warnings:
(The same that I constantly report here. I am wondering why the appear
so often with recent commits.)


The warnings should be gone now. Please confirm.

THis uses integer arithmetic now and therefore Abdel's port to Raspberry 
should become snappier :)


Georg, note that there was an error for LaTeX 2e (\LaTeX2e instead of 
\LaTeXe). I fixed it in LaTeX output, but I suspect that we should 
change the file format too for consistency sake.


JMarc



Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Jürgen Spitzmüller
2015-03-18 17:32 GMT+01:00 Scott Kostyshak:

 And for Linux is there something I need in PATH? I have installed
 libqt5svg5 but that did not help (note that I am using a compiled Qt
 5). Do I need to install libqt5svg5-dev and recompile Qt 5?


Yes, you need the qt5svg headers (where ever they are packed by your
distro).

Jürgen



 Scott



Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 11:20:49AM +0400, Uwe Stöhr wrote:
 I just compiled master and started the resulting LyX.exe. As result
 I get tons of these warnings:
 
 ..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load
 icon C:/LyXGit/Master/lib/images/index-insert.svgz please verify
 resource system!
 
 I use CMake. The icons are in the directory so it is not clear to me
 why they are not found. Naybe it is a problem with the slashes in
 the folder?

No, you need gunzip in the PATH. You can download it from
http://www.gzip.org/gzip124xN.zip

Simply rename gzip.exe as gunzip.exe and put it in the PATH.

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Kornel Benko
Am Mittwoch, 18. März 2015 um 12:32:54, schrieb Scott Kostyshak 
skost...@lyx.org
 On Wed, Mar 18, 2015 at 12:01 PM, Enrico Forestieri for...@lyx.org wrote:
  On Wed, Mar 18, 2015 at 11:20:49AM +0400, Uwe Stöhr wrote:
  I just compiled master and started the resulting LyX.exe. As result
  I get tons of these warnings:
 
  ..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load
  icon C:/LyXGit/Master/lib/images/index-insert.svgz please verify
  resource system!
 
  I use CMake. The icons are in the directory so it is not clear to me
  why they are not found. Naybe it is a problem with the slashes in
  the folder?
 
  No, you need gunzip in the PATH. You can download it from
  http://www.gzip.org/gzip124xN.zip
 
  Simply rename gzip.exe as gunzip.exe and put it in the PATH.
 
 And for Linux is there something I need in PATH? I have installed
 libqt5svg5 but that did not help (note that I am using a compiled Qt
 5).

I suppose you have Qt5-Build-Dir/qtbase/bin in your PATH already?
Other than this I don't know.

 Do I need to install libqt5svg5-dev and recompile Qt 5?

Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons were 
still OK.
But check, if you have Qt5-Build-Dir/qtbase/plugins/imageformats/libqsvg.so.
For your self compiled Qt5 you even don't need package libqt5svg5 installed.

 Scott

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Scott Kostyshak
On Wed, Mar 18, 2015 at 12:01 PM, Enrico Forestieri for...@lyx.org wrote:
 On Wed, Mar 18, 2015 at 11:20:49AM +0400, Uwe Stöhr wrote:
 I just compiled master and started the resulting LyX.exe. As result
 I get tons of these warnings:

 ..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load
 icon C:/LyXGit/Master/lib/images/index-insert.svgz please verify
 resource system!

 I use CMake. The icons are in the directory so it is not clear to me
 why they are not found. Naybe it is a problem with the slashes in
 the folder?

 No, you need gunzip in the PATH. You can download it from
 http://www.gzip.org/gzip124xN.zip

 Simply rename gzip.exe as gunzip.exe and put it in the PATH.

And for Linux is there something I need in PATH? I have installed
libqt5svg5 but that did not help (note that I am using a compiled Qt
5). Do I need to install libqt5svg5-dev and recompile Qt 5?

Scott


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Jean-Marc Lasgouttes

Le 18/03/2015 17:01, Enrico Forestieri a écrit :

I use CMake. The icons are in the directory so it is not clear to me
why they are not found. Naybe it is a problem with the slashes in
the folder?


No, you need gunzip in the PATH. You can download it from
http://www.gzip.org/gzip124xN.zip

Simply rename gzip.exe as gunzip.exe and put it in the PATH.


Is this needed at build time or at run time?

JMarc



Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Stephan Witt
Am 18.03.2015 um 18:05 schrieb Jean-Marc Lasgouttes lasgout...@lyx.org:

 Le 18/03/2015 17:01, Enrico Forestieri a écrit :
 I use CMake. The icons are in the directory so it is not clear to me
 why they are not found. Naybe it is a problem with the slashes in
 the folder?
 
 No, you need gunzip in the PATH. You can download it from
 http://www.gzip.org/gzip124xN.zip
 
 Simply rename gzip.exe as gunzip.exe and put it in the PATH.
 
 Is this needed at build time or at run time?

At runtime - unless the SVG files were installed uncompressed.

Stephan

Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Kornel Benko
Am Mittwoch, 18. März 2015 um 13:09:09, schrieb Scott Kostyshak 
skost...@lyx.org
 On Wed, Mar 18, 2015 at 12:50 PM, Kornel Benko kor...@lyx.org wrote:
 
  I suppose you have Qt5-Build-Dir/qtbase/bin in your PATH already?
 
 No I did not. I added this and recompiled and now the icons seem to
 show correctly.
 
  Other than this I don't know.
 
  Do I need to install libqt5svg5-dev and recompile Qt 5?
 
  Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons 
  were still OK.
  But check, if you have 
  Qt5-Build-Dir/qtbase/plugins/imageformats/libqsvg.so.
  For your self compiled Qt5 you even don't need package libqt5svg5 installed.
 
 I do not. I have only:
 
 $ ls /usr/BUILD/BuildQt5-dev/qtbase/plugins/imageformats
 libqdds.so  libqgif.so  libqicns.so  libqico.so  libqjp2.so
 libqjpeg.so  libqmng.so  libqtga.so  libqtiff.so  libqwbmp.so
 libqwebp.so
 
 I think I should do a fresh Qt build and then libqsvg.so should be
 there or I will inspect build logs.
 
 Thanks,
 
 Scott

I just downloaded a pre-compiled version 5.4.1 directly from 
http://www.qt.io/download-open-source/
NO Problems with this version. Far better than my own compile of 5.5.

The bin and lib path are changed slightly, e.g.
downloaded  
self compiled
bin: /usr/BUILD/BuildQt5/5.4/gcc_64/bin /usr/BUILD/BuildQt5/qtbase/bin
lib: /usr/BUILD/BuildQt5/5.4/gcc_64/lib 
/usr/BUILD/BuildQt5.not/qtbase/lib

So I had to adapt PATH and /etc/ld.so.conf.d/qt5.conf

Now recompiled lyx (removing first the CMakeCache.txt of course)
Works well.

Kornel


signature.asc
Description: This is a digitally signed message part.


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Scott Kostyshak
On Wed, Mar 18, 2015 at 1:40 PM, Kornel Benko kor...@lyx.org wrote:
 Am Mittwoch, 18. März 2015 um 13:09:09, schrieb Scott Kostyshak 
 skost...@lyx.org
 On Wed, Mar 18, 2015 at 12:50 PM, Kornel Benko kor...@lyx.org wrote:

  I suppose you have Qt5-Build-Dir/qtbase/bin in your PATH already?

 No I did not. I added this and recompiled and now the icons seem to
 show correctly.

  Other than this I don't know.
 
  Do I need to install libqt5svg5-dev and recompile Qt 5?
 
  Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons 
  were still OK.
  But check, if you have 
  Qt5-Build-Dir/qtbase/plugins/imageformats/libqsvg.so.
  For your self compiled Qt5 you even don't need package libqt5svg5 
  installed.

 I do not. I have only:

 $ ls /usr/BUILD/BuildQt5-dev/qtbase/plugins/imageformats
 libqdds.so  libqgif.so  libqicns.so  libqico.so  libqjp2.so
 libqjpeg.so  libqmng.so  libqtga.so  libqtiff.so  libqwbmp.so
 libqwebp.so

 I think I should do a fresh Qt build and then libqsvg.so should be
 there or I will inspect build logs.

 Thanks,

 Scott

 I just downloaded a pre-compiled version 5.4.1 directly from 
 http://www.qt.io/download-open-source/
 NO Problems with this version. Far better than my own compile of 5.5.

 The bin and lib path are changed slightly, e.g.
 downloaded
   self compiled
 bin: /usr/BUILD/BuildQt5/5.4/gcc_64/bin /usr/BUILD/BuildQt5/qtbase/bin
 lib: /usr/BUILD/BuildQt5/5.4/gcc_64/lib 
 /usr/BUILD/BuildQt5.not/qtbase/lib

 So I had to adapt PATH and /etc/ld.so.conf.d/qt5.conf

 Now recompiled lyx (removing first the CMakeCache.txt of course)
 Works well.

Ah good idea. I will look into this.

Scott


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 05:40:54PM +0100, Jürgen Spitzmüller wrote:
 2015-03-18 17:32 GMT+01:00 Scott Kostyshak:
 
  And for Linux is there something I need in PATH? I have installed
  libqt5svg5 but that did not help (note that I am using a compiled Qt
  5). Do I need to install libqt5svg5-dev and recompile Qt 5?
 
 
 Yes, you need the qt5svg headers (where ever they are packed by your
 distro).

Hmm... I think that by installing the headers you simply triggered the
installation of the svg plugin, which is a dependency.

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Scott Kostyshak
On Wed, Mar 18, 2015 at 12:50 PM, Kornel Benko kor...@lyx.org wrote:

 I suppose you have Qt5-Build-Dir/qtbase/bin in your PATH already?

No I did not. I added this and recompiled and now the icons seem to
show correctly.

 Other than this I don't know.

 Do I need to install libqt5svg5-dev and recompile Qt 5?

 Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons were 
 still OK.
 But check, if you have Qt5-Build-Dir/qtbase/plugins/imageformats/libqsvg.so.
 For your self compiled Qt5 you even don't need package libqt5svg5 installed.

I do not. I have only:

$ ls /usr/BUILD/BuildQt5-dev/qtbase/plugins/imageformats
libqdds.so  libqgif.so  libqicns.so  libqico.so  libqjp2.so
libqjpeg.so  libqmng.so  libqtga.so  libqtiff.so  libqwbmp.so
libqwebp.so

I think I should do a fresh Qt build and then libqsvg.so should be
there or I will inspect build logs.

Thanks,

Scott


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 01:09:09PM -0400, Scott Kostyshak wrote:
 On Wed, Mar 18, 2015 at 12:50 PM, Kornel Benko kor...@lyx.org wrote:
 
  I suppose you have Qt5-Build-Dir/qtbase/bin in your PATH already?
 
 No I did not. I added this and recompiled and now the icons seem to
 show correctly.
 
  Other than this I don't know.
 
  Do I need to install libqt5svg5-dev and recompile Qt 5?
 
  Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons 
  were still OK.
  But check, if you have 
  Qt5-Build-Dir/qtbase/plugins/imageformats/libqsvg.so.
  For your self compiled Qt5 you even don't need package libqt5svg5 installed.
 
 I do not. I have only:
 
 $ ls /usr/BUILD/BuildQt5-dev/qtbase/plugins/imageformats
 libqdds.so  libqgif.so  libqicns.so  libqico.so  libqjp2.so
 libqjpeg.so  libqmng.so  libqtga.so  libqtiff.so  libqwbmp.so
 libqwebp.so
 
 I think I should do a fresh Qt build and then libqsvg.so should be
 there or I will inspect build logs.

Note that the svg plugin is not included in the QtBase sources.
You have to compile the QtSvg module. This is actually very simple:

$ tar xvf qtsvg-opensource-src-5.4.1.tar.xz
$ cd qtsvg-opensource-src-5.4.1/
$ mkdir build
$ cd build
$ env PATH=qt5_install_dir/bin:$PATH qmake ../
$ make
$ make install

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Scott Kostyshak
On Wed, Mar 18, 2015 at 2:08 PM, Enrico Forestieri for...@lyx.org wrote:
 On Wed, Mar 18, 2015 at 01:09:09PM -0400, Scott Kostyshak wrote:
 On Wed, Mar 18, 2015 at 12:50 PM, Kornel Benko kor...@lyx.org wrote:

  I suppose you have Qt5-Build-Dir/qtbase/bin in your PATH already?

 No I did not. I added this and recompiled and now the icons seem to
 show correctly.

  Other than this I don't know.
 
  Do I need to install libqt5svg5-dev and recompile Qt 5?
 
  Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons 
  were still OK.
  But check, if you have 
  Qt5-Build-Dir/qtbase/plugins/imageformats/libqsvg.so.
  For your self compiled Qt5 you even don't need package libqt5svg5 
  installed.

 I do not. I have only:

 $ ls /usr/BUILD/BuildQt5-dev/qtbase/plugins/imageformats
 libqdds.so  libqgif.so  libqicns.so  libqico.so  libqjp2.so
 libqjpeg.so  libqmng.so  libqtga.so  libqtiff.so  libqwbmp.so
 libqwebp.so

 I think I should do a fresh Qt build and then libqsvg.so should be
 there or I will inspect build logs.

 Note that the svg plugin is not included in the QtBase sources.
 You have to compile the QtSvg module. This is actually very simple:

 $ tar xvf qtsvg-opensource-src-5.4.1.tar.xz
 $ cd qtsvg-opensource-src-5.4.1/
 $ mkdir build
 $ cd build
 $ env PATH=qt5_install_dir/bin:$PATH qmake ../
 $ make
 $ make install

Ah this is useful.

Thanks,

Scott


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 06:22:52PM +0100, Stephan Witt wrote:
 Am 18.03.2015 um 18:05 schrieb Jean-Marc Lasgouttes lasgout...@lyx.org:
 
  Le 18/03/2015 17:01, Enrico Forestieri a écrit :
  I use CMake. The icons are in the directory so it is not clear to me
  why they are not found. Naybe it is a problem with the slashes in
  the folder?
  
  No, you need gunzip in the PATH. You can download it from
  http://www.gzip.org/gzip124xN.zip
  
  Simply rename gzip.exe as gunzip.exe and put it in the PATH.
  
  Is this needed at build time or at run time?
 
 At runtime - unless the SVG files were installed uncompressed.

LyX uses gunzip for uncompressing a gzipped file. Most probably, that
could be also directly done in memory by using zlib, but I don't know
if that's a bigger problem in the native Windows world ;)

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Jean-Marc Lasgouttes

Le 18/03/15 19:14, Enrico Forestieri a écrit :

LyX uses gunzip for uncompressing a gzipped file. Most probably, that
could be also directly done in memory by using zlib, but I don't know
if that's a bigger problem in the native Windows world ;)


We have support/gzstream.h for that, and I would be surprised if Qt 
could not do it too.


JMarc



Re: new compiler warnings in master

2015-03-18 Thread Georg Baum
Jean-Marc Lasgouttes wrote:

 Georg, note that there was an error for LaTeX 2e (\LaTeX2e instead of
 \LaTeXe). I fixed it in LaTeX output, but I suspect that we should
 change the file format too for consistency sake.

Oops! Thanks for the fix.

Why do you think that the LyX file format needs to follow the LaTeX 
restrictions? IMHO it does not need to match (therefore I did not include 
the {} in the LyX file format, which is done for other special characters).


Georg



new icons in master are not found by the LyX executable

2015-03-18 Thread Uwe Stöhr
I just compiled master and started the resulting LyX.exe. As result I 
get tons of these warnings:


..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load icon 
C:/LyXGit/Master/lib/images/index-insert.svgz please verify resource system!


I use CMake. The icons are in the directory so it is not clear to me why 
they are not found. Naybe it is a problem with the slashes in the folder?

Enrico, could you please have a look?

thanks and regards
Uwe


new compiler warnings in master

2015-03-18 Thread Uwe Stöhr

Within the last 2 weeks a commit lead to these new compiler warnings:
(The same that I constantly report here. I am wondering why the appear 
so often with recent commits.)


  ..\..\..\src\insets\InsetSpecialChar.cpp(57): warning C4244: '=': 
convesion from 'double' to 'int', possible dataloss 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]


  ..\..\..\src\insets\InsetSpecialChar.cpp(63): warning C4244: '=': 
Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(69): warning C4244: '=': 
Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(76): warning C4244: '=': 
Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(149): warning C4244: '-=': 
Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(150): warning C4244: 
'Argument': Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(151): warning C4244: '-=': 
Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(161): warning C4244: '-=': 
Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(162): warning C4244: 
'Argument': Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(163): warning C4244: '-=': 
Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(174): warning C4244: '+=': 
Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(176): warning C4244: 
'Argument': Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(193): warning C4244: '-=': 
Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(196): warning C4244: 
'Argument': Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(197): warning C4244: '-=': 
Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]


regards Uwe


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Jürgen Spitzmüller
2015-03-18 8:20 GMT+01:00 Uwe Stöhr:

 I just compiled master and started the resulting LyX.exe. As result I get
 tons of these warnings:

 ..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load icon
 C:/LyXGit/Master/lib/images/index-insert.svgz please verify resource
 system!

 I use CMake. The icons are in the directory so it is not clear to me why
 they are not found. Naybe it is a problem with the slashes in the folder?
 Enrico, could you please have a look?


Which qt version?

Jürgen



 thanks and regards
 Uwe



Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Uwe Stöhr

Am 18.03.2015 um 11:39 schrieb Jürgen Spitzmüller:

2015-03-18 8:20 GMT+01:00 Uwe Stöhr:

I just compiled master and started the resulting LyX.exe. As result
I get tons of these warnings:

..\..\..\..\src\frontends\qt4\__GuiApplication.cpp (612): Cannot
load icon C:/LyXGit/Master/lib/images/__index-insert.svgz please
verify resource system!


Which qt version?


Qt 4.8.6

regards Uwe


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 09:42:58PM +0100, Jean-Marc Lasgouttes wrote:
 Le 18/03/15 19:14, Enrico Forestieri a écrit :
 LyX uses gunzip for uncompressing a gzipped file. Most probably, that
 could be also directly done in memory by using zlib, but I don't know
 if that's a bigger problem in the native Windows world ;)
 
 We have support/gzstream.h for that, and I would be surprised if Qt
 could not do it too.

You are very correct. I tried replacing gunzip -c with cat in
filetools.cpp and the result is simply that lyx now starts up
a bit faster than before...

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Richard Heck

On 03/18/2015 07:43 PM, Enrico Forestieri wrote:

On Wed, Mar 18, 2015 at 09:42:58PM +0100, Jean-Marc Lasgouttes wrote:

Le 18/03/15 19:14, Enrico Forestieri a écrit :

LyX uses gunzip for uncompressing a gzipped file. Most probably, that
could be also directly done in memory by using zlib, but I don't know
if that's a bigger problem in the native Windows world ;)

We have support/gzstream.h for that, and I would be surprised if Qt
could not do it too.

You are very correct. I tried replacing gunzip -c with cat in
filetools.cpp and the result is simply that lyx now starts up
a bit faster than before...


Is it worth our replacing the gunzip call, then? Since we'll now be 
relying upon it more?


Richard



LyX insert reference irregularity (LuaTex, biblatex, biber)

2015-03-18 Thread Sam Lewis
Hi,


I think this is a bug. Could someone please reproduce this before I fill a 
report. See attachments. 




Document class: KOMA-script article, biblatex bibliography, biber backend 


Inserting a reference entry that has *two authors* results in an intext 
citation *Author et al.* in the LyX interface. 

The pdf output however is produced as expected as *Author A and Author B*.


Cheers!

Test.lyx
Description: application/lyx
% This file was created with JabRef 2.10.
% Encoding: UTF-8


@Article{ReeGar03,
  Title= {Analysing competence: Gender and identity at work},
  Author   = {Bronwen Rees and Elizabeth Garnsey},
  Journal  = {Gender, Work \ Organization},
  Year = {2003},
  Number   = {5},
  Pages= {551--578},
  Volume   = {10}
}



Re: new compiler warnings in master

2015-03-18 Thread Jean-Marc Lasgouttes

Le 18/03/15 20:27, Georg Baum a écrit :

Oops! Thanks for the fix.

Why do you think that the LyX file format needs to follow the LaTeX
restrictions? IMHO it does not need to match (therefore I did not include
the {} in the LyX file format, which is done for other special characters).


Well, it really looks like it (why the backslashes otherwise?). I'd say 
that we shall either be completely different, or either identical.


JMarc



Re: new compiler warnings in master

2015-03-18 Thread Abdelrazak Younes

On 18/03/2015 11:39, Jean-Marc Lasgouttes wrote:

Le 18/03/2015 08:30, Uwe Stöhr a écrit :

Within the last 2 weeks a commit lead to these new compiler warnings:
(The same that I constantly report here. I am wondering why the appear
so often with recent commits.)


The warnings should be gone now. Please confirm.

THis uses integer arithmetic now and therefore Abdel's port to 
Raspberry should become snappier :)


Well, I hope that, by the time I come back to LyX development, Raspberry 
will not support already 128 floating point arithmetic :-)


Cheers,
Abdel.



Re: [LyX/master] Grr...

2015-03-18 Thread Abdelrazak Younes

On 16/03/2015 14:29, Juergen Spitzmueller wrote:

commit 066d6a9cfb3936c61b514d085df01dd6835c784a
Author: Juergen Spitzmueller sp...@lyx.org
Date:   Mon Mar 16 14:30:02 2015 +0100

 Grr...


By the way, we use at works clang-format for coding style formatting. I 
am confident that all LyX rules can be enforced with this tool. This is 
a dream tool, try it


Abdel.



Re: Double word bug - LyX is duplicating random words

2015-03-18 Thread James
I have started to believe the double word bug is deeper than just double
words.
It seems as though what ever is causing duplicating words can similarly
remove words (i.e. like it cuts a word out of the sentence).

e.g. The quick brown dog jumped... might become The quick dog jumped...

There was also a case of having stopped typing a sentence, and the last two
words were repeated. The words were sufficiently obscure that I'm sure I
wouldn't have actually typed the words twice.

The words were:
retrospective analysis
which became:
retrospective analysis retrospective analysis

The double words are still occurring. Fortunately the advanced find and
replace can be used to locate them. However, it obviously cant recover a
deleted word nor does it do well at finding a pair of duplicated words.

James


Re: Double word bug - LyX is duplicating random words

2015-03-18 Thread James
I have started to believe the double word bug is deeper than just double
words.
It seems as though what ever is causing duplicating words can similarly
remove words (i.e. like it cuts a word out of the sentence).

e.g. "The quick brown dog jumped..." might become "The quick dog jumped..."

There was also a case of having stopped typing a sentence, and the last two
words were repeated. The words were sufficiently obscure that I'm sure I
wouldn't have actually typed the words twice.

The words were:
"retrospective analysis"
which became:
"retrospective analysis retrospective analysis"

The double words are still occurring. Fortunately the advanced find and
replace can be used to locate them. However, it obviously cant recover a
deleted word nor does it do well at finding a pair of duplicated words.

James


new icons in master are not found by the LyX executable

2015-03-18 Thread Uwe Stöhr
I just compiled master and started the resulting LyX.exe. As result I 
get tons of these warnings:


..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load icon 
C:/LyXGit/Master/lib/images/index-insert.svgz please verify resource system!


I use CMake. The icons are in the directory so it is not clear to me why 
they are not found. Naybe it is a problem with the slashes in the folder?

Enrico, could you please have a look?

thanks and regards
Uwe


new compiler warnings in master

2015-03-18 Thread Uwe Stöhr

Within the last 2 weeks a commit lead to these new compiler warnings:
(The same that I constantly report here. I am wondering why the appear 
so often with recent commits.)


  ..\..\..\src\insets\InsetSpecialChar.cpp(57): warning C4244: '=': 
convesion from 'double' to 'int', possible dataloss 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]


  ..\..\..\src\insets\InsetSpecialChar.cpp(63): warning C4244: '=': 
Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(69): warning C4244: '=': 
Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(76): warning C4244: '=': 
Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(149): warning C4244: '-=': 
Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(150): warning C4244: 
'Argument': Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(151): warning C4244: '-=': 
Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(161): warning C4244: '-=': 
Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(162): warning C4244: 
'Argument': Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(163): warning C4244: '-=': 
Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(174): warning C4244: '+=': 
Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(176): warning C4244: 
'Argument': Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(193): warning C4244: '-=': 
Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(196): warning C4244: 
'Argument': Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
  ..\..\..\src\insets\InsetSpecialChar.cpp(197): warning C4244: '-=': 
Konvertierung von 'double' in 'int', möglicher Datenverlust 
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]


regards Uwe


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Jürgen Spitzmüller
2015-03-18 8:20 GMT+01:00 Uwe Stöhr:

> I just compiled master and started the resulting LyX.exe. As result I get
> tons of these warnings:
>
> ..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load icon
> C:/LyXGit/Master/lib/images/index-insert.svgz please verify resource
> system!
>
> I use CMake. The icons are in the directory so it is not clear to me why
> they are not found. Naybe it is a problem with the slashes in the folder?
> Enrico, could you please have a look?
>

Which qt version?

Jürgen


>
> thanks and regards
> Uwe
>


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Uwe Stöhr

Am 18.03.2015 um 11:39 schrieb Jürgen Spitzmüller:

2015-03-18 8:20 GMT+01:00 Uwe Stöhr:

I just compiled master and started the resulting LyX.exe. As result
I get tons of these warnings:

..\..\..\..\src\frontends\qt4\__GuiApplication.cpp (612): Cannot
load icon C:/LyXGit/Master/lib/images/__index-insert.svgz please
verify resource system!


Which qt version?


Qt 4.8.6

regards Uwe


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Jürgen Spitzmüller
2015-03-18 8:53 GMT+01:00 Uwe Stöhr:

> Qt 4.8.6
>

Does your qt build contain the qtsvg headers?

Jürgen



>
> regards Uwe
>


Re: Double word bug - LyX is duplicating random words

2015-03-18 Thread Jean-Marc Lasgouttes

Le 18/03/2015 07:21, James a écrit :

I have started to believe the double word bug is deeper than just double
words.
It seems as though what ever is causing duplicating words can similarly
remove words (i.e. like it cuts a word out of the sentence).


Hi James,

I am not sure I asked already (I know I thought about asking :), so here 
it goes:


Did you do a thorough check of your machine with some antimalware (like 
Malwarebytes Anti-Malware Free)?


It is really a shot in the dark, but your problem is so strange that we 
shall look for weird solutions.


Also, what was the outcome of your suspicions about the word-replace 
function? Do you still believe it is triggered in this case?


JMarc



Re: new compiler warnings in master

2015-03-18 Thread Jean-Marc Lasgouttes

Le 18/03/2015 08:30, Uwe Stöhr a écrit :

Within the last 2 weeks a commit lead to these new compiler warnings:
(The same that I constantly report here. I am wondering why the appear
so often with recent commits.)

It's my fault. I will fix this.

JMarc


   ..\..\..\src\insets\InsetSpecialChar.cpp(57): warning C4244: '=':
convesion from 'double' to 'int', possible dataloss
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]

   ..\..\..\src\insets\InsetSpecialChar.cpp(63): warning C4244: '=':
Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(69): warning C4244: '=':
Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(76): warning C4244: '=':
Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(149): warning C4244: '-=':
Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(150): warning C4244:
'Argument': Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(151): warning C4244: '-=':
Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(161): warning C4244: '-=':
Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(162): warning C4244:
'Argument': Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(163): warning C4244: '-=':
Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(174): warning C4244: '+=':
Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(176): warning C4244:
'Argument': Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(193): warning C4244: '-=':
Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(196): warning C4244:
'Argument': Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]
   ..\..\..\src\insets\InsetSpecialChar.cpp(197): warning C4244: '-=':
Konvertierung von 'double' in 'int', möglicher Datenverlust
[C:\LyXGit\Master\compile-result\src\insets\insets.vcxproj]

regards Uwe




Re: new compiler warnings in master

2015-03-18 Thread Jean-Marc Lasgouttes

Le 18/03/2015 08:30, Uwe Stöhr a écrit :

Within the last 2 weeks a commit lead to these new compiler warnings:
(The same that I constantly report here. I am wondering why the appear
so often with recent commits.)


The warnings should be gone now. Please confirm.

THis uses integer arithmetic now and therefore Abdel's port to Raspberry 
should become snappier :)


Georg, note that there was an error for LaTeX 2e (\LaTeX2e instead of 
\LaTeXe). I fixed it in LaTeX output, but I suspect that we should 
change the file format too for consistency sake.


JMarc



Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 11:20:49AM +0400, Uwe Stöhr wrote:
> I just compiled master and started the resulting LyX.exe. As result
> I get tons of these warnings:
> 
> ..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load
> icon C:/LyXGit/Master/lib/images/index-insert.svgz please verify
> resource system!
> 
> I use CMake. The icons are in the directory so it is not clear to me
> why they are not found. Naybe it is a problem with the slashes in
> the folder?

No, you need gunzip in the PATH. You can download it from
http://www.gzip.org/gzip124xN.zip

Simply rename gzip.exe as gunzip.exe and put it in the PATH.

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Scott Kostyshak
On Wed, Mar 18, 2015 at 12:01 PM, Enrico Forestieri  wrote:
> On Wed, Mar 18, 2015 at 11:20:49AM +0400, Uwe Stöhr wrote:
>> I just compiled master and started the resulting LyX.exe. As result
>> I get tons of these warnings:
>>
>> ..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load
>> icon C:/LyXGit/Master/lib/images/index-insert.svgz please verify
>> resource system!
>>
>> I use CMake. The icons are in the directory so it is not clear to me
>> why they are not found. Naybe it is a problem with the slashes in
>> the folder?
>
> No, you need gunzip in the PATH. You can download it from
> http://www.gzip.org/gzip124xN.zip
>
> Simply rename gzip.exe as gunzip.exe and put it in the PATH.

And for Linux is there something I need in PATH? I have installed
libqt5svg5 but that did not help (note that I am using a compiled Qt
5). Do I need to install libqt5svg5-dev and recompile Qt 5?

Scott


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Jürgen Spitzmüller
2015-03-18 17:32 GMT+01:00 Scott Kostyshak:

> And for Linux is there something I need in PATH? I have installed
> libqt5svg5 but that did not help (note that I am using a compiled Qt
> 5). Do I need to install libqt5svg5-dev and recompile Qt 5?
>

Yes, you need the qt5svg headers (where ever they are packed by your
distro).

Jürgen


>
> Scott
>


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Kornel Benko
Am Mittwoch, 18. März 2015 um 12:32:54, schrieb Scott Kostyshak 

> On Wed, Mar 18, 2015 at 12:01 PM, Enrico Forestieri  wrote:
> > On Wed, Mar 18, 2015 at 11:20:49AM +0400, Uwe Stöhr wrote:
> >> I just compiled master and started the resulting LyX.exe. As result
> >> I get tons of these warnings:
> >>
> >> ..\..\..\..\src\frontends\qt4\GuiApplication.cpp (612): Cannot load
> >> icon C:/LyXGit/Master/lib/images/index-insert.svgz please verify
> >> resource system!
> >>
> >> I use CMake. The icons are in the directory so it is not clear to me
> >> why they are not found. Naybe it is a problem with the slashes in
> >> the folder?
> >
> > No, you need gunzip in the PATH. You can download it from
> > http://www.gzip.org/gzip124xN.zip
> >
> > Simply rename gzip.exe as gunzip.exe and put it in the PATH.
> 
> And for Linux is there something I need in PATH? I have installed
> libqt5svg5 but that did not help (note that I am using a compiled Qt
> 5).

I suppose you have /qtbase/bin in your PATH already?
Other than this I don't know.

> Do I need to install libqt5svg5-dev and recompile Qt 5?

Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons were 
still OK.
But check, if you have /qtbase/plugins/imageformats/libqsvg.so.
For your self compiled Qt5 you even don't need package libqt5svg5 installed.

> Scott

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Jean-Marc Lasgouttes

Le 18/03/2015 17:01, Enrico Forestieri a écrit :

I use CMake. The icons are in the directory so it is not clear to me
why they are not found. Naybe it is a problem with the slashes in
the folder?


No, you need gunzip in the PATH. You can download it from
http://www.gzip.org/gzip124xN.zip

Simply rename gzip.exe as gunzip.exe and put it in the PATH.


Is this needed at build time or at run time?

JMarc



Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Scott Kostyshak
On Wed, Mar 18, 2015 at 12:50 PM, Kornel Benko  wrote:

> I suppose you have /qtbase/bin in your PATH already?

No I did not. I added this and recompiled and now the icons seem to
show correctly.

> Other than this I don't know.
>
>> Do I need to install libqt5svg5-dev and recompile Qt 5?
>
> Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons were 
> still OK.
> But check, if you have /qtbase/plugins/imageformats/libqsvg.so.
> For your self compiled Qt5 you even don't need package libqt5svg5 installed.

I do not. I have only:

$ ls /usr/BUILD/BuildQt5-dev/qtbase/plugins/imageformats
libqdds.so  libqgif.so  libqicns.so  libqico.so  libqjp2.so
libqjpeg.so  libqmng.so  libqtga.so  libqtiff.so  libqwbmp.so
libqwebp.so

I think I should do a fresh Qt build and then libqsvg.so should be
there or I will inspect build logs.

Thanks,

Scott


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Stephan Witt
Am 18.03.2015 um 18:05 schrieb Jean-Marc Lasgouttes :

> Le 18/03/2015 17:01, Enrico Forestieri a écrit :
>>> I use CMake. The icons are in the directory so it is not clear to me
>>> why they are not found. Naybe it is a problem with the slashes in
>>> the folder?
>> 
>> No, you need gunzip in the PATH. You can download it from
>> http://www.gzip.org/gzip124xN.zip
>> 
>> Simply rename gzip.exe as gunzip.exe and put it in the PATH.
> 
> Is this needed at build time or at run time?

At runtime - unless the SVG files were installed uncompressed.

Stephan

Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Kornel Benko
Am Mittwoch, 18. März 2015 um 13:09:09, schrieb Scott Kostyshak 

> On Wed, Mar 18, 2015 at 12:50 PM, Kornel Benko  wrote:
> 
> > I suppose you have /qtbase/bin in your PATH already?
> 
> No I did not. I added this and recompiled and now the icons seem to
> show correctly.
> 
> > Other than this I don't know.
> >
> >> Do I need to install libqt5svg5-dev and recompile Qt 5?
> >
> > Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons 
> > were still OK.
> > But check, if you have 
> > /qtbase/plugins/imageformats/libqsvg.so.
> > For your self compiled Qt5 you even don't need package libqt5svg5 installed.
> 
> I do not. I have only:
> 
> $ ls /usr/BUILD/BuildQt5-dev/qtbase/plugins/imageformats
> libqdds.so  libqgif.so  libqicns.so  libqico.so  libqjp2.so
> libqjpeg.so  libqmng.so  libqtga.so  libqtiff.so  libqwbmp.so
> libqwebp.so
> 
> I think I should do a fresh Qt build and then libqsvg.so should be
> there or I will inspect build logs.
> 
> Thanks,
> 
> Scott

I just downloaded a pre-compiled version 5.4.1 directly from 
http://www.qt.io/download-open-source/
NO Problems with this version. Far better than my own compile of 5.5.

The bin and lib path are changed slightly, e.g.
downloaded  
self compiled
bin: /usr/BUILD/BuildQt5/5.4/gcc_64/bin /usr/BUILD/BuildQt5/qtbase/bin
lib: /usr/BUILD/BuildQt5/5.4/gcc_64/lib 
/usr/BUILD/BuildQt5.not/qtbase/lib

So I had to adapt PATH and /etc/ld.so.conf.d/qt5.conf

Now recompiled lyx (removing first the CMakeCache.txt of course)
Works well.

Kornel


signature.asc
Description: This is a digitally signed message part.


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Scott Kostyshak
On Wed, Mar 18, 2015 at 1:40 PM, Kornel Benko  wrote:
> Am Mittwoch, 18. März 2015 um 13:09:09, schrieb Scott Kostyshak 
> 
>> On Wed, Mar 18, 2015 at 12:50 PM, Kornel Benko  wrote:
>>
>> > I suppose you have /qtbase/bin in your PATH already?
>>
>> No I did not. I added this and recompiled and now the icons seem to
>> show correctly.
>>
>> > Other than this I don't know.
>> >
>> >> Do I need to install libqt5svg5-dev and recompile Qt 5?
>> >
>> > Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons 
>> > were still OK.
>> > But check, if you have 
>> > /qtbase/plugins/imageformats/libqsvg.so.
>> > For your self compiled Qt5 you even don't need package libqt5svg5 
>> > installed.
>>
>> I do not. I have only:
>>
>> $ ls /usr/BUILD/BuildQt5-dev/qtbase/plugins/imageformats
>> libqdds.so  libqgif.so  libqicns.so  libqico.so  libqjp2.so
>> libqjpeg.so  libqmng.so  libqtga.so  libqtiff.so  libqwbmp.so
>> libqwebp.so
>>
>> I think I should do a fresh Qt build and then libqsvg.so should be
>> there or I will inspect build logs.
>>
>> Thanks,
>>
>> Scott
>
> I just downloaded a pre-compiled version 5.4.1 directly from 
> http://www.qt.io/download-open-source/
> NO Problems with this version. Far better than my own compile of 5.5.
>
> The bin and lib path are changed slightly, e.g.
> downloaded
>   self compiled
> bin: /usr/BUILD/BuildQt5/5.4/gcc_64/bin /usr/BUILD/BuildQt5/qtbase/bin
> lib: /usr/BUILD/BuildQt5/5.4/gcc_64/lib 
> /usr/BUILD/BuildQt5.not/qtbase/lib
>
> So I had to adapt PATH and /etc/ld.so.conf.d/qt5.conf
>
> Now recompiled lyx (removing first the CMakeCache.txt of course)
> Works well.

Ah good idea. I will look into this.

Scott


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 01:09:09PM -0400, Scott Kostyshak wrote:
> On Wed, Mar 18, 2015 at 12:50 PM, Kornel Benko  wrote:
> 
> > I suppose you have /qtbase/bin in your PATH already?
> 
> No I did not. I added this and recompiled and now the icons seem to
> show correctly.
> 
> > Other than this I don't know.
> >
> >> Do I need to install libqt5svg5-dev and recompile Qt 5?
> >
> > Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons 
> > were still OK.
> > But check, if you have 
> > /qtbase/plugins/imageformats/libqsvg.so.
> > For your self compiled Qt5 you even don't need package libqt5svg5 installed.
> 
> I do not. I have only:
> 
> $ ls /usr/BUILD/BuildQt5-dev/qtbase/plugins/imageformats
> libqdds.so  libqgif.so  libqicns.so  libqico.so  libqjp2.so
> libqjpeg.so  libqmng.so  libqtga.so  libqtiff.so  libqwbmp.so
> libqwebp.so
> 
> I think I should do a fresh Qt build and then libqsvg.so should be
> there or I will inspect build logs.

Note that the svg plugin is not included in the QtBase sources.
You have to compile the QtSvg module. This is actually very simple:

$ tar xvf qtsvg-opensource-src-5.4.1.tar.xz
$ cd qtsvg-opensource-src-5.4.1/
$ mkdir build
$ cd build
$ env PATH=/bin:$PATH qmake ../
$ make
$ make install

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Scott Kostyshak
On Wed, Mar 18, 2015 at 2:08 PM, Enrico Forestieri  wrote:
> On Wed, Mar 18, 2015 at 01:09:09PM -0400, Scott Kostyshak wrote:
>> On Wed, Mar 18, 2015 at 12:50 PM, Kornel Benko  wrote:
>>
>> > I suppose you have /qtbase/bin in your PATH already?
>>
>> No I did not. I added this and recompiled and now the icons seem to
>> show correctly.
>>
>> > Other than this I don't know.
>> >
>> >> Do I need to install libqt5svg5-dev and recompile Qt 5?
>> >
>> > Definitely no. I used compiled Qt5 without libqt5svg5-dev, and the icons 
>> > were still OK.
>> > But check, if you have 
>> > /qtbase/plugins/imageformats/libqsvg.so.
>> > For your self compiled Qt5 you even don't need package libqt5svg5 
>> > installed.
>>
>> I do not. I have only:
>>
>> $ ls /usr/BUILD/BuildQt5-dev/qtbase/plugins/imageformats
>> libqdds.so  libqgif.so  libqicns.so  libqico.so  libqjp2.so
>> libqjpeg.so  libqmng.so  libqtga.so  libqtiff.so  libqwbmp.so
>> libqwebp.so
>>
>> I think I should do a fresh Qt build and then libqsvg.so should be
>> there or I will inspect build logs.
>
> Note that the svg plugin is not included in the QtBase sources.
> You have to compile the QtSvg module. This is actually very simple:
>
> $ tar xvf qtsvg-opensource-src-5.4.1.tar.xz
> $ cd qtsvg-opensource-src-5.4.1/
> $ mkdir build
> $ cd build
> $ env PATH=/bin:$PATH qmake ../
> $ make
> $ make install

Ah this is useful.

Thanks,

Scott


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 06:22:52PM +0100, Stephan Witt wrote:
> Am 18.03.2015 um 18:05 schrieb Jean-Marc Lasgouttes :
> 
> > Le 18/03/2015 17:01, Enrico Forestieri a écrit :
> >>> I use CMake. The icons are in the directory so it is not clear to me
> >>> why they are not found. Naybe it is a problem with the slashes in
> >>> the folder?
> >> 
> >> No, you need gunzip in the PATH. You can download it from
> >> http://www.gzip.org/gzip124xN.zip
> >> 
> >> Simply rename gzip.exe as gunzip.exe and put it in the PATH.
> > 
> > Is this needed at build time or at run time?
> 
> At runtime - unless the SVG files were installed uncompressed.

LyX uses gunzip for uncompressing a gzipped file. Most probably, that
could be also directly done in memory by using zlib, but I don't know
if that's a bigger problem in the native Windows world ;)

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 05:40:54PM +0100, Jürgen Spitzmüller wrote:
> 2015-03-18 17:32 GMT+01:00 Scott Kostyshak:
> 
> > And for Linux is there something I need in PATH? I have installed
> > libqt5svg5 but that did not help (note that I am using a compiled Qt
> > 5). Do I need to install libqt5svg5-dev and recompile Qt 5?
> >
> 
> Yes, you need the qt5svg headers (where ever they are packed by your
> distro).

Hmm... I think that by installing the headers you simply triggered the
installation of the svg plugin, which is a dependency.

-- 
Enrico


Re: new compiler warnings in master

2015-03-18 Thread Georg Baum
Jean-Marc Lasgouttes wrote:

> Georg, note that there was an error for LaTeX 2e (\LaTeX2e instead of
> \LaTeXe). I fixed it in LaTeX output, but I suspect that we should
> change the file format too for consistency sake.

Oops! Thanks for the fix.

Why do you think that the LyX file format needs to follow the LaTeX 
restrictions? IMHO it does not need to match (therefore I did not include 
the {} in the LyX file format, which is done for other special characters).


Georg



Re: new compiler warnings in master

2015-03-18 Thread Jean-Marc Lasgouttes

Le 18/03/15 20:27, Georg Baum a écrit :

Oops! Thanks for the fix.

Why do you think that the LyX file format needs to follow the LaTeX
restrictions? IMHO it does not need to match (therefore I did not include
the {} in the LyX file format, which is done for other special characters).


Well, it really looks like it (why the backslashes otherwise?). I'd say 
that we shall either be completely different, or either identical.


JMarc



Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Jean-Marc Lasgouttes

Le 18/03/15 19:14, Enrico Forestieri a écrit :

LyX uses gunzip for uncompressing a gzipped file. Most probably, that
could be also directly done in memory by using zlib, but I don't know
if that's a bigger problem in the native Windows world ;)


We have support/gzstream.h for that, and I would be surprised if Qt 
could not do it too.


JMarc



Re: new compiler warnings in master

2015-03-18 Thread Abdelrazak Younes

On 18/03/2015 11:39, Jean-Marc Lasgouttes wrote:

Le 18/03/2015 08:30, Uwe Stöhr a écrit :

Within the last 2 weeks a commit lead to these new compiler warnings:
(The same that I constantly report here. I am wondering why the appear
so often with recent commits.)


The warnings should be gone now. Please confirm.

THis uses integer arithmetic now and therefore Abdel's port to 
Raspberry should become snappier :)


Well, I hope that, by the time I come back to LyX development, Raspberry 
will not support already 128 floating point arithmetic :-)


Cheers,
Abdel.



Re: [LyX/master] Grr...

2015-03-18 Thread Abdelrazak Younes

On 16/03/2015 14:29, Juergen Spitzmueller wrote:

commit 066d6a9cfb3936c61b514d085df01dd6835c784a
Author: Juergen Spitzmueller 
Date:   Mon Mar 16 14:30:02 2015 +0100

 Grr...


By the way, we use at works clang-format for coding style formatting. I 
am confident that all LyX rules can be enforced with this tool. This is 
a dream tool, try it


Abdel.



Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Enrico Forestieri
On Wed, Mar 18, 2015 at 09:42:58PM +0100, Jean-Marc Lasgouttes wrote:
> Le 18/03/15 19:14, Enrico Forestieri a écrit :
> >LyX uses gunzip for uncompressing a gzipped file. Most probably, that
> >could be also directly done in memory by using zlib, but I don't know
> >if that's a bigger problem in the native Windows world ;)
> 
> We have support/gzstream.h for that, and I would be surprised if Qt
> could not do it too.

You are very correct. I tried replacing "gunzip -c" with "cat" in
filetools.cpp and the result is simply that lyx now starts up
a bit faster than before...

-- 
Enrico


Re: new icons in master are not found by the LyX executable

2015-03-18 Thread Richard Heck

On 03/18/2015 07:43 PM, Enrico Forestieri wrote:

On Wed, Mar 18, 2015 at 09:42:58PM +0100, Jean-Marc Lasgouttes wrote:

Le 18/03/15 19:14, Enrico Forestieri a écrit :

LyX uses gunzip for uncompressing a gzipped file. Most probably, that
could be also directly done in memory by using zlib, but I don't know
if that's a bigger problem in the native Windows world ;)

We have support/gzstream.h for that, and I would be surprised if Qt
could not do it too.

You are very correct. I tried replacing "gunzip -c" with "cat" in
filetools.cpp and the result is simply that lyx now starts up
a bit faster than before...


Is it worth our replacing the gunzip call, then? Since we'll now be 
relying upon it more?


Richard



LyX insert reference irregularity (LuaTex, biblatex, biber)

2015-03-18 Thread Sam Lewis
Hi,


I think this is a bug. Could someone please reproduce this before I fill a 
report. See attachments. 




Document class: KOMA-script article, biblatex bibliography, biber backend 


Inserting a reference entry that has *two authors* results in an intext 
citation *Author et al.* in the LyX interface. 

The pdf output however is produced as expected as *Author A and Author B*.


Cheers!

Test.lyx
Description: application/lyx
% This file was created with JabRef 2.10.
% Encoding: UTF-8


@Article{ReeGar03,
  Title= {Analysing competence: Gender and identity at work},
  Author   = {Bronwen Rees and Elizabeth Garnsey},
  Journal  = {Gender, Work \& Organization},
  Year = {2003},
  Number   = {5},
  Pages= {551--578},
  Volume   = {10}
}