]> git.lyx.org Git - lyx.git/log
lyx.git
8 years agoEnd all Undo::Private members names with an underscore
Jean-Marc Lasgouttes [Thu, 16 Jul 2015 12:48:23 +0000 (14:48 +0200)]
End all Undo::Private members names with an underscore

8 years agoMove some functions out of Bidi.*
Jean-Marc Lasgouttes [Thu, 16 Jul 2015 09:55:45 +0000 (11:55 +0200)]
Move some functions out of Bidi.*

The functions reverseDirectionNeeded() and reverseDirectionNeeded() do
not rely on the Bidi class. The first one is changed into a Cursor
method, and the second one is replaced with explicit code.

8 years agoCompilation fix for windows
Jean-Marc Lasgouttes [Thu, 16 Jul 2015 07:45:45 +0000 (09:45 +0200)]
Compilation fix for windows

Since commit 7ac70092, lyx::dispatch returns a DispatchResult const &,
which is ignored in the cases below. Nevertheless, the windows
compiler complains that it does not know this type. Gcc and clang can
deal with it without problem.

8 years agoRemove extra row painting added by horizontal scroll branch
Jean-Marc Lasgouttes [Wed, 15 Jul 2015 20:48:49 +0000 (22:48 +0200)]
Remove extra row painting added by horizontal scroll branch

The bug workaround added an extra repaint, which can be very bad when
editing large tables.

It turns out that the bug this is trying to fix is due to the handling
of LFUN_LINE_END in InsetMathGrid. Adding the same code as in
InsetMathNest fixes the problem.

The workaround can therefore be removed.

8 years agoRename paintTextAndSel to paintStringAndSel
Jean-Marc Lasgouttes [Wed, 15 Jul 2015 20:47:47 +0000 (22:47 +0200)]
Rename paintTextAndSel to paintStringAndSel

8 years agoWhen adding completion to a row, add also the unique part
Jean-Marc Lasgouttes [Wed, 15 Jul 2015 19:38:55 +0000 (21:38 +0200)]
When adding completion to a row, add also the unique part

The unique and non-unique parts of the completion are show in different colors.

8 years agoAvoid crash when inserting space in the middle of misspelled character
Jean-Marc Lasgouttes [Wed, 15 Jul 2015 18:36:51 +0000 (20:36 +0200)]
Avoid crash when inserting space in the middle of misspelled character

This is a fixup to commit 4796e6b3.

8 years agoAdd "TODO-comments" with link to textcyr/textgreek tickets.
Günter Milde [Wed, 15 Jul 2015 16:55:30 +0000 (18:55 +0200)]
Add "TODO-comments" with link to textcyr/textgreek tickets.

Add links to tickets #9637 and  #9681 at places that require
changes in the code and/or comments.

8 years agoAuto feature for minibuffer toolbar
Jean-Marc Lasgouttes [Sat, 18 Apr 2015 17:10:33 +0000 (19:10 +0200)]
Auto feature for minibuffer toolbar

Now the minibuffer toolbar is "auto" by default. It is opened by
command-execute (M-x) and closed when the command is executed without error.

* make lyx::dispatch return a DispatchResult struct

* there is a new MINIBUFFER type of toolbar, that can be used for this use.

* remove special handling of M-x in minnibuffer; Escape can be used instead. Fix focus in this case.

* when minibuffer toolbar is "auto", make the toolbar close itself after
  - a command has been executed without error
  - an empty command has been executed
  - the Escape key has been used

[this is actually commit fdcff02a, which was later reverted at dd61d8cf]

8 years agoAvoid breaking kerning with continuous spell checking
Jean-Marc Lasgouttes [Tue, 14 Jul 2015 21:45:41 +0000 (23:45 +0200)]
Avoid breaking kerning with continuous spell checking

There is a mismatch between the way text is tokenized in Row objects
and the way it is shown on screen. When metrics are computed,
continuous spell checking has not been done yet. Yet, the row painter
explicitly breaks words at spell status boundaries. This creates
problem with a text like "PMP," (see bug #9649), where there is a
negative kerning before the comma.

This is solved by not taking in account spell status when drawing
text, and drawing spell underlines separately.

* replace Paragraph::isSameSpellRange with new method getSpellRange.

* merge RowPainter::paintChars into RowPainter::paintFromPos

* move the actual text painting code into the new paintTextAndSel.

* merge some code from paintFromPos to paintMisspelledMark

* in paintMisspelledMark, scan the string which needs to be annotated
  and add dashed line below text marked as misspelled.

Fixes bug #9649.

8 years agoConvert a few more variables to int
Jean-Marc Lasgouttes [Wed, 15 Jul 2015 08:16:42 +0000 (10:16 +0200)]
Convert a few more variables to int

This avoids warnings with windows compiler. It is a pity that even
clang does not give those. Maybe I missed them with the large amount
of boost warnings that it spits.

8 years agoAlways use unicode override characters to enforce direction
Jean-Marc Lasgouttes [Tue, 14 Jul 2015 21:19:26 +0000 (23:19 +0200)]
Always use unicode override characters to enforce direction

There is a second solution in the code which uses some undocumented Qt
stuff, but it does not work in some cases. The best is to rely on the
documented way.

8 years agoFix comment.
Jean-Marc Lasgouttes [Tue, 14 Jul 2015 16:03:58 +0000 (18:03 +0200)]
Fix comment.

8 years agoUse integer line thickness in painter
Jean-Marc Lasgouttes [Tue, 14 Jul 2015 15:42:45 +0000 (17:42 +0200)]
Use integer line thickness in painter

There is no need for real-valued line width in painters. Actually, this even leads to uneven dashes for continuous spell checker.

The new code is supposed to be equivalent to the old one, just more readable. From this, we can try to see whether some lines need to be made thicker on HiDPI screens.

8 years agoFix #9679 textcyr fails without fontenc
Günter Milde [Tue, 14 Jul 2015 12:47:44 +0000 (14:47 +0200)]
Fix #9679 textcyr fails without fontenc

8 years agoinstaller/include/filelist.nsh: add the QtSvg library
Uwe Stöhr [Mon, 13 Jul 2015 19:29:48 +0000 (21:29 +0200)]
installer/include/filelist.nsh: add the QtSvg library

8 years agoDo not forget QtSvg when using pkgconfig in autoconf
Jean-Marc [Sun, 12 Jul 2015 16:32:41 +0000 (18:32 +0200)]
Do not forget QtSvg when using pkgconfig in autoconf

8 years agoCmake tests: Add missing definition for check_Length_SOURCES
Kornel Benko [Sun, 12 Jul 2015 16:59:24 +0000 (18:59 +0200)]
Cmake tests: Add missing definition for check_Length_SOURCES

This was forgotten in previous commit ccbac353eaea45f8480523caba9c0697cb3eacb2

8 years agoFix Length::inBP()
Georg Baum [Sun, 12 Jul 2015 16:36:19 +0000 (18:36 +0200)]
Fix Length::inBP()

Length::inBP() returned the wrong values for most units. I guess that this was
caused by the default case in the switch statement: It did probably exist
before the other units were added.
inBP() is now correct for all units except the font dependent ones em, ex and
mu and the percent units: For these only approximate values are returned,
since not all needed information is available.

8 years agoAdd unit test for the Length class
Georg Baum [Sun, 12 Jul 2015 16:08:41 +0000 (18:08 +0200)]
Add unit test for the Length class

I noticed that inBP() is wrong for several units and want to fix it.
The unit test will help me to find regressions.

8 years agoFix Ticket #9607 (support comma below accent in unicodesymbols).
Günter Milde [Sun, 12 Jul 2015 14:21:25 +0000 (16:21 +0200)]
Fix Ticket #9607 (support comma below accent in unicodesymbols).

LaTeXFeatures defines \textcommabelow and \textcommaabove based on a
generic \LyXTextAccent and declares TextCompositeCommands for the Baltic
letters in the T1 font encoding, using \textcommaabove for the small letter g
and \textcommabelow else.

This allows overwriting of the composite definition for other font encodings.
Especially, it does not interfere with the polish/baltic font encoding L7x
(supported by LatinModern and TeXGyre fonts)  that provides pre-composed
glyphs.

8 years agoGreek subsript letters require "textgreek" flag.
Günter Milde [Sat, 11 Jul 2015 16:18:28 +0000 (18:18 +0200)]
Greek subsript letters require "textgreek" flag.

Add the "textgreek" feature to entries for greek subscript letters
in "unicodesymbols".

8 years agoFix #9636 textgreek: restore compatibility with lgrenc.def.
Günter Milde [Sat, 11 Jul 2015 13:39:02 +0000 (15:39 +0200)]
Fix #9636 textgreek: restore compatibility with lgrenc.def.

Greek characters with perispomeni (tilde) accent were not properly shown
in the output document, because the "textgreek" feature re-defined \~ in
a way incompatible with lgrenc.def since version 0.8  (2013-05-13)
(package greek-fontenc).

The compatibility-definition is required for older versions of the font setup
(before the move of "lgrenc.def" from "babel" to "greek-fontenc").
It is now done with "ProvideTextCommand" to not overwrite the more complete
implementation in lgrenc.def.
With the compatibility definition, combined diacritics with tilde
must be input with the tilde first (e.g. \~>, not \>~).
"unicodesymbols" is changed accordingly.

Also, some LICRs for combining Greek diacritical characters were added to
Unicodesymbols.

8 years agoFontEncoding format is "utf8" instead of "utf-8"
Scott Kostyshak [Sat, 11 Jul 2015 00:16:55 +0000 (20:16 -0400)]
FontEncoding format is "utf8" instead of "utf-8"

Otherwise LyX does not recognized the encoding.

This is a follow-up of commit f7518565.

8 years agoApply #9652: fixes for the lib/language file.
Günter Milde [Thu, 9 Jul 2015 16:41:28 +0000 (18:41 +0200)]
Apply #9652: fixes for the lib/language file.

Add font encodings auto-set by babel.

Set font encoding for georgian to the babel default.

Remove InternalEncoding from languages that use a font encoding
compatible to T1.

Change (LaTeX input) encoding for Serbian (cyrillic) and Romanian.

See #9652 for details.

8 years agoPosition better the cursor after math-display
Jean-Marc Lasgouttes [Wed, 8 Jul 2015 09:01:42 +0000 (11:01 +0200)]
Position better the cursor after math-display

When the cursor had idx > 0 (since math-display does merging anyways),
reset cursor to the start of the inset. This looks less strange than
setting it at the end.

Now at least the basic case of a displayed equation with cursor
somewhere at top-level is handled correctly.

The math-display lfun operates at top level in the math inset.
Therefore, when the cursor is in an inner inset, it will after the
lfun be moved at top level. Unfortunately, there is no way that I know
f to detect this in Inset::doDispatch.

Even if we could, as things stand, it is difficult to keep the cursor in the
inner inset, especially if the inner inset moves : this happens for
example when moving from eqnarray to inline maths.

Therefore this fix is the best I can think of now.

Fixes part of bug #9664.

8 years agoRemove "notermination" flags from combining characters in "unicodesymbols".
Günter Milde [Thu, 9 Jul 2015 09:54:37 +0000 (11:54 +0200)]
Remove "notermination" flags from combining characters in "unicodesymbols".

This fixes bug #9615.

The "notermination" flag tells LyX, that terminating an LICR macro with {} is
not necessary. This is normally the case for all macros with non-alphabetical
name (e.g. \{).

However, combining diacritical characters are converted to *accent macros*,
which expect an argument (the base character).
In Unicode, the base character precedes the combining character,
in LaTeX the combining character precedes the base character.
LyX changes the order of the two characters to get this right,
e.g. "x" + "combining tilde" becomes "\~{x}".

In the special case there is no preceding character (e.g. at the start of the
document or a paragraph), Unicode shows the combining diacritical character
without base character.
The replacement is currently not "terminated" (e.g. "\~"), because of the
"notermination=text" flags in "unicodesymbols".
The accent macros take the *following* character as base character, which is
clearly not intended.
In case of a paragraph consisting of just one combining diacritical character,
LaTeX compilation fails with an error.

With the patch, LyX writes the accent macros with an empty argument,
e.g.  "\~{}", the output is similar to the view in the GUI with the diacritical
character on its own, not on the follwoing character.

8 years agoDon't touch @rpath based frameworks with install_name_tool
Stephan Witt [Wed, 8 Jul 2015 16:02:21 +0000 (18:02 +0200)]
Don't touch @rpath based frameworks with install_name_tool

8 years agoQt5.5 cannot be build in parallel anymore
Stephan Witt [Wed, 8 Jul 2015 16:01:05 +0000 (18:01 +0200)]
Qt5.5 cannot be build in parallel anymore
Automatic symlink creation for Qt frameworks

8 years agoQt 5.5.x introduced a new framework dependency: QtDBus
Stephan Witt [Wed, 8 Jul 2015 15:58:07 +0000 (17:58 +0200)]
Qt 5.5.x introduced a new framework dependency: QtDBus

8 years agoAdd paths of private frameworks to linker rpath options
Stephan Witt [Wed, 8 Jul 2015 15:56:26 +0000 (17:56 +0200)]
Add paths of private frameworks to linker rpath options

8 years agoSmall clean-up to debug support
Jean-Marc Lasgouttes [Wed, 8 Jul 2015 08:57:04 +0000 (10:57 +0200)]
Small clean-up to debug support

8 years agoUse font 'Scheherazade' in tests of Arabic docs
Scott Kostyshak [Tue, 7 Jul 2015 10:52:03 +0000 (06:52 -0400)]
Use font 'Scheherazade' in tests of Arabic docs

We do not currently have any Arabic documents, but when we do, these
fonts will be used for the tests that use system fonts.

They can be installed on Debian-type systems from the
'fonts-sil-scheherazade' package.

8 years agoRemove unneeded header
Enrico Forestieri [Mon, 6 Jul 2015 21:47:22 +0000 (23:47 +0200)]
Remove unneeded header

Forgot this at 4dff1394

9 years agoFix clash between marvosym and bbding packages (fixes #7811).
Günter Milde [Mon, 6 Jul 2015 12:10:34 +0000 (14:10 +0200)]
Fix clash between marvosym and bbding packages (fixes #7811).

Both marvosym and bbding define the "Cross" macro.
To prevent a compilation error due to conflicting definitions,
we undefine the "Cross" macro if both packages are required.

9 years agoUpate layouttranslations for he.po.
Pavel Sanda [Sun, 5 Jul 2015 22:26:52 +0000 (15:26 -0700)]
Upate layouttranslations for he.po.

9 years agoRemerge he.po
Pavel Sanda [Sun, 5 Jul 2015 21:45:50 +0000 (14:45 -0700)]
Remerge he.po

9 years agoAvoid calling Buffer::getMacro inside the MathMacro copy constructor
Enrico Forestieri [Sun, 5 Jul 2015 18:44:54 +0000 (20:44 +0200)]
Avoid calling Buffer::getMacro inside the MathMacro copy constructor

It turns out that it is always better using the copy of the MacroData
for updating the macro_ pointer to avoid problems related to the cursor
position.

9 years agoFix a couple of issues with filename encodings.
Enrico Forestieri [Sun, 5 Jul 2015 13:45:40 +0000 (15:45 +0200)]
Fix a couple of issues with filename encodings.

* Take into account the filesystem encoding for the zip export on *nix
  such that the representation of filenames in the zip archive is not
  mangled, when possible. This only concerns the way filenames are displayed
  as their creation in the filesystem was nevertheless correct.

* On Windows, try to obtain the command line parameters from the wide char
  representation by directly accessing the platform APIs through ctypes.
  This allows to also deal with filenames not exactly representable using
  the current code page and corrects a bug resulting in silently dropping
  those kind of filenames.

9 years agolyxpak: Fix the common path prefix calculation.
Guy Rutenberg [Fri, 26 Jun 2015 15:35:52 +0000 (18:35 +0300)]
lyxpak: Fix the common path prefix calculation.

The old implementation could fail in some rare cases.

9 years agoFix for #9659 - Qt may send more then one close event to a window. Therefore multiple...
Stephan Witt [Sat, 4 Jul 2015 16:59:29 +0000 (18:59 +0200)]
Fix for #9659 - Qt may send more then one close event to a window. Therefore multiple calls to unregisterView for a GuiView are possible. The first one removes the view from the list of known views, subsequent calls do nothing.

9 years agoar.po: update from Hatim
Uwe Stöhr [Sat, 4 Jul 2015 12:23:17 +0000 (14:23 +0200)]
ar.po: update from Hatim

9 years agoRemove an incorrect horizontal size policy
Scott Kostyshak [Thu, 2 Jul 2015 14:14:00 +0000 (10:14 -0400)]
Remove an incorrect horizontal size policy

This effectively makes the horizontal size policy "minimum", which
makes it clear that there is no advantage for this widget of
increasing the horizontal size past the minimum, allowing other
GUI elements to use the horizontal space if useful.

This change for caseCB is consistent with wordsCB and searchbackCB.

9 years agoAvoid code duplication
Enrico Forestieri [Tue, 30 Jun 2015 17:27:38 +0000 (19:27 +0200)]
Avoid code duplication

9 years agoAvoid using a dangling pointer
Enrico Forestieri [Tue, 30 Jun 2015 16:54:19 +0000 (18:54 +0200)]
Avoid using a dangling pointer

This can happen when a macro is copied and then the document where
it is defined is closed. In this case, the macro survives in the
cut stack but the the buffer pointer is dangling.

9 years agoRevert "Auto feature for minibuffer toolbar"
Jean-Marc Lasgouttes [Tue, 30 Jun 2015 09:09:48 +0000 (11:09 +0200)]
Revert "Auto feature for minibuffer toolbar"

This reverts commit fdcff02a3124845d1033d3d804cede127850ff0f.

This was pushed too early, we are not ready yet.

9 years agoConstify RowPainter (no intended change)
Jean-Marc Lasgouttes [Mon, 29 Jun 2015 14:12:11 +0000 (16:12 +0200)]
Constify RowPainter (no intended change)

9 years agoAuto feature for minibuffer toolbar
Jean-Marc Lasgouttes [Sat, 18 Apr 2015 17:10:33 +0000 (19:10 +0200)]
Auto feature for minibuffer toolbar

Now the minibuffer toolbar is "auto" by default. It is opened by
command-execute (M-x) and closed when the command is executed without error.

* make lyx::dispatch return a DispatchResult struct

* there is a new MINIBUFFER type of toolbar, that can be used for this use.

* remove special handling of M-x in minnibuffer; Escape can be used instead. Fix focus in this case.

* when minibuffer toolbar is "auto", make the toolbar close itself after
  - a command has been executed without error
  - an empty command has been executed
  - the Escape key has been used

9 years agoTest negative numbers as well
Georg Baum [Sun, 28 Jun 2015 09:26:40 +0000 (11:26 +0200)]
Test negative numbers as well

9 years agoMake it explicit that we need floating point abs
Georg Baum [Sun, 28 Jun 2015 09:22:42 +0000 (11:22 +0200)]
Make it explicit that we need floating point abs

The 'using namespace std' at the top of the file makes it quite difficult to
understand which abs is used: double std::abs<double>(double) or
int ::abs(int)? Now it is explicit, and the code does not change in subtle
ways if somebody removes the using statement.

9 years agoGive Advanced Find a minimum size
Scott Kostyshak [Sun, 28 Jun 2015 08:50:02 +0000 (04:50 -0400)]
Give Advanced Find a minimum size

The horizontal size policy is now set to "MinimumExpanding", which
means that sizeHint() is enforced as a minimum, but that the widget
can make use of extra available space.

Before, the size policy was ignored, and often resulted in a
scrunched pane that had to have its size manually increased.

9 years agoFindAndReplaceUi: update format
Scott Kostyshak [Sun, 28 Jun 2015 08:47:52 +0000 (04:47 -0400)]
FindAndReplaceUi: update format

9 years agoWas forgetting this
Enrico Forestieri [Fri, 26 Jun 2015 20:54:23 +0000 (22:54 +0200)]
Was forgetting this

9 years agoAmend c9d9309c
Enrico Forestieri [Fri, 26 Jun 2015 20:49:17 +0000 (22:49 +0200)]
Amend c9d9309c

It suffices taking the log of the absolute value.

9 years agoFix formatFPnumber with negative doubles.
Juergen Spitzmueller [Fri, 26 Jun 2015 13:49:44 +0000 (15:49 +0200)]
Fix formatFPnumber with negative doubles.

9 years agoHSpace/VSpace: use a _signed_ length validator in the dialogs.
Juergen Spitzmueller [Fri, 26 Jun 2015 11:19:12 +0000 (13:19 +0200)]
HSpace/VSpace: use a _signed_ length validator in the dialogs.

9 years agoFix setting of pref "hide scrollbar in fullscreen"
Scott Kostyshak [Thu, 25 Jun 2015 12:21:46 +0000 (08:21 -0400)]
Fix setting of pref "hide scrollbar in fullscreen"

The symptom of the bug is that the preference could be incorrectly
displayed (based on the value of the statusbar preference).

This seems to have been a copy/paste mistake introduced in 214f7ed2.

9 years agoProperly account for font size when generating previews
Enrico Forestieri [Wed, 24 Jun 2015 23:39:25 +0000 (01:39 +0200)]
Properly account for font size when generating previews

Patch by Guillaume.

9 years agoCheck whether the buffer pointer is valid before using it
Enrico Forestieri [Wed, 24 Jun 2015 23:25:42 +0000 (01:25 +0200)]
Check whether the buffer pointer is valid before using it

9 years agoAssure not to miss requirements on loading with instant preview on
Enrico Forestieri [Wed, 24 Jun 2015 22:49:15 +0000 (00:49 +0200)]
Assure not to miss requirements on loading with instant preview on

9 years agoFix crash when copying a macro with instant preview on
Enrico Forestieri [Wed, 24 Jun 2015 21:38:53 +0000 (23:38 +0200)]
Fix crash when copying a macro with instant preview on

The MacroData pointer is updated by MathData::metrics() which is not
called when selecting a math inset with instant preview for math on.
Thus, we have to update it in the copy constructor otherwise a crash
is almost assured when hitting Ctrl+C.

9 years ago#7896: LyX templates folder is empty - create a symlink to system templates in user...
Stephan Witt [Wed, 3 Jun 2015 20:09:20 +0000 (22:09 +0200)]
#7896: LyX templates folder is empty - create a symlink to system templates in user template directory at run time

9 years ago#7896 add support for symlink creation by the LyX binary itself
Stephan Witt [Wed, 3 Jun 2015 20:08:21 +0000 (22:08 +0200)]
#7896 add support for symlink creation by the LyX binary itself

9 years agoAvoid an exception when the lyxpreview2bitmap.py script fails completely
Enrico Forestieri [Tue, 23 Jun 2015 00:39:48 +0000 (02:39 +0200)]
Avoid an exception when the lyxpreview2bitmap.py script fails completely

If latex fails to generate any output, the forked process was not removed.
Now, if a snippet was changed a new one was started but, if also the zoom was
changed, things went awry because the 2 concurrent processes were asked to
process again the same snippet. Previously this would have simply caused a
waste of resources because the changed snippet would have not been regenerated.
Also reset the guard due to the early exit.

9 years agoProperly reschedule refresh of previews
Enrico Forestieri [Sun, 21 Jun 2015 15:21:19 +0000 (17:21 +0200)]
Properly reschedule refresh of previews

If the zoom factor is changed right while the previews are being
regenerated, the refreshPreviews() method is a no-op. So, reschedule
the refresh until everything is ready.

9 years agoMake really sure to wait for previews after zoom changes
Enrico Forestieri [Sun, 21 Jun 2015 09:21:59 +0000 (11:21 +0200)]
Make really sure to wait for previews after zoom changes

Relying on the fact that the timer is not active anymore does not
guarantee that the previews at the correct zoom are ready because
the regeneration process may take several seconds and during this
time the zoom factor may be changed again. So, we need an additional
guard for assuring that everything has settled down.

9 years agoUse the draft option for microtype
Enrico Forestieri [Sat, 20 Jun 2015 19:58:19 +0000 (21:58 +0200)]
Use the draft option for microtype

Instead of redefining \usepackage for avoiding the microtype package
when generating previews in dvi mode, the draft option can be used
for disabling it. This also allows to somewhat simplify the
fix_latex_file function.

9 years agoFix another couple of issues spotted by Guillaume
Enrico Forestieri [Sat, 20 Jun 2015 14:37:12 +0000 (16:37 +0200)]
Fix another couple of issues spotted by Guillaume

* Take into account macro redefinitions in the legacy route
* Take into account macros inside nested macro definitions

9 years agoAmend 98a5072a
Enrico Forestieri [Sat, 20 Jun 2015 01:05:50 +0000 (03:05 +0200)]
Amend 98a5072a

We only look once for the definition of the same macro, but we have
to always check its arguments when the same macro appears more than
once in a math inset. So, move earlier this check.

9 years agoFix a couple of issues with macros and previews
Enrico Forestieri [Fri, 19 Jun 2015 23:44:22 +0000 (01:44 +0200)]
Fix a couple of issues with macros and previews

* Fix typo causing to only account for the first char of a macro name
* Also check for macros as arguments of other macros

9 years agoRefine lang nesting fix
Juergen Spitzmueller [Fri, 19 Jun 2015 17:02:35 +0000 (19:02 +0200)]
Refine lang nesting fix

9 years agoCmake export tests: Luatex tests pass now on some more files.
Kornel Benko [Fri, 19 Jun 2015 08:54:40 +0000 (10:54 +0200)]
Cmake export tests: Luatex tests pass now on some more files.

9 years ago\frenchbsetup is a babel command
Juergen Spitzmueller [Fri, 19 Jun 2015 08:11:17 +0000 (10:11 +0200)]
\frenchbsetup is a babel command

9 years agoFix language nesting problem with polyglossia
Juergen Spitzmueller [Fri, 19 Jun 2015 07:25:11 +0000 (09:25 +0200)]
Fix language nesting problem with polyglossia

Part (?) of #9633

9 years agoSimplify the code for "auto" toolbars handling
Jean-Marc Lasgouttes [Thu, 18 Jun 2015 13:30:44 +0000 (15:30 +0200)]
Simplify the code for "auto" toolbars handling

Instaead of passing a number of booleans, it make more sense to pass
the relevant visibility values in a single flag.

9 years agoForce local font switch in caption.
Juergen Spitzmueller [Thu, 18 Jun 2015 12:17:18 +0000 (14:17 +0200)]
Force local font switch in caption.

It is needed with polyglossia. With babel, it does not harm (and looks
more sensible).

9 years agoRemove superfluous separators
Enrico Forestieri [Wed, 17 Jun 2015 09:31:10 +0000 (11:31 +0200)]
Remove superfluous separators

These were added when the user guide was converted to latest format.
Their purpose is assuring that the vertical spacing is not changed for
old documents. Given that they also assure that the bad spacings in
nested item environments is preserved, let's simply get rid of them.

9 years agoProperly pass char to stream (probably fix bug #9632)
Juergen Spitzmueller [Wed, 17 Jun 2015 08:22:46 +0000 (10:22 +0200)]
Properly pass char to stream (probably fix bug #9632)

9 years agoUserGuide.lyx: merge changes to all language variants
Uwe Stöhr [Tue, 16 Jun 2015 23:23:57 +0000 (01:23 +0200)]
UserGuide.lyx: merge changes to all language variants

(The UserGuide is currently not compilable because of bug #9632)

9 years agoSpaceMarker.png: fix image
Uwe Stöhr [Tue, 16 Jun 2015 22:53:53 +0000 (00:53 +0200)]
SpaceMarker.png: fix image

fixes bug #9581

9 years agoUpdate it.po
Enrico Forestieri [Tue, 16 Jun 2015 17:44:20 +0000 (19:44 +0200)]
Update it.po

9 years agoAvoid unnecessary growth of python lists
Enrico Forestieri [Tue, 16 Jun 2015 15:03:32 +0000 (17:03 +0200)]
Avoid unnecessary growth of python lists

The path argument of checkProg* was added to the PATH list in a nested
loop such that the list doubles in size each time the loop is executed,
thus also slowing down detection of missing programs.

9 years agoUpdate sk.po
Kornel Benko [Tue, 16 Jun 2015 08:47:51 +0000 (10:47 +0200)]
Update sk.po

9 years agode.po
Juergen Spitzmueller [Tue, 16 Jun 2015 07:48:33 +0000 (09:48 +0200)]
de.po

9 years agoCheck for, and report, uncodable characters in user preamble.
Juergen Spitzmueller [Mon, 15 Jun 2015 19:08:40 +0000 (21:08 +0200)]
Check for, and report, uncodable characters in user preamble.

Fixes: #9599
9 years agoReplacement for commits bc47054b and ad0d0f6d
Enrico Forestieri [Sun, 14 Jun 2015 16:10:29 +0000 (18:10 +0200)]
Replacement for commits bc47054b and ad0d0f6d

The strategy adopted in bc47054b had some drawbacks related to the way
instant preview snippets are generated. See the subthread starting at
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg187916.html
for details.

The strategy adopted in this commit is that of adding macro definitions
only for the macros actually used in a preview snippet, independently
of whether some macro was already used in a previous snippet. In this way
the snippets don't need to be changed according to whether they are
compiled as a whole or separately from each other. This fact was causing
the regeneration of a preview snippet whenever the cursor entered the
corresponding inset, even if the generated image would have not changed.
The problem of defining or redefining a macro is taken care by the
python scripts.

9 years agoRevert bc47054b and the related commit ad0d0f6d
Enrico Forestieri [Sun, 14 Jun 2015 16:05:39 +0000 (18:05 +0200)]
Revert bc47054b and the related commit ad0d0f6d

As discussed on the devel list. See the subthread starting at
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg187916.html
Soon to be replaced with the same strategy adopted in the stable branch.

9 years agoconfigure.py: add support for pandoc and docx
Uwe Stöhr [Sun, 14 Jun 2015 15:27:21 +0000 (17:27 +0200)]
configure.py: add support for pandoc and docx

- make LyX aware of the docx format
- add converters to odt and docx using the program Pandoc

9 years agoImprove alignment
Georg Baum [Sun, 14 Jun 2015 12:16:31 +0000 (14:16 +0200)]
Improve alignment

9 years agoRevert "remove unneeded notermination tags in unicodesymbols (bug #9615)"
Juergen Spitzmueller [Sun, 14 Jun 2015 11:44:50 +0000 (13:44 +0200)]
Revert "remove unneeded notermination tags in unicodesymbols (bug #9615)"

This reverts commit a6fdc1196b420a0c0aa2aa195dc22708f3c734b6.

The issue needs more discussion. See #9615.

9 years agoFix lyx2lyx unicodesymbols escaping
Georg Baum [Sun, 14 Jun 2015 10:44:44 +0000 (12:44 +0200)]
Fix lyx2lyx unicodesymbols escaping

The escaping of symbols read from unicodesymbols was inconsistent, which lead
to wrong replacements (bug 9559). Now the escaping is consistent: unicode_reps
contains unescaped LaTeX commands, the needed escaping for LyX files is
applied in put_cmd_in_ert() and lyx2latex().

9 years agoFix reversion of mathtools xarrows (bug #9620).
Juergen Spitzmueller [Sun, 14 Jun 2015 08:47:31 +0000 (10:47 +0200)]
Fix reversion of mathtools xarrows (bug #9620).

9 years agoUpdate description to reflect arg improvements
Scott Kostyshak [Sun, 14 Jun 2015 05:40:54 +0000 (01:40 -0400)]
Update description to reflect arg improvements

9 years agolyx2lyx/lyx_2_2.py: fix typo in comment
Uwe Stöhr [Sun, 14 Jun 2015 00:15:30 +0000 (02:15 +0200)]
lyx2lyx/lyx_2_2.py: fix typo in comment

9 years agoFix revert_textcolor method (bug #9620)
Juergen Spitzmueller [Sat, 13 Jun 2015 10:48:36 +0000 (12:48 +0200)]
Fix revert_textcolor method (bug #9620)

9 years agoGuiParagraph: Fix remaining glitch when entering custom line spread
Juergen Spitzmueller [Sat, 13 Jun 2015 10:31:03 +0000 (12:31 +0200)]
GuiParagraph: Fix remaining glitch when entering custom line spread
while immediate apply is activated.

9 years agoGuiParagraph: fix thinko (bug #9621)
Juergen Spitzmueller [Sat, 13 Jun 2015 10:16:34 +0000 (12:16 +0200)]
GuiParagraph: fix thinko (bug #9621)

9 years agoFix cursor setting in right-aligned text
Jean-Marc Lasgouttes [Sat, 13 Jun 2015 10:09:53 +0000 (12:09 +0200)]
Fix cursor setting in right-aligned text

Fixes bug #9619.

9 years agoEscape backslash
Juergen Spitzmueller [Sat, 13 Jun 2015 09:37:10 +0000 (11:37 +0200)]
Escape backslash

9 years agoMake tex2lyx tests green again
Georg Baum [Thu, 11 Jun 2015 20:25:00 +0000 (22:25 +0200)]
Make tex2lyx tests green again

Unfortunately I overlooked in 44f73b065004 that the first three whitespace
changes in box-color-size-space-align.lyx.lyx were actually correct, so they
should not have been reverted. In detail:
1), 2): The space after \raggedleft must not be part of the ERT inset, but it
        is ouput by check_space() as part of the standard text which follows.
3):     The space in front of www is caused by the fact that there is a
        newline between the opening brace of the parbox and the \centering
        command, so this space is not the one after \centering (which is
        correctly swallowed). This additional space is in fact not needed,
        and the contents would look better in LyX without it, but since it is
        not caused by special code I'll put it back in the refernce for now.
        We can still improve this in the future if anybody has a good idea.

The remaining whitespace issues are all fixed by a simple change in
parse_text(): Instead of always eating whitespace after detecting \centering
et al, and always output a space as part of the ERT if these commands need an
ERT, let the standard space handling mechanism kick in: skip whitespace if
no ERT is used (in this case LyX will always output the needed space), and
do not touch whitespace if an ERT is used.