]>
git.lyx.org Git - lyx.git/log
Tommaso Cucinotta [Sun, 16 Apr 2017 09:27:34 +0000 (11:27 +0200)]
findadv: avoid crash when regexp-based search fails (mitigates #10625).
Tommaso Cucinotta [Sun, 16 Apr 2017 09:26:29 +0000 (11:26 +0200)]
autotests: skip overly long export-in.sh test by default.
Tommaso Cucinotta [Wed, 25 Jan 2017 01:08:28 +0000 (02:08 +0100)]
Recovered working autotests for findadv on Linux/Ubuntu (after a long no-use time).
- from specific dependency on wish8.5, to just wish
- from checking the 2nd line of /proc/*/status, to grep-ing on sleeping (old system was failing on newer kernels)
- mode debugging and python output during tests
Uwe Stöhr [Sat, 15 Apr 2017 17:58:56 +0000 (19:58 +0200)]
lyx_2_2.py: fix reversion of colored boxes with special features
Uwe Stöhr [Sat, 15 Apr 2017 15:32:58 +0000 (17:32 +0200)]
BufferParams.cpp: correct output for \mathindent after [
fc1c5c6f /lyxgit]
- also adapt the lyx2lyx logic to the changed implementation
Uwe Stöhr [Sat, 15 Apr 2017 15:03:13 +0000 (17:03 +0200)]
tex2lyx: update fileformat
Stephan Witt [Sat, 15 Apr 2017 11:30:27 +0000 (13:30 +0200)]
Care for a tilde in front of a path name. A path name with tilde sign at start is interpreted as relative to the current users home directory.
Uwe Stöhr [Sat, 15 Apr 2017 04:57:52 +0000 (06:57 +0200)]
InsetFloat: allow float placement for rotated floats
- fixes bug #10270
- fileformat change
- fixes also a bug that unwanted placement was output to LaTeX on certain cases
Uwe Stöhr [Sat, 15 Apr 2017 02:54:07 +0000 (04:54 +0200)]
PDF-form.lyx: New German translation
- also many fixes and updates of the English version
- also some according fixes in de.po
Enrico Forestieri [Fri, 14 Apr 2017 23:08:25 +0000 (01:08 +0200)]
Update it.po
Enrico Forestieri [Fri, 14 Apr 2017 22:05:40 +0000 (00:05 +0200)]
lyxpak.py: Python 3 compatibility
Stephan Witt [Fri, 14 Apr 2017 20:15:50 +0000 (22:15 +0200)]
LyX build for Mac - use HFS+ compression for copying LyX.app to disk image
Stephan Witt [Fri, 14 Apr 2017 20:14:21 +0000 (22:14 +0200)]
LyX build for Mac - more readable disk mount management
Stephan Witt [Fri, 14 Apr 2017 20:08:12 +0000 (22:08 +0200)]
LyX build for Mac - avoid shipment of debug libraries
Stephan Witt [Fri, 14 Apr 2017 20:07:09 +0000 (22:07 +0200)]
LyX build for Mac - no need to deploy QtDBus framework
Uwe Stöhr [Thu, 13 Apr 2017 23:40:51 +0000 (01:40 +0200)]
Win installer: add package that is nowadays necessary to compile the PDF-form example file
Uwe Stöhr [Thu, 13 Apr 2017 22:59:32 +0000 (00:59 +0200)]
Math.lyx: correct wrong info about \mathindent
Enrico Forestieri [Thu, 13 Apr 2017 14:20:39 +0000 (16:20 +0200)]
layout2layout.py: Python 3 compatibility
The layout2layout.py script already reads and writes files in
binary format. However, all regexes and comparisons assume strings,
so that python3 chokes on them. This commit converts all involved
strings into bytes-like objects. In this way both python 2 and 3
behave the same.
Kornel Benko [Thu, 13 Apr 2017 13:46:03 +0000 (15:46 +0200)]
Cmake roundtrip tests: Amend
fc1c5c6 , rename formula_indent to math_indent
Enrico Forestieri [Thu, 13 Apr 2017 13:34:54 +0000 (15:34 +0200)]
configure.py: Python 3 compatibility
Don't assume any encoding for the layout files and treat them in
the same way python 2 does. Thanks José for the idea.
This commit supersedes
50e21b71 and
e19b2a71 .
Kornel Benko [Thu, 13 Apr 2017 09:18:05 +0000 (11:18 +0200)]
Check_layout tests: Check also stderr
1.) The command check_layout exits with "0", even if the module contains errors.
The new module check_layout.cmake tries to compensate.
2.) Added default style to the test layouts when checking single modules.
Enrico Forestieri [Thu, 13 Apr 2017 08:49:02 +0000 (10:49 +0200)]
TeXFiles.py: Python 3 compatibility
Juergen Spitzmueller [Thu, 13 Apr 2017 07:59:06 +0000 (09:59 +0200)]
Tiny clean up
Enrico Forestieri [Thu, 13 Apr 2017 07:38:46 +0000 (09:38 +0200)]
Uwe Stöhr [Thu, 13 Apr 2017 00:31:26 +0000 (02:31 +0200)]
BufferParams: rename formula_indent to math_indent etc. as requested
- also add flyx2lyx feature to import existing document class option as requested by JMarc
- also don't use a real default indentation length
Enrico Forestieri [Wed, 12 Apr 2017 19:19:42 +0000 (21:19 +0200)]
Avoid an assertion when compiling in debug mode with MSVC 2015
Seemingly, when removing an argument from argv, and thus inserting
a null pointer to shorten the array, causes an assertion because
the null pointer is not a valid heap pointer (sic!)
Fixes bug #10440
Juergen Spitzmueller [Wed, 12 Apr 2017 10:49:38 +0000 (12:49 +0200)]
FontUi: Fix layout
The old layout resulted in a too wide dialog
(especially in some localizations)
Günter Milde [Tue, 11 Apr 2017 07:51:23 +0000 (09:51 +0200)]
ctests: test unicodesymbols also with utf8.
The the default input encoding (utf8) whas somehow dropped from
the list. Restore it with explicit naming.
Juergen Spitzmueller [Wed, 12 Apr 2017 10:10:58 +0000 (12:10 +0200)]
TextLayout.ui: small layout fixes.
Juergen Spitzmueller [Wed, 12 Apr 2017 09:57:43 +0000 (11:57 +0200)]
No need to translate number
Juergen Spitzmueller [Wed, 12 Apr 2017 09:53:58 +0000 (11:53 +0200)]
de.po
Uwe Stöhr [Tue, 11 Apr 2017 22:22:23 +0000 (00:22 +0200)]
InsetFloat.cpp: fix bug #10618
the label code missed to check all options (rotated, span columns)
Kornel Benko [Tue, 11 Apr 2017 07:27:00 +0000 (09:27 +0200)]
Update sk.po
Uwe Stöhr [Tue, 11 Apr 2017 00:03:19 +0000 (02:03 +0200)]
FORMAT: correct a date
Uwe Stöhr [Mon, 10 Apr 2017 22:36:00 +0000 (00:36 +0200)]
tex2lyx: support rotated algorithm floats
LyX knows algorithm floats since ages. tex2lyx's support for rotated algorithm floats has simply been forgotten.
Uwe Stöhr [Mon, 10 Apr 2017 21:34:20 +0000 (23:34 +0200)]
TextLayoutUi.ui: correct a tooltip
Jean-Marc Lasgouttes [Mon, 10 Apr 2017 13:06:14 +0000 (15:06 +0200)]
Set encoding correctly when reading layout files
Patch from Enrico.
Jean-Marc Lasgouttes [Mon, 10 Apr 2017 09:21:29 +0000 (11:21 +0200)]
Try to preserve small details from
eb4a2a19
Part of ticket #10569
Jean-Marc Lasgouttes [Mon, 10 Apr 2017 08:27:08 +0000 (10:27 +0200)]
Better implementation for corssOutLines
When trying to do implement a LaTeX feature on screen, it is always
good to see how LaTeX does it, just in case it is easy to implement on
our side.
Then we have a correct output at all DPI sizes.
Kornel Benko [Mon, 10 Apr 2017 07:57:40 +0000 (09:57 +0200)]
Make output of check_Length.cpp more human readable.
Stephan Witt [Sat, 8 Apr 2017 19:01:17 +0000 (21:01 +0200)]
update canAutoOpenFile/autoOpenFile implementation to new MacOSX API, avoid deprecated calls
Stephan Witt [Sat, 8 Apr 2017 18:58:16 +0000 (20:58 +0200)]
#9006 care to make prefs2prefs.py python 3 compatible
Kornel Benko [Sat, 8 Apr 2017 09:43:39 +0000 (11:43 +0200)]
Update sk.po
Uwe Stöhr [Sat, 8 Apr 2017 02:55:22 +0000 (04:55 +0200)]
tex2lyx: fix the preamble output
- LyX has new preamble tags. Although that they are not relevant for LaTeX they must be created by tex2lyx nevertheless
- also fix an issue that the formula indentation was always output
- update the tex2lyx tests accordingly
Uwe Stöhr [Sat, 8 Apr 2017 02:13:05 +0000 (04:13 +0200)]
update tex2lyx tests to latest file format
Uwe Stöhr [Sat, 8 Apr 2017 01:30:21 +0000 (03:30 +0200)]
Length.cpp: add new unit representing \baselineskip
- fileformat change
Uwe Stöhr [Sat, 8 Apr 2017 00:55:00 +0000 (02:55 +0200)]
InsetTabular.cpp: handle crossed-out text
Uwe Stöhr [Sat, 8 Apr 2017 00:16:05 +0000 (02:16 +0200)]
GuiDocument.cpp: commit missing part
This should have been committed with the previous commit but failed for an unknown reason.
Uwe Stöhr [Sat, 8 Apr 2017 00:12:35 +0000 (02:12 +0200)]
MathsUi.ui. move formula indentation to text layout as requested by Jmarc
Uwe Stöhr [Fri, 7 Apr 2017 23:39:08 +0000 (01:39 +0200)]
MathsUi.ui: next attempt to make it look correct also under Linux
Guillaume MM [Sun, 2 Apr 2017 19:04:06 +0000 (21:04 +0200)]
MathAtom is a unique_ptr
Fix coverity suggestion of defining a move constructor
Kornel Benko [Fri, 7 Apr 2017 16:51:35 +0000 (18:51 +0200)]
Make runtests.py python3 ready
Tex2lyx tests with ctest depend on it
Jean-Marc Lasgouttes [Fri, 7 Apr 2017 10:04:02 +0000 (12:04 +0200)]
Avoid using buffer() which might throw an exception
Actually buffer_ is always valid on this codepath, but coverity is not
able to see that.
Jean-Marc Lasgouttes [Fri, 7 Apr 2017 09:02:36 +0000 (11:02 +0200)]
Avoid using theServer() for no reason
All it brings us is threatening to throw an exception to scare coverity off.
Uwe Stöhr [Fri, 7 Apr 2017 00:14:34 +0000 (02:14 +0200)]
MathsUi.ui: adjust dimensions as requested
Uwe Stöhr [Thu, 6 Apr 2017 23:52:48 +0000 (01:52 +0200)]
BufferParams.cpp; initialize formula_indentation with default value
- Buffer.cpp: formula_indentation will not always be output/written -> erase it
Jean-Marc Lasgouttes [Thu, 6 Apr 2017 13:13:24 +0000 (15:13 +0200)]
Row::Element::x2pos: go to nearest point also over insets
getPosNearX, which is the only user of x2pos, should always return the
nearest position.
In editXY, there is a need to return the position where the inset
stands, but it is done using checkInsetHit.
This is a simplification of commit
eb4a2a19 , which has been reverted
at
01f0ab64a .
Fixes part of bug #10569.
Jean-Marc Lasgouttes [Sat, 1 Apr 2017 11:09:23 +0000 (13:09 +0200)]
Revert "When selecting text with the mouse, inset selection happens in the middle"
This reverts commit
eb4a2a190f2640d2a6ab7146cfcc347e70b57044 .
Jean-Marc Lasgouttes [Thu, 6 Apr 2017 13:08:50 +0000 (15:08 +0200)]
editXY: make cursor positionning correct over non editable inset
Instead of using complicated (and wrong) code, it is better to use
getPosNearX here.
Also simplify the code by removing temporary variables.
Fixes part of #10569.
Jean-Marc Lasgouttes [Thu, 6 Apr 2017 13:05:19 +0000 (15:05 +0200)]
Set boundary correctly in getPosNearX
The code that looks whether neighbor block has a different direction
should look to the left or to the right depending on the direction of
the current block.
Fixes part of bug #10569
Jean-Marc Lasgouttes [Thu, 6 Apr 2017 11:48:32 +0000 (13:48 +0200)]
Require automake 1.14 and autoconf 2.65
This allows to fix distclean properly, since we know that
subdir-objects is used. When it is the case, it is not a good idea for
a Makefile to use a source file which is under the control of another
one. This could not be made to work work with old automake versions
(<1.14).
Therefore we refer directly to object files in Makefile.am instead of
source files. The actually leads to less compilation in tex2lyx.
Update the code here and there to remove compatibility hacks. Update
documentation.
Re-enable the layout test and fix the Length test, which was ovewriting
memory in test_inPixels() because lyxrc did not had a correct layout.
Jean-Marc Lasgouttes [Wed, 5 Apr 2017 15:10:13 +0000 (17:10 +0200)]
Make it clear that current_view_ is available when needed
In particular the LATTEST in createView tells coverity that creating a
view sets it as current_view_.
Scott Kostyshak [Thu, 6 Apr 2017 04:34:51 +0000 (00:34 -0400)]
Document new behavior of "delete" LFUNs
- Describe the change in RELEASE-NOTES.
- Update the example for inset-forall.
This commit follows
71623b88 .
Scott Kostyshak [Thu, 6 Apr 2017 04:13:32 +0000 (00:13 -0400)]
Keep RELEASE-NOTES as ASCII
Might as well make it as simple as possible.
Scott Kostyshak [Thu, 6 Apr 2017 02:08:10 +0000 (22:08 -0400)]
Remove "Bummer" from the "Save failed!" message
There is a small chance that the user could get offended by this
nonchalant word in a data loss situation.
For discussion, see
https://www.mail-archive.com/search?l=mid&q=
20170401043945 .7bpmrdugtqo6dw3j%40steph
Uwe Stöhr [Thu, 6 Apr 2017 01:07:58 +0000 (03:07 +0200)]
MathsUi.ui: adjust the size to fit better
Uwe Stöhr [Wed, 5 Apr 2017 22:10:51 +0000 (00:10 +0200)]
Win installer: add packages necessary for Unicode math support
- and one for Arabic script languages like Urdu
Uwe Stöhr [Wed, 5 Apr 2017 20:22:47 +0000 (22:22 +0200)]
support to indent formulas
- adds support for the general document class option fleqn
- adds support to specify the formula indentation
- fileformat change
Jean-Marc Lasgouttes [Wed, 5 Apr 2017 09:53:17 +0000 (11:53 +0200)]
Use assertions to declare things we know for sure
Doing it that way makes coverity happy.
Jean-Marc Lasgouttes [Wed, 5 Apr 2017 08:22:52 +0000 (10:22 +0200)]
Check both lower and upper bound for tainted loop limit
In these cases, the lower bound is not that important, but coverity insists on it.
Jean-Marc Lasgouttes [Wed, 5 Apr 2017 08:20:01 +0000 (10:20 +0200)]
Replace coverity annotation by an assertion
And reorganize the code a bit.
Uwe Stöhr [Tue, 4 Apr 2017 23:19:40 +0000 (01:19 +0200)]
LaTeXConfig.lyx: add the noto fonts
Uwe Stöhr [Tue, 4 Apr 2017 22:06:37 +0000 (00:06 +0200)]
FuncCode.h: correct a date
Uwe Stöhr [Tue, 4 Apr 2017 22:01:19 +0000 (00:01 +0200)]
Add support to cross out characters
- adds support for the command \xout of the LateX package ulem
- fileformat change
Uwe Stöhr [Tue, 4 Apr 2017 21:08:45 +0000 (23:08 +0200)]
latexfonts: correct previous commit
this went in accidentally
Uwe Stöhr [Tue, 4 Apr 2017 21:02:47 +0000 (23:02 +0200)]
latexfonts: support for the Noto fonts
- fileformat change
- the support to scale the sf and the tt fonts can be added later, see enhancement #10611
Uwe Stöhr [Tue, 4 Apr 2017 20:35:49 +0000 (22:35 +0200)]
configure.py: add support for Python 3 on Windows
fixes the last missing part of bug #9006 (hopefully)
Jean-Marc Lasgouttes [Tue, 4 Apr 2017 07:35:55 +0000 (09:35 +0200)]
Try another way of convincing coverity that everything is fine
We have a false positive here, but annotating with coverity[] comments
is not very convenient. Let's try to use good old assertions instead.
Uwe Stöhr [Tue, 4 Apr 2017 00:08:49 +0000 (02:08 +0200)]
Win installer: add 2 fonts to packages list
Uwe Stöhr [Mon, 3 Apr 2017 22:19:14 +0000 (00:19 +0200)]
tex2lyx: support for the cochineal fonts
Jean-Marc Lasgouttes [Mon, 3 Apr 2017 10:29:09 +0000 (12:29 +0200)]
Revert "Possible fix for bug #10295."
This reverts commit
9b0b45dc81e8f1bc5cf370f0a9a8f60b8d93f4e6 .
(committed by mistake)
Jean-Marc Lasgouttes [Mon, 3 Apr 2017 10:25:17 +0000 (12:25 +0200)]
When converting, indicate clearly when buffer should exist
This makes coverity happy, and makes out code a tiny tiny bit better
commented.
Richard Heck [Mon, 3 Apr 2017 00:59:23 +0000 (20:59 -0400)]
Possible fix for bug #10295.
As it was, the comparison buffer was sharing a DocumentClass with
one of the compared buffers. I don't fully understand why this was
causing a problem, since we use a shared_ptr. But this patch creates
a new DocumentClass for the new buffer.
Enrico Forestieri [Sun, 2 Apr 2017 22:26:49 +0000 (00:26 +0200)]
Fix bug #10581
Tell the math parser that we are parsing a macro definition, so that
it doesn't try to return a verbatim copy in case of failure.
Enrico Forestieri [Sun, 2 Apr 2017 21:56:25 +0000 (23:56 +0200)]
Fix bug #10554
The \lyxdeleted macro cannot cope with \newpage & co.
Tommaso Cucinotta [Sun, 2 Apr 2017 12:55:33 +0000 (14:55 +0200)]
Restrict file cache expiry time to positive values.
Uwe Stöhr [Sat, 1 Apr 2017 17:54:33 +0000 (19:54 +0200)]
VSpace.cpp: fix 2 compiler warnings
A division can always lead to a non integer.
Jean-Marc Lasgouttes [Fri, 31 Mar 2017 16:50:14 +0000 (18:50 +0200)]
Improve drawing of math roots (\sqrt and \root)
This is preliminary work to make roots look more like in TeX output:
* correct font size for root order
* set minimum size of the root from the max ascent descent of the
font. This is what TeX does.
* fix drawing, and in particular horizontal size.
More needs to be done, in particular:
* handle zooming and dpi correctly by removing hardcoded pixel values.
* factor the code for the two types of roots in one.
Jean-Marc Lasgouttes [Fri, 31 Mar 2017 14:56:06 +0000 (16:56 +0200)]
Work around bug in QTextLine::xToCursor
With RtL text, the method can be non-monotonic wrt x value (which is a
Qt bug). To work around this, we check whether positions adjacent to
those returned by xToCursor look better. Depending on whether the new
x position is too small or too large, we look backward or forward for
a better solution.
The performance is probably not great, but this is only needed for
user interactions, so the performance penalty should not be a problem.
Fixes #10569.
Jean-Marc Lasgouttes [Fri, 31 Mar 2017 14:51:02 +0000 (16:51 +0200)]
Model lyx_exit() to tell coverity what it does
Jean-Marc Lasgouttes [Fri, 31 Mar 2017 12:00:46 +0000 (14:00 +0200)]
Catch another exception
Spotted by coverity.
Jean-Marc Lasgouttes [Fri, 31 Mar 2017 11:59:29 +0000 (13:59 +0200)]
Play again with coverity annotation
The documentation is scarce and it is difficult to see what notation
is right.
Jean-Marc Lasgouttes [Fri, 31 Mar 2017 11:38:35 +0000 (13:38 +0200)]
Handle exception thrown by Buffer::emergencyWrite
Spotted by coverity
Jean-Marc Lasgouttes [Fri, 31 Mar 2017 09:47:47 +0000 (11:47 +0200)]
Replace coverity annotation by assertions
Jean-Marc Lasgouttes [Fri, 31 Mar 2017 09:38:30 +0000 (11:38 +0200)]
A better way to tell coverity that we do not care about result
Jean-Marc Lasgouttes [Fri, 31 Mar 2017 09:33:34 +0000 (11:33 +0200)]
When scanning CVS skip unreadable lines
Spotted by coverity.
Jean-Marc Lasgouttes [Fri, 31 Mar 2017 09:31:44 +0000 (11:31 +0200)]
Tell coverity that LAPPERR kills LyX too.
Jean-Marc Lasgouttes [Fri, 31 Mar 2017 09:23:28 +0000 (11:23 +0200)]
Followup to
e10db6c7 : handle InsetCitation too.
Jean-Marc Lasgouttes [Fri, 31 Mar 2017 09:16:08 +0000 (11:16 +0200)]
When destructing a workarea, ignore buffer exceptions
Spotted by coverity, but probably harmless.
Jean-Marc Lasgouttes [Mon, 27 Mar 2017 14:18:14 +0000 (16:18 +0200)]
Annotate destructors to please coverity
Coverity flags this code as not handling exception that may happen in buffer().
My own analysis is that this can never happen because isBufferValid()
does check whether buffer_ is null.
Any insght appreciated. The commit should be expeanded to more cases, actually.