Re: Approaching LyX 1.6.3 [status update #2]

2009-05-28 Thread Pavel Sanda
Georg Baum wrote:
> I don't know what happens if you
> link against a true single threaded boost, you might be lucky, or get
> spurious problems at runtime).

btw are we supposed to link against the multithreaded version? i just checked
that i have 1.6 linked against single threaded boost here. what kind of
problems should i observe?

pavel

> I learned that Sven Hoexter has already a workaround, so I believe it can
> wait for 1.6.4.
> 
> 
> Georg


Re: Translation breaks ALT+P*2 (section*) help needed

2009-05-28 Thread Pavel Sanda
Helge Hafting wrote:
> Or it might be a translation mistake that fails to preserve 
> some special character. 

maybe this?
README.localization:
Note also that there are already used global shortcuts (such as p k x c m s a)
and you should avoid to use these characters for first-level menu shortcuts.

pavel


Re: Bug in 1.6.3svn: The main window moves when I apply preferences

2009-05-28 Thread Pavel Sanda
Helge Hafting wrote:
> A small problem, but it looks like LyX is doing some unnecessary work here.

http://www.lyx.org/trac/ticket/5233
pavel


Re: r29874 - in lyx-devel/trunk: lib/doc lib/layouts lib/scripts src src/frontends/qt4

2009-05-28 Thread Pavel Sanda
lasgout...@lyx.org wrote:
> Author: lasgouttes
> Date: Thu May 28 10:59:25 2009
> New Revision: 29874
> URL: http://www.lyx.org/trac/changeset/29874
> 
> Log:
> Allow literate documents other than noweb to work out of the box. Currently
> only sweave is supported (for building documentation, not programs).
> 
> Layout files allow a new OutputFormat tag 
> 
> Modules can be conditionned on a feature of the type from->to, indicating that
> it should be possible to convert from format 'from' to format 'to'.
> 
> Layout format incremented to 15.
> 

again as with some other Juergen's patch some weeks ago most of the diff 
contains senseless changes in the output. can you pinpoint why the endlines are
so weirdly treated, i was not able to reproduce it here.
pavel


> Modified: lyx-devel/trunk/lib/doc/Customization.lyx
> ==
> --- lyx-devel/trunk/lib/doc/Customization.lyx Thu May 28 10:57:49 2009
> (r29873)
> +++ lyx-devel/trunk/lib/doc/Customization.lyx Thu May 28 10:59:25 2009
> (r29874)
> @@ -150,7 +151,11 @@
>  \end_inset
>  
>   in the subject header, and please cc the current maintainer of this file,
> - Richard Heck .
> + Richard Heck <
> +rgheck
> +@
> +comcast
> +.net>.
>  \end_layout
>  
>  \end_inset
> @@ -199,7 +204,9 @@
>  This manual covers the customization features present in LyX.
>   In it, we discuss issues like keyboard shortcuts, screen previewing options,
>   printer options, sending commands to LyX via the LyX Server, 
> internationalizati
> -on, installing new LaTeX classes and LyX layouts, etc.
> +on, installing new 
> +LaTeX
> + classes and LyX layouts, etc.
>   We can't possibly hope to touch on everything you can change???our 
> developers
>   add new features faster than we can document them???but we will explain the
>   most common customizations and hopefully point you in the right direction
> @@ -212,8 +219,12 @@
>  
>  \begin_layout Standard
>  Information from previous versions of this document that now seems to be
> - outdated is contained in the OutDated branch of this document.
> - By default, this information will not appear in the LaTeX output.
> + outdated is contained in the 
> +OutDated
> + branch of this document.
> + By default, this information will not appear in the 
> +LaTeX
> + output.
>  \end_layout
>  
>  \end_inset
> @@ -252,6 +263,7 @@
>  status collapsed
>  
>  \begin_layout Plain Layout
> +
>  LyXDir
>  \end_layout
>  
> @@ -262,6 +274,7 @@
>  status collapsed
>  
>  \begin_layout Plain Layout
> +
>  UserDir
>  \end_layout
>  
> @@ -277,6 +290,7 @@
>  status collapsed
>  
>  \begin_layout Plain Layout
> +
>  LyXDir
>  \end_layout
>  
> @@ -290,6 +304,7 @@
>  status collapsed
>  
>  \begin_layout Plain Layout
> +
>  LyXDir
>  \end_layout
>  
> @@ -317,6 +332,7 @@
>  status collapsed
>  
>  \begin_layout Plain Layout
> +
>  LyXDir
>  \end_layout
>  
> @@ -337,6 +353,7 @@
>  status collapsed
>  
>  \begin_layout Plain Layout
> +
>  UserDir
>  \end_layout
>  
> @@ -368,7 +385,8 @@
>  status collapsed
>  
>  \begin_layout Plain Layout
> -packages.lst
> +packages.
> +lst
>  \end_layout
>  
>  \end_inset
> @@ -381,7 +399,9 @@
>  
>  \begin_layout Plain Layout
>  Help\SpecialChar \menuseparator
> +
>  LaTeX
> +
>  \begin_inset space ~
>  \end_inset
>  
> @@ -399,7 +419,10 @@
>  status collapsed
>  
>  \begin_layout Plain Layout
> -textclass.lst
> +
> +textclass
> +.
> +lst
>  \end_layout
>  
>  \end_inset
> @@ -414,8 +437,9 @@
>  
>  \end_inset
>  
> - directories, along with the associated LaTeX document class and their 
> descripti
> -on.
> + directories, along with the associated 
> +LaTeX
> + document class and their description.
>  \end_layout
>  
>  \begin_layout Labeling
> @@ -424,7 +448,10 @@
>  status collapsed
>  
>  \begin_layout Plain Layout
> -lyxmodules.lst
> +
> +lyxmodules
> +.
> +lst
>  \end_layout
>  
>  \end_inset
> @@ -448,12 +475,15 @@
>  status collapsed
>  
>  \begin_layout Plain Layout
> -*files.lst
> +*files.
> +lst
>  \end_layout
>  
>  \end_inset
>  
> - lists of various sorts of LaTeX-related files found on your system
> + lists of various sorts of 
> +LaTeX
> +-related files found on your system
>  \end_layout
>  
>  \begin_layout Labeling
> @@ -462,7 +492,9 @@
>  status collapsed
>  
>  \begin_layout Plain Layout
> -doc/LaTeXConfig.lyx
> +doc/
> +LaTeXConfig
> +.lyx
>  \end_layout
>  
>  \end_inset
> @@ -472,13 +504,17 @@
>  status collapsed
>  
>  \begin_layout Plain Layout
> -LaTeXConfig.lyx.in
> +
> +LaTeXConfig
> +.lyx.in
>  \end_layout
>  
>  \end_inset
>  
>  .
> - It contains information on your LaTeX configuration.
> + It contains information on your 
> +LaTeX
> + configuration.
>  \end_layout
>  
>  \begin_layout Subsection
> @@ -491,6 +527,7 @@
>  status collapsed
>  
>  \begin_layout Plain Layout
> +
>  LyXDir
>  \end_layout
>  
> @@ -501,6 +538,7 @@
>  status collapsed
>  
>  \begin_layout Plain Layout
> +
>  UserDir
>  \end_layout
>  
>

Re: Hartmut has created updated screenshots for the LyX Graphical Tour

2009-05-28 Thread Pavel Sanda
Christian Ridderström wrote:
> the graphical tour, so for now I've place the new images in the 
> subdirectory
>images/LGT/En
>
> If anyone (perhaps the original authors)

original authors are not here anymore i guess

>would like to update the text 
> accordingly, that'd be great. Otherwise we'll still have the old text and 
> the old images, and translators are free to use the old images, the new 
> images or send me localized versions of screenshots.

note that images there are _not_ localised. i would encourage Hartmut
to update the english version ot the text.

pavel


1.6.3svn bug: Spellchecking -> blank window, unless there are mis-spellings

2009-05-28 Thread Helge Hafting
Pressing F7 or using tools->spellchecker brings up a blank spellcheck 
window. If the document is correctly spelt, then the "x words checked" 
box comes up, and the dialog remains blank. blank, or even not-filled-in 
, i.e. the window manager draws a frame and inside it some old screen 
contents still shows.


This works better if there are speling errors, the dialog then fills in 
with the usual suggestions.


Helge Hafting


Re: Too many alternatives and options...

2009-05-28 Thread Jürgen Spitzmüller
Enrico Forestieri wrote:

> The problem was that LyXRC::read() is expected to replace values,
> while vector::push_back() simply adds them. I solved the bug by using
> a set container, instead. This also allowed to simplify the code
> in LyXRC::write().

I see. Thanks for sorting out my mess.

Jürgen




Re: Too many alternatives and options...

2009-05-28 Thread Enrico Forestieri
On Thu, May 28, 2009 at 11:28:51AM +0200, Jürgen Spitzmüller wrote:
> Enrico Forestieri wrote:
> 
> > If in the preferences file you manually insert the line
> > \bibtex_alternatives "mybibtex"
> > and then save the preferences from within LyX, this line is duplicated.
> > On next save, it is quadrupled, and so on. It seems that the
> > bibtex_alternatives vector gets doubled somewhere in the code, but I
> > don't know where this happens.
> 
> I'm hopelessly snowed with work. I might have a look eventually, if you 
> don't beat me to it.

The problem was that LyXRC::read() is expected to replace values,
while vector::push_back() simply adds them. I solved the bug by using
a set container, instead. This also allowed to simplify the code
in LyXRC::write().

-- 
Enrico


Re: Documentation of tex2lyx

2009-05-28 Thread Enrico Forestieri
On Thu, May 28, 2009 at 12:51:00PM +0200, Jean-Marc Lasgouttes wrote:
> Enrico Forestieri  writes:
> > And surely introduce many others. If the only problem is shipping an
> > html version of the man pages the most unintrusive and fool proof
> > way is using man2html. 
> 
> The question is precisely to know whether we want to ship an html page.
> Our documentation is in LyX format, after all.

I think that this is a problem only for Windows, where man is not
available. So, the Windows packagers simply could provide a html
version of the man pages. I see no point in distributing them in
the source package.

-- 
Enrico


Re: Bug in 1.6.3svn: The main window moves when I apply preferences

2009-05-28 Thread BH
On Thu, May 28, 2009 at 7:34 AM, Helge Hafting  wrote:
> I noticed a little oddity today. When I apply preferences, the main window
> jumps a little up and to the left.
>
> This doesn't always happen, so may be hard to reproduce.
> Clearly, the window must not be maximized, and it seems like LyX should be
> started with "restore window layout and geometries" set.
>
> A small problem, but it looks like LyX is doing some unnecessary work here.

On Mac, saving preferences results in *all* open document windows
cycling through:

View Outline > View Source > (un)View Outline > (un)View Source

This also happens when returning from full screen view to normal view,
but here (a) it happens only to the frontmost window and (b) it seems
to have a point in the case of View Outline since (on Mac) it's
switching from having the outline appear as a docked widget (in full
screen view) to having it appear as a drawer (in normal view).
However, I don't see why View Source is toggled on and off in this
situation.

Bennett


Bug in 1.6.3svn: The main window moves when I apply preferences

2009-05-28 Thread Helge Hafting
I noticed a little oddity today. When I apply preferences, the main 
window jumps a little up and to the left.


This doesn't always happen, so may be hard to reproduce.
Clearly, the window must not be maximized, and it seems like LyX should 
be started with "restore window layout and geometries" set.


A small problem, but it looks like LyX is doing some unnecessary work here.

Helge Hafting


Re: Documentation of tex2lyx

2009-05-28 Thread Jean-Marc Lasgouttes
Enrico Forestieri  writes:
> And surely introduce many others. If the only problem is shipping an
> html version of the man pages the most unintrusive and fool proof
> way is using man2html. 

The question is precisely to know whether we want to ship an html page.
Our documentation is in LyX format, after all.

JMarc


Re: Documentation of tex2lyx

2009-05-28 Thread Enrico Forestieri
On Thu, May 28, 2009 at 11:33:11AM +0200, Abdelrazak Younes wrote:
> A reStructuredText backend would solve many problems.

And surely introduce many others. If the only problem is shipping an
html version of the man pages the most unintrusive and fool proof
way is using man2html. With
man2html /path/to/manpage.1 > manpage.html
you are done. man2html is already present in any linux system and
can be easily compiled for any other platform. It is included in the
man source package and can be compiled and installed as easily as

tar zxvf man-1.6f.tar.gz
cd man-1.6f
./configure -default
make manhtml
cd man2html
install -m 755 man2html /usr/local/bin
install -m 644 man2html.1 /usr/local/man/man1/man2html.1

-- 
Enrico


Translation questions about colors settings for math macros

2009-05-28 Thread Helge Hafting
The color settings have several settings for math macros, that I don't 
understand.


I have no idea what these two are, so I cannot translate:
math macro blended out
math macro hovered frame


These two I can translate, but it'd nice to know what "old" and "new" 
parameters means in this context:

math macro new parameter
math macro old parameter

I tried math macros briefly. They have parameters, but I didn't notice 
anything about "new" or "old" ones.


Helge Hafting


Re: Documentation of tex2lyx

2009-05-28 Thread Abdelrazak Younes

Jürgen Spitzmüller wrote:

Jean-Marc Lasgouttes wrote:

  

A lyx version would be much better...



Maybe. However, we still should be able to produce a man page and actually 
ship man pages. I don't know if there is any good troff2latex converter, 
though.
  


A reStructuredText backend would solve many problems. I believe it 
should be very easy to adapt the plaintext text backend to output 
reStructuredText optionally.


That would be an excellent startup project for a wanabee LyX developper :-)

Abdel.



Re: Too many alternatives and options...

2009-05-28 Thread Jürgen Spitzmüller
Enrico Forestieri wrote:

> If in the preferences file you manually insert the line
> \bibtex_alternatives "mybibtex"
> and then save the preferences from within LyX, this line is duplicated.
> On next save, it is quadrupled, and so on. It seems that the
> bibtex_alternatives vector gets doubled somewhere in the code, but I
> don't know where this happens.

I'm hopelessly snowed with work. I might have a look eventually, if you 
don't beat me to it.

Jürgen




Re: Documentation of tex2lyx

2009-05-28 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote:

> A lyx version would be much better...

Maybe. However, we still should be able to produce a man page and actually 
ship man pages. I don't know if there is any good troff2latex converter, 
though.

Jürgen




Re: Documentation of tex2lyx

2009-05-28 Thread Enrico Forestieri
On Thu, May 28, 2009 at 11:02:26AM +0200, Jean-Marc Lasgouttes wrote:
> Jürgen Spitzmüller  writes:
> 
> > Enrico Forestieri wrote:
> >
> >> Hmm... I can swear I attached it. Trying again but compressed this time
> >> (maybe there's a filter that strips html attachments).
> >
> > I cannot open the file. But I agree a html version should be added.
> 
> A lyx version would be much better...

Alongside of the man version, I hope.

> It might be that using
> reStructuredText would help, but somebody would have to rewrite the man
> pages (but the man pages would become much more readable).

Why not the texinfo format?

-- 
Enrico


Re: Documentation of tex2lyx

2009-05-28 Thread Enrico Forestieri
On Thu, May 28, 2009 at 10:51:37AM +0200, Jürgen Spitzmüller wrote:
> Enrico Forestieri wrote:
> 
> > Hmm... I can swear I attached it. Trying again but compressed this time
> > (maybe there's a filter that strips html attachments).
> 
> I cannot open the file.

It must be uncompressed by "gunzip tex2lyx.html.gz".

-- 
Enrico


RE: Documentation of tex2lyx

2009-05-28 Thread Edwin Leuven
jmarc wrote:
> somebody would have to 
> rewrite the man pages (but the man pages would become much 
> more readable).

also note that bugzilla.lyx.org is mentionned a couple of times...

Re: Too many alternatives and options...

2009-05-28 Thread Enrico Forestieri
On Thu, May 28, 2009 at 10:52:48AM +0200, Jürgen Spitzmüller wrote:
> Enrico Forestieri wrote:
> 
> > This is also fixed, now.
> 
> Thanks.

There is still a problem, yet.

If in the preferences file you manually insert the line
\bibtex_alternatives "mybibtex"
and then save the preferences from within LyX, this line is duplicated.
On next save, it is quadrupled, and so on. It seems that the
bibtex_alternatives vector gets doubled somewhere in the code, but I
don't know where this happens.

-- 
Enrico


Re: [PATCH] outputformat tag for literate programming

2009-05-28 Thread Jean-Marc Lasgouttes
Jean-Marc Lasgouttes  writes:

> This patch allows the sweave module to work our of the box (when R is
> installed, of course). 
>
> The only reason why I did not commit it yet is that I do not know
> whether I have to increase the layout format, considering that I have
> nothing to update here.

The patch is committed now.

JMarc


Re: [PATCH] outputformat tag for literate programming

2009-05-28 Thread Jean-Marc Lasgouttes
rgheck  writes:

> Jean-Marc Lasgouttes wrote:
 The only reason why I did not commit it yet is that I do not know
 whether I have to increase the layout format, considering that I have
 nothing to update here.
>>>
>>> If you are unsure, just increase the format, just for the case.
>>
>> But then I have to update layout2layout, and I do not know how.
>>
> The attached will get you started.

Yes indeed. Thanks.

JMarc


Re: Documentation of tex2lyx

2009-05-28 Thread Jean-Marc Lasgouttes
Jürgen Spitzmüller  writes:

> Enrico Forestieri wrote:
>
>> Hmm... I can swear I attached it. Trying again but compressed this time
>> (maybe there's a filter that strips html attachments).
>
> I cannot open the file. But I agree a html version should be added.

A lyx version would be much better... It might be that using
reStructuredText would help, but somebody would have to rewrite the man
pages (but the man pages would become much more readable).

JMarc


Translation breaks ALT+P*2 (section*) help needed

2009-05-28 Thread Helge Hafting

When using LyX with LANG=C, I can set the "section*" type with
ALT+P * 2
and set "section" using ALT+P 2

When I use LyX with LANG=nb_NO.UTF-8, the latter still works but the 
former breaks. When I type the asterisk, I get an asterisk in the 
document instead of selecting the starred paragraph types.

Unfortunately, I cannot see why.

I maintain the Norwegian translation, so I would like to fix this bug 
before the 1.6.3 release, along with some other translation improvements.


My guess is that there is some ALT+P-related string that gets ruined by 
translation. Or it might be a translation mistake that fails to preserve 
some special character. Do anybody know what string it might be? Is this 
a known problem?


Helge Hafting


Re: Too many alternatives and options...

2009-05-28 Thread Jürgen Spitzmüller
Enrico Forestieri wrote:

> This is also fixed, now.

Thanks.

Jürgen




Re: request to delete the file "manpage.layout"

2009-05-28 Thread Jürgen Spitzmüller
Uwe Stöhr wrote:

> Jürgen, can this go in branch too?

Yes.

Jürgen




Re: Documentation of tex2lyx

2009-05-28 Thread Jürgen Spitzmüller
Enrico Forestieri wrote:

> Hmm... I can swear I attached it. Trying again but compressed this time
> (maybe there's a filter that strips html attachments).

I cannot open the file. But I agree a html version should be added.

Jürgen




Re: r29856 - lyx-devel/trunk/config

2009-05-28 Thread Abdelrazak Younes

Abdelrazak Younes wrote:

b...@lyx.org wrote:

Author: baum
Date: Tue May 26 21:50:37 2009
New Revision: 29856
URL: http://www.lyx.org/trac/changeset/29856



+BOOST_FILESYSTEM = -lboost_filesystem$(BOOST_MT)


AFAIR we don't use boost_filesystem anymore (neither in 1.6 nor in 
trunk). Not sure about boost_iostreams but I would say so too.


I confirm, CMake at least doesn't build filesystem nor iostream so that 
is not needed for autotools and scons either.


Abdel.