]> git.lyx.org Git - lyx.git/log
lyx.git
10 years agoCleanup seminar.layout after the upgrade to format 50.
Enrico Forestieri [Thu, 29 May 2014 20:07:37 +0000 (22:07 +0200)]
Cleanup seminar.layout after the upgrade to format 50.

10 years agoAdd missing bits of layout file format update
Georg Baum [Thu, 29 May 2014 19:25:08 +0000 (21:25 +0200)]
Add missing bits of layout file format update

This is needed so that the new format number is actually used. Since the
conversion is a noop I did not update the layout files (more updates will
come).

10 years agoUpdate layouts with separators to format 50
Georg Baum [Thu, 29 May 2014 19:22:15 +0000 (21:22 +0200)]
Update layouts with separators to format 50

10 years agoInclude lyx2lyx test in tarball
Georg Baum [Thu, 29 May 2014 13:13:59 +0000 (15:13 +0200)]
Include lyx2lyx test in tarball

10 years agoMake layout test compile
Georg Baum [Thu, 29 May 2014 13:07:07 +0000 (15:07 +0200)]
Make layout test compile

10 years agoExecute lyx2lyx unit test when running tests
Georg Baum [Thu, 29 May 2014 12:57:05 +0000 (14:57 +0200)]
Execute lyx2lyx unit test when running tests

Actually lyx2lyx has a tiny unit test. Add it to the autotools test machinery
and fix it: Since nobody knew about it the test was of course broken.

10 years agoFix the fix
Georg Baum [Thu, 29 May 2014 12:44:38 +0000 (14:44 +0200)]
Fix the fix

MAC-style (pre-OS X) line ends were not recognized anymore

10 years agoAdd layout tag that determines if/when a paragraph can be indented.
Juergen Spitzmueller [Thu, 29 May 2014 12:10:32 +0000 (14:10 +0200)]
Add layout tag that determines if/when a paragraph can be indented.

Fixes: #7327, #7458, #8670
10 years agoAdd some SVG versions of self-made icons found here on my box
Juergen Spitzmueller [Thu, 29 May 2014 11:32:09 +0000 (13:32 +0200)]
Add some SVG versions of self-made icons found here on my box

10 years agoDo not corrupt documents without newline at EOF
Georg Baum [Thu, 29 May 2014 11:15:07 +0000 (13:15 +0200)]
Do not corrupt documents without newline at EOF

trim_eol() assumes that a line always ends either with \n, \r, or \r\n.
This assumption is always valid except for the last line of a document, since it
may miss the trailing newline. LyX does not create such documents, bu they may
result from automatic creation tools, and LyX can read them, so lyx2lyx should
be able to read them as well.

10 years agoAvoid processing multiple times the same paragraph when converting latex arguments.
Enrico Forestieri [Thu, 29 May 2014 09:05:34 +0000 (11:05 +0200)]
Avoid processing multiple times the same paragraph when converting latex arguments.

10 years agoFix an off-by-one error in the reversion of beamer documents.
Enrico Forestieri [Thu, 29 May 2014 08:55:30 +0000 (10:55 +0200)]
Fix an off-by-one error in the reversion of beamer documents.

10 years agoFix reversion of box insets.
Enrico Forestieri [Thu, 29 May 2014 08:44:02 +0000 (10:44 +0200)]
Fix reversion of box insets.

10 years agoAvoid an assertion.
Enrico Forestieri [Wed, 28 May 2014 18:50:45 +0000 (20:50 +0200)]
Avoid an assertion.

Do not assert if an inset separator is the only item of a List
environment. Although it is a weird thing to do, both GUI and
latex output can deal with it.

10 years agoMake TextMetrics::editXY more robust
Jean-Marc Lasgouttes [Tue, 27 May 2014 13:14:14 +0000 (15:14 +0200)]
Make TextMetrics::editXY more robust

This fixes a crash in examples/fa/splash.lyx when selecting text
representing menu entries. This happens because menu names are in LTR
English, while the inset itself is in RTL.

The problem is that the current code relies on the fact that
 1. getColumnNearX and checkInsetHit share the same idea about cursor
    position.
 2. pos and pos + 1 are in general consecutive on screen.

It seems that 1. is wrong here (for reasons I did not try to
understand); the second assumption is definitely false with
bi-directional text. This makes editXY very fragile.

The new code should be more robust in this respect. The logic is:
 * if checkInsetHit finds an inset, use its position,
 * otherwise, ask getColumnNearX for the cursor position.

Fixes: #9142
10 years agoFix indentation of paragraphs after an environment.
Enrico Forestieri [Tue, 27 May 2014 23:07:47 +0000 (01:07 +0200)]
Fix indentation of paragraphs after an environment.

When deciding whether a paragraph should be indented or not, LyX
only takes into account default layouts. This is wrong, because
an environment could be nested into another one and thus a following
paragraph would not be "default". With this patch all paragraphs
after an environment are correctly indented, independently of
whether their layouts are "default" or not.
The latex output (which was modeled following the previous wrong
assumption) is also correspondingly adapted.

10 years agoNative support for \notag
Georg Baum [Tue, 27 May 2014 20:17:35 +0000 (22:17 +0200)]
Native support for \notag

This is mainly needed to reduce the amount of ERT if you convert AMS example
documents with tex2lyx. No GUI support is needed, since \notag is equivalent
to \nonumber.

10 years agoNative support for \smash[t] and \smash[b]
Georg Baum [Tue, 27 May 2014 20:10:02 +0000 (22:10 +0200)]
Native support for \smash[t] and \smash[b]

This is a follow-up of bug #8967. The implementation is self-explaining, the
only part which needs a comment is lyx2lyx: Since a 100% correct solution is
not possible, it has been decided not to switch amsmath off in the forward
conversion if no other ams command than \smash[t] and \smash[b] is used, but
to consider it a bug that older versions do not load amsmath automatically for
these commands. In the backward direction it is easy to keep the document
compilable, so just do that.

10 years agoAdd missing member initializations
Georg Baum [Sat, 24 May 2014 14:02:31 +0000 (16:02 +0200)]
Add missing member initializations

10 years agoAllow inserting a blank line also after a nested environment.
Enrico Forestieri [Mon, 26 May 2014 19:29:33 +0000 (21:29 +0200)]
Allow inserting a blank line also after a nested environment.

10 years agoClean up empty ERTs that are produced in comples beamer argument conversions
Juergen Spitzmueller [Sun, 25 May 2014 20:46:42 +0000 (22:46 +0200)]
Clean up empty ERTs that are produced in comples beamer argument conversions

10 years agoSupport spreaded argument delimiters in beamer block conversion
Juergen Spitzmueller [Sun, 25 May 2014 20:42:44 +0000 (22:42 +0200)]
Support spreaded argument delimiters in beamer block conversion

10 years agoIn collorary conversion, support argument delimiters spread over several ERTs
Juergen Spitzmueller [Sun, 25 May 2014 13:08:08 +0000 (15:08 +0200)]
In collorary conversion, support argument delimiters spread over several ERTs

The roundtrip still has issues.

10 years agoFixes in the beamer block routine
Juergen Spitzmueller [Sun, 25 May 2014 12:59:58 +0000 (14:59 +0200)]
Fixes in the beamer block routine

This makes beamerlyxexample1 open after the roundtrip, but the file does not compile yet (remaining issues in other routines)

10 years agoMake: improve detection of X11 with Qt 5
Kornel Benko [Sun, 25 May 2014 11:50:18 +0000 (13:50 +0200)]
Make: improve detection of X11 with Qt 5

In collaboration with Scott Kostyshak:
With Qt 4 we could use Q_WS_X11, defined by FindQt4.cmake. In Qt 5,
there is no FindQt5.cmake. Instead we now define our own variable,
QT_USES_X11 by using class QX11Info available only on X11.
(http://qt-project.org/doc/qt-5/QX11Info.html)

The main consequence of this improved support is that now the keytests
can be run (ctest -R "keytest") when LyX is compiled with Qt 5.
Before, with Qt 5 we did not know if X11 was available, which is
needed by xvkbd, so the tests were not enabled. Note, however, that
many tests fail with Qt version 5.2.1 because there was a change in
the event handling mechanism in Qt that causes xvkbd to be unable to
pass capital letters (so case sensitive greps in the tests fail). This
needs to be investigated and reported.

10 years agoAdd Sumatra as a PDF reader
Scott Kostyshak [Fri, 23 May 2014 10:58:21 +0000 (06:58 -0400)]
Add Sumatra as a PDF reader

It currently does not make a difference that it is before
Adobe Reader in configure.py because as Enrico points out
on Windows the default viewer configured in the OS is used.

10 years agoAdd a FIXME.
Richard Heck [Fri, 23 May 2014 15:36:12 +0000 (11:36 -0400)]
Add a FIXME.

10 years agoFix bug #9131 for development branch. There are two parts to the fix.
Richard Heck [Fri, 23 May 2014 14:59:12 +0000 (10:59 -0400)]
Fix bug #9131 for development branch. There are two parts to the fix.

The firs tinvolves a thinko in BibTeXInfo::expandFormat. We were previously
counting passes through this routine, which means: one for every character,
more or less. So long strings would hit the "recursion limit". But what
we are worried about is an infinite loop caused by misues of macros, so that
is what we need to count.

This prevents the error we were previously getting, but it reveals a huge
slowdown when one tries to open a citation inset with a large nubmer of keys.
So we also limit the number of keys we try to process, and the length of the
string we try to display, when we are generating citation information.

I'm convinced that there is a deeper problem in how citation information is
generated (see the bug tracker for more info), but that will require major
surgery and a file format change

10 years agoAdd some const-ref-ness, and remove some default arguments that are
Richard Heck [Fri, 23 May 2014 15:03:17 +0000 (11:03 -0400)]
Add some const-ref-ness, and remove some default arguments that are
never treated as defaults.

10 years agoFix up logic of BibTeXInfo::getInfo. We don't need to process the
Richard Heck [Fri, 23 May 2014 14:48:22 +0000 (10:48 -0400)]
Fix up logic of BibTeXInfo::getInfo. We don't need to process the
richtext stuff unless we actually need it.

10 years agoCmake export tests: Parse also for nameless layouts in lyx-files
Kornel Benko [Fri, 23 May 2014 09:32:19 +0000 (11:32 +0200)]
Cmake export tests: Parse also for nameless layouts in lyx-files

10 years agoFix another glitch with on-screen indentation.
Enrico Forestieri [Thu, 22 May 2014 21:47:38 +0000 (23:47 +0200)]
Fix another glitch with on-screen indentation.

If a new paragraph is created just before a nested environment,
the indentation of the nested environment is not computed
correctly because the parindent of the previous layout would
also be erroneously taken into account. This would cause the
nested environment to move back and forth when something is
added to the new paragraph.

10 years agoFix another crash similar to #9030
Georg Baum [Thu, 22 May 2014 20:00:58 +0000 (22:00 +0200)]
Fix another crash similar to #9030

This one occured after the fix for bug #9030 if the cursor is in a math inset
and the edit menu is opened.

10 years agoSimplify the test for inserting a parbreak separator.
Enrico Forestieri [Thu, 22 May 2014 19:47:10 +0000 (21:47 +0200)]
Simplify the test for inserting a parbreak separator.

Instead of simply taking into account the layout of the previous
paragraph, it is better considering the layout of the environment
in which the previous paragraph may be nested. This makes the test
simpler and, at the same time, more robust.

10 years agoCorrect the check for a command.
Enrico Forestieri [Thu, 22 May 2014 09:51:21 +0000 (11:51 +0200)]
Correct the check for a command.

10 years agoFix potential crash.
Enrico Forestieri [Thu, 22 May 2014 09:41:23 +0000 (11:41 +0200)]
Fix potential crash.

Use the lfun for breaking the paragraph here, such that the metrics
are updated before the call to the next dispatch.

10 years agoFix wrong indentation on screen.
Enrico Forestieri [Wed, 21 May 2014 19:47:01 +0000 (21:47 +0200)]
Fix wrong indentation on screen.

LyX fails to indent on screen a standard paragraph when it is
nested into an environment. The fix is a one-liner but the diff
is larger because it also fixes a previous wrong indentantion
in the source ;)

10 years agoAdd a required paragraph break.
Enrico Forestieri [Wed, 21 May 2014 19:08:11 +0000 (21:08 +0200)]
Add a required paragraph break.

This is necessary, for example, if a standard paragraph is nested
in an environment and the environment does not end immediately after.
To be strictly correct, the layout of the following paragraph should
be compared to the layout of the nesting environment, otherwise, if
they are not the same, an empty line is nevertheless output. However,
this is harmless because an "\end{layout}" tag immediately follows.

10 years ago* Additional.lyx - note for windows git users.
Pavel Sanda [Wed, 21 May 2014 18:12:02 +0000 (11:12 -0700)]
* Additional.lyx - note for windows git users.

https://www.mail-archive.com/lyx-users%40lists.lyx.org/msg98988.html

10 years agoAdd layout translation bit from Guy.
Pavel Sanda [Wed, 21 May 2014 17:51:46 +0000 (10:51 -0700)]
Add layout translation bit from Guy.

https://www.mail-archive.com/lyx-users%40lists.lyx.org/msg98950.html

10 years agoOutput arguments required by arguments with default or preset arg
Juergen Spitzmueller [Wed, 21 May 2014 11:12:14 +0000 (13:12 +0200)]
Output arguments required by arguments with default or preset arg

Fixes: #9128
10 years agoFix nesting in some beamer reversion methods.
Juergen Spitzmueller [Wed, 21 May 2014 09:37:51 +0000 (11:37 +0200)]
Fix nesting in some beamer reversion methods.

Patch by Enrico

10 years agoFix reversion of beamer overprint when a nested paragraph has an argument
Juergen Spitzmueller [Wed, 21 May 2014 09:36:47 +0000 (11:36 +0200)]
Fix reversion of beamer overprint when a nested paragraph has an argument

10 years agoSmall reorganization.
Enrico Forestieri [Tue, 20 May 2014 22:59:36 +0000 (00:59 +0200)]
Small reorganization.

I am not sure I fully understand the pending_newline/unskip_newline
logic (which seems mainly related to rtl writing), so I prefer to
leave it alone, in the sense that now things go again as in 2.1
until the point where those booleans are used for producing output.
If it turns out that a spurious (and unwanted) empty line comes
from the previous code, it can be easily corrected later.

I am also reintroducing the check about a separator inset at the end
of the paragraph, because that is necessary for the plain version.

10 years agoGeneralize control on double blank lines.
Enrico Forestieri [Tue, 20 May 2014 19:52:29 +0000 (21:52 +0200)]
Generalize control on double blank lines.

We can now tell whether a blank line was just output and so can
avoid outputting another one.

10 years agoFix a GCC warning: comparing signed vs. unsigned
Scott Kostyshak [Tue, 20 May 2014 11:46:22 +0000 (07:46 -0400)]
Fix a GCC warning: comparing signed vs. unsigned

This also changes the type of an int to an ssize_t.

nRead is initialized as an ssize_t because it could
be negative. It is cast to a size_t for comparison
to the size of a vector, but only after we check
that nRead is not negative.

10 years agoCode cleanup: get rid of RenderPreview::status()
Jean-Marc Lasgouttes [Tue, 20 May 2014 10:19:26 +0000 (12:19 +0200)]
Code cleanup: get rid of RenderPreview::status()

This method is a proxy for LyXRC::preview that forces to forward
declare some wrapper around an enum...

Instead, two simple static methods previewMath() and previewText() are
introduced, that make the code much easier to follow.

10 years agoFix crash due to invalid pos
Juergen Spitzmueller [Tue, 20 May 2014 09:14:13 +0000 (11:14 +0200)]
Fix crash due to invalid pos

10 years agoFix compilation after afc34c7a
Enrico Forestieri [Mon, 19 May 2014 22:43:46 +0000 (00:43 +0200)]
Fix compilation after afc34c7a

10 years agoInitialize all members
Georg Baum [Mon, 19 May 2014 20:41:51 +0000 (22:41 +0200)]
Initialize all members

10 years agoFix bug 9030 except for windows
Georg Baum [Mon, 19 May 2014 20:37:14 +0000 (22:37 +0200)]
Fix bug 9030 except for windows

The format entries should be sorted according to the culture selected for the
UI. This was not the case previously, resulting in unexpected sorting of small
and capital letters. This is now fixed by using the standard C function
strcoll(). Qt does only offer similar functionality in Qt5, and this is not
mature enough yet to depend on it.
Unfortunately we have a report that strcoll() does not work on MSVC, however
this partial fix is better than nothing. The MSVC issue might also be a
configuration problem, since MS claims that strcoll() is supported. This
still needs to be checked.

10 years agoRemove unneeded slash
Georg Baum [Mon, 19 May 2014 20:09:12 +0000 (22:09 +0200)]
Remove unneeded slash

addPath() always adds a slash at the end, os got a double one before.
Qt and the OS are clever enough to understand that, but a single slash
looks more nice.

10 years agoMove code where it belongs
Georg Baum [Mon, 19 May 2014 20:07:04 +0000 (22:07 +0200)]
Move code where it belongs

It is declared in Dimension.h, so the implementation should be in
Dimension.cpp.

10 years agoUgly fix for bug #9102
Georg Baum [Mon, 19 May 2014 19:40:11 +0000 (21:40 +0200)]
Ugly fix for bug #9102

The real problem is the encoding of latex_language: It is hardcoded to latin1,
but InsetListig uses the currently active encoding. Therefore, we cannot tell
whether any given character wil be encodable or not, and we should not prevent
non-ACII characters.
In the future, we need to make the encoding of latex_language dynamic, so that
it always represents the currently active encoding. Then, we could do the
correct check both for listings and ERT. For now, I simply disabled the
encoding check for listings, which also means that bug 9012 might occur in
other cases for listings, but this is less important than bug 9102.

10 years agoFix reversion of beamer documents.
Enrico Forestieri [Mon, 19 May 2014 17:39:51 +0000 (19:39 +0200)]
Fix reversion of beamer documents.

Beamer documents do not have a "--Separator--" layout but a
"Separator" one. Also fix a thinko causing the deletion of
"\end_layout" tags in some cases.

10 years agoFix copy/paste error, and whitespace.
Richard Heck [Mon, 19 May 2014 13:25:16 +0000 (09:25 -0400)]
Fix copy/paste error, and whitespace.

10 years agoPrettify the output of InsetSeparator.
Enrico Forestieri [Sun, 18 May 2014 21:02:24 +0000 (23:02 +0200)]
Prettify the output of InsetSeparator.

If a separator inset is used after an environment with NextNoIndent
set to false, a blank line was already output. So, avoid outputting
another blank line or an odd looking line with only a '%' character
(as the previous blank line provides already a visual separation).

10 years agoExtend the otexstream class to also report about paragraph breaks.
Enrico Forestieri [Sun, 18 May 2014 20:46:33 +0000 (22:46 +0200)]
Extend the otexstream class to also report about paragraph breaks.

The new method afterParbreak() returns true if a blank line was just
output and we are at the beginning of the next line, false otherwise.

10 years agoDon't allow inserting two consecutive separators.
Enrico Forestieri [Sun, 18 May 2014 16:02:25 +0000 (18:02 +0200)]
Don't allow inserting two consecutive separators.

10 years agoFix crash when right-clicking into an inset with more paragraphs than the main text.
Juergen Spitzmueller [Sun, 18 May 2014 16:03:06 +0000 (18:03 +0200)]
Fix crash when right-clicking into an inset with more paragraphs than the main text.

Fixes: #9123.
10 years agoDisregard font properties changes when inserting a separator.
Enrico Forestieri [Sun, 18 May 2014 15:34:11 +0000 (17:34 +0200)]
Disregard font properties changes when inserting a separator.

This allows to output a simple blank line instead of strange constructs.

10 years agoTake into account that a blank line is always output before a command.
Enrico Forestieri [Sun, 18 May 2014 15:30:01 +0000 (17:30 +0200)]
Take into account that a blank line is always output before a command.

10 years agoWhitespace.
Richard Heck [Sun, 18 May 2014 15:27:54 +0000 (11:27 -0400)]
Whitespace.

10 years agoAdd limits to searches in convert_TeX_brace_to_Argument.
Richard Heck [Thu, 15 May 2014 13:35:05 +0000 (09:35 -0400)]
Add limits to searches in convert_TeX_brace_to_Argument.

10 years agoCorrect my previous comment (thanks Kornel)
Scott Kostyshak [Sun, 18 May 2014 09:11:38 +0000 (05:11 -0400)]
Correct my previous comment (thanks Kornel)

10 years ago#8849 catch exception in enchant speller backend and avoid multiple speller lookups...
Stephan Witt [Sun, 18 May 2014 08:43:32 +0000 (10:43 +0200)]
#8849 catch exception in enchant speller backend and avoid multiple speller lookups for missing dictionaries

10 years agoAdd comment
Scott Kostyshak [Sun, 18 May 2014 08:29:59 +0000 (04:29 -0400)]
Add comment

10 years agoGraphics only handle inset-modify graphics (#8262)
Scott Kostyshak [Wed, 5 Feb 2014 22:59:39 +0000 (17:59 -0500)]
Graphics only handle inset-modify graphics (#8262)

inset-modify tabular and others are now passed on.

10 years agoFix alignment rendering of multirow in LyX (#8976)
Scott Kostyshak [Fri, 14 Feb 2014 02:17:20 +0000 (21:17 -0500)]
Fix alignment rendering of multirow in LyX (#8976)

Multirow cells now have the same alignment rendering in LyX
as in the output. The alignment of a multirow can change as
long as the column is not of fixed width. If the column is
of fixed width, the multirow is left-aligned.

When setting a multirow, the alignment is copied from
the last cell in the selection.

10 years agoAdapt output to the on-screen representation.
Enrico Forestieri [Fri, 16 May 2014 13:39:33 +0000 (15:39 +0200)]
Adapt output to the on-screen representation.

LyX assumes that a standard paragraph following an aligned one or
a layout with NextNoIndent==false has to be indented on screen.
This means that in the latex output a blank line has to follow.
In this case there should be no problem as regards extra vertical
space and it simpler and more elegant to simply uncheck "Indent
Paragraph" in the Paragraph settings pane rather than changing
the current logic and allowing to insert a parbreak separator.

10 years agoFix an on-screen representation glitch.
Enrico Forestieri [Fri, 16 May 2014 13:11:08 +0000 (15:11 +0200)]
Fix an on-screen representation glitch.

If a layout has NextNoIndent set to true, the following paragraph
is not indented on screen. LyX checks the previous layout for that
style parameter to decide whether to indent or not. Of course,
what matters is the latex output and the on-screen representation
should match this output. Now, when a layout has NextNoIndent==true,
the latex output is correctly not indented, while the on-screen
representation may fail to match this output. This can occur when,
for example, a standard paragraph is nested in the previous layout,
because LyX would check the property of the nested layout instead
of the container layout. Thus, LyX should check the property of a
previous layout at the same depth for correctly deciding whether
a paragraph has to be indented or not.
See also http://www.lyx.org/trac/ticket/9055#comment:12 for an
example document where the previous scenario actually occurs.

10 years agoRemove unused parameter.
Jean-Marc Lasgouttes [Fri, 16 May 2014 13:25:17 +0000 (15:25 +0200)]
Remove unused parameter.

10 years agoDo not forget last word of paragraph in completion
Jean-Marc Lasgouttes [Fri, 16 May 2014 13:17:10 +0000 (15:17 +0200)]
Do not forget last word of paragraph in completion

With the old code, the last word of a paragraph would not be added in
the completion list. The key difference is to pass `from' instead of `pos'
to FontList::fontiterator.

Slight cleanup of the code.

10 years agoMake use of otexstream also in external::writeExternal
Enrico Forestieri [Fri, 16 May 2014 12:21:48 +0000 (14:21 +0200)]
Make use of otexstream also in external::writeExternal

This was not necessary when LyX was generously outputting newlines.
As it may happen that the output produced by writeExternal (the
result of an external inset) starts right at the beginning of a
line, if otexstream does not know that something is already on
the line, the iomanip-like variable 'breakln' fails to actually
break the line.

10 years agoCmake build: Show the found flag for use of c++11 features
Kornel Benko [Fri, 16 May 2014 11:40:34 +0000 (13:40 +0200)]
Cmake build: Show the found flag for use of c++11 features

10 years agoOutput a parbreak after a command.
Enrico Forestieri [Wed, 14 May 2014 20:25:15 +0000 (22:25 +0200)]
Output a parbreak after a command.

This is what LyX was previously doing. It has no effect on vertical
spacing but, for example, sectioning commands stand out on the output.
The parbreak is not output if an environment follows or the alignment
of the current or next paragraph is changed.
Also remove some superfluous code.

10 years agoCentralize substitution of python commands
Scott Kostyshak [Mon, 3 Feb 2014 15:57:52 +0000 (10:57 -0500)]
Centralize substitution of python commands

The code for detecting python commands and substituting in the
correct prefix is now merged with what used to be libScriptSearch()
and is now renamed to commandPrep(). This commit does not change
any functionality and just improves organization to reduce the
chance of bugs in the future.

10 years agoCentralize replacement of "$$s"
Scott Kostyshak [Fri, 31 Jan 2014 03:59:33 +0000 (22:59 -0500)]
Centralize replacement of "$$s"

Now the replacement is done in startScript(). In addition to making
the code cleaner and more consistent, this commit fixes a bug where
"$$s" was not replaced when "latex=" was specified in the extra flags
of a converter.

Note that the temporary fix at 731b8610 is reverted with this commit.

10 years agoRename misleading parameter.
Jean-Marc Lasgouttes [Wed, 14 May 2014 16:03:37 +0000 (18:03 +0200)]
Rename misleading parameter.

... and a typo and some whitespace.

10 years ago* sk.po
Kornel Benko [Wed, 14 May 2014 07:52:07 +0000 (09:52 +0200)]
* sk.po

10 years agoCmake build: Unify defines for spellchecker in config.h
Kornel Benko [Tue, 13 May 2014 12:52:11 +0000 (14:52 +0200)]
Cmake build: Unify defines for spellchecker in config.h

10 years agoCmake build: Search for spell checking libraries unconditionally
Kornel Benko [Tue, 13 May 2014 10:31:37 +0000 (12:31 +0200)]
Cmake build: Search for spell checking libraries unconditionally

New option: LYX_REQUIRE_SPELLCHECK. If set and no spellchecker found
  stop the compilation
  if not set, compile in many speckeckers as possible from the set
  of 'ASPELL', 'Hunspell', 'Enchant'

10 years agoCmake build: Use find_package_handle_standard_args() consistently
Kornel Benko [Tue, 13 May 2014 10:30:20 +0000 (12:30 +0200)]
Cmake build: Use find_package_handle_standard_args() consistently

10 years agoUpdate documented command for running tex2lyx tests.
Enrico Forestieri [Mon, 12 May 2014 21:54:50 +0000 (23:54 +0200)]
Update documented command for running tex2lyx tests.

10 years agoFix lyx2lyx warning for tex2lyx files
Georg Baum [Mon, 12 May 2014 20:06:24 +0000 (22:06 +0200)]
Fix lyx2lyx warning for tex2lyx files

I would not have thought that reLyX was considered, but not tex2lyx!

10 years agoUpdate version
Georg Baum [Mon, 12 May 2014 19:53:27 +0000 (21:53 +0200)]
Update version

10 years agoUpdate tex2lyx test references
Georg Baum [Mon, 12 May 2014 19:23:47 +0000 (21:23 +0200)]
Update tex2lyx test references

This is needed after c668ebf61. tex2lyx itself was already updated, and I
verified that the new output is correct.

10 years agoInstall lyx2lyx/lyx_2_2.py.
Richard Heck [Mon, 12 May 2014 13:16:31 +0000 (09:16 -0400)]
Install lyx2lyx/lyx_2_2.py.

10 years agoctests: reinvert a test
Scott Kostyshak [Sun, 11 May 2014 02:23:36 +0000 (22:23 -0400)]
ctests: reinvert a test

This test was inverted before but got lost
in the transition to regular expressions.

10 years agoFix bugs #8546 and #9055, and introduce new separator inset.
Enrico Forestieri [Sat, 10 May 2014 21:25:11 +0000 (23:25 +0200)]
Fix bugs #8546 and #9055, and introduce new separator inset.

The algorithm used for breaking a paragraph in LaTeX export is changed
for avoiding spurious blank lines causing too much vertical space.
This change is tied to the introduction of a new inset (with two
different specializations) helping in either outputing LaTeX paragraph
breaks or separating environments in LyX. Both of the above goals were
previously achieved by the ---Separator--- layout and can now be
accomplished by the new inset in a more natural way. As an example,
after leaving an environment by hitting the Return key for two times,
a third return automatically inserts a parbreak inset, which is
equivalent to the old separator layout, i.e., it also introduces a
blank line in the output. If this blank line is not wanted, the
parbreak separator can be changed to a plain separator by a right
click of the mouse. Of course, an environment can still be separated
by the following one by using the Alt+P+Return shortcut (or the
corresponding menu key), but now the plain separator inset is used
instead of the old separator layout, such that no blank line occurs in
the LaTeX output.

Old documents are converted such that the LaTeX output remains unchanged.
As a result of this conversion, the old separator layout is replaced by
the new parbreak inset, which may also appear in places where the old
algorithm was introducing blank lines while the new one is not.
Note that not all blank lines were actually affecting the LaTeX output,
because a blank line is simply ignored by the TeX engine when it occurs
in the so called "vertical mode" (e.g., after an alignment environment).
The old ---Separator--- layout is now gone and old layout files using it
are also automatically converted.

Round trip conversions between old and new format should leave a document
unchanged. This means that the new behavior about paragraph breaking is
not "carried back" to the old format. Indeed, this would need introducing
special LaTeX commands in ERT that would accumulate in roundtrip
conversions, horribly cluttering the document. So, when converting a
modified document to old formats, the LaTeX output may slightly differ in
vertical spacing if the document is processed by an old version of LyX.
In other words, forward compatibility is guaranteed, but not backwards.

10 years agoCmake build: Install lyx*.desktop and lyx*.svg files in appropriate locations for...
Kornel Benko [Fri, 9 May 2014 08:04:42 +0000 (10:04 +0200)]
Cmake build: Install lyx*.desktop and lyx*.svg files in appropriate locations for unix

10 years agoFix bug #9112: There is a test here that seems intended to catch the
Richard Heck [Thu, 8 May 2014 22:19:55 +0000 (18:19 -0400)]
Fix bug #9112: There is a test here that seems intended to catch the
case where there are unbalanced braces, but it comes too late. In that
case, we try to check cmd[docstring::npos] and crash.

10 years agoBeamer block conversion: consider ERT arguments with leading/trailing blanks
Juergen Spitzmueller [Thu, 8 May 2014 13:14:44 +0000 (15:14 +0200)]
Beamer block conversion: consider ERT arguments with leading/trailing blanks

Should also go to branch.

10 years agoMonolingualization
Juergen Spitzmueller [Thu, 8 May 2014 06:37:12 +0000 (08:37 +0200)]
Monolingualization

10 years agoFix problem with drawing of math backround with selections.
Enrico Forestieri [Wed, 7 May 2014 18:18:14 +0000 (14:18 -0400)]
Fix problem with drawing of math backround with selections.

10 years agoListings: Validate skip amounts correctly.
Juergen Spitzmueller [Wed, 7 May 2014 10:33:39 +0000 (12:33 +0200)]
Listings: Validate skip amounts correctly.

Fixes: #7373.
10 years agoRely on Qt to handle small caps text
Jean-Marc Lasgouttes [Wed, 7 May 2014 10:06:56 +0000 (12:06 +0200)]
Rely on Qt to handle small caps text

This has the advantage of simplifying our code and to produce the
correct output: the small capitals should have the exact same width as
the lower case letters.

The slanted fonts are also translated to oblique on Qt side, but this
does not seems to have an effect in my testing. It may be that proper
oblique fonts need to be installed.

10 years agoSimplification
Juergen Spitzmueller [Wed, 7 May 2014 06:09:04 +0000 (08:09 +0200)]
Simplification

10 years agoStore InsetListingsParams in a vector of pairs, not a map, since order of insertion...
Juergen Spitzmueller [Tue, 6 May 2014 18:22:25 +0000 (20:22 +0200)]
Store InsetListingsParams in a vector of pairs, not a map, since order of insertion matters.

Fixes: #8144, #5203.
10 years agoFix typos in InsetListingsParams validator
Juergen Spitzmueller [Tue, 6 May 2014 18:17:03 +0000 (20:17 +0200)]
Fix typos in InsetListingsParams validator