]>
git.lyx.org Git - lyx.git/log
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.
Kornel Benko [Thu, 30 Mar 2017 12:01:56 +0000 (14:01 +0200)]
Cmake build: Project names *should* be uniq
José Matos [Wed, 29 Mar 2017 13:24:34 +0000 (14:24 +0100)]
Get the file system encoding from sys instead of the locale
José Matos [Wed, 29 Mar 2017 11:34:53 +0000 (12:34 +0100)]
lyx2lyx: convert iteritems -> items to be compatible with python 2 and 3
Jean-Marc Lasgouttes [Wed, 29 Mar 2017 10:03:57 +0000 (12:03 +0200)]
Missing initialization in
555338048
Thanks to coverity.
Jean-Marc Lasgouttes [Thu, 23 Jun 2016 17:45:10 +0000 (19:45 +0200)]
Add possibility for command inset to inherit enclosing font
The RenderButton object now has this property. It is set depending on
the value of inheritFont() method that is currently only set for
InsetRef, InsetBibtex and InsetCitation.
Fixes bug #10258
Enrico Forestieri [Tue, 28 Mar 2017 10:05:52 +0000 (12:05 +0200)]
Account for unicode chars in tempdir path on Windows
Jean-Marc Lasgouttes [Tue, 28 Mar 2017 09:41:27 +0000 (11:41 +0200)]
Limit multirow to 100 columns in mathed
Spotted by coverity, this avoids a blocking loop when parsing.
Jean-Marc Lasgouttes [Tue, 28 Mar 2017 09:30:18 +0000 (11:30 +0200)]
Make LFUN_REPEAT more robust by limiting to 10000 iterations
Jean-Marc Lasgouttes [Tue, 28 Mar 2017 09:17:35 +0000 (11:17 +0200)]
Limit the amount of derivatives in external CAS
The (arbitrary) limit is 1000.
Pointed out by coverity. A bad value could lock LyX.
Jean-Marc Lasgouttes [Tue, 28 Mar 2017 09:02:21 +0000 (11:02 +0200)]
Use convert instead of a stream to read LFUN_REPEAT count
At least coverity should find it safer.
Jean-Marc Lasgouttes [Tue, 28 Mar 2017 08:52:59 +0000 (10:52 +0200)]
Try a simpler way to tell coverity that we do not care about the result
Enrico Forestieri [Mon, 27 Mar 2017 23:32:59 +0000 (01:32 +0200)]
On windows, use the unicode version of ShellExecute
Jean-Marc Lasgouttes [Mon, 27 Mar 2017 15:43:18 +0000 (17:43 +0200)]
When running latex one needs to have a proper buffer
Calms down coverity
Jean-Marc Lasgouttes [Mon, 27 Mar 2017 14:08:22 +0000 (16:08 +0200)]
Handle properly exception that can be thrown by to_local8bit
Remove the use of this function in GuiAlert.
This was spotted by coverity
Enrico Forestieri [Mon, 27 Mar 2017 13:08:30 +0000 (15:08 +0200)]
Amend
16d5c49b
Remove redundant action when toggling the dashes check box.
Enrico Forestieri [Mon, 27 Mar 2017 13:00:43 +0000 (15:00 +0200)]
Fix #9732: Inconsistent font properties for the preview and superscript insets
José Matos [Mon, 27 Mar 2017 10:35:29 +0000 (11:35 +0100)]
lyx2lyx: fix #9006 (python3 with non-utf8 encoding as the system default)
This patch fixes lyx2lyx running on python 3 for those systems
where the default encoding is not UTF-8, since open by default
uses the default system encoding.
José Matos [Mon, 27 Mar 2017 10:26:58 +0000 (11:26 +0100)]
lyx2lyx: remove trailing whitespaces from lyx_1_6.py
José Matos [Mon, 27 Mar 2017 09:36:30 +0000 (10:36 +0100)]
lyx2lyx: more descriptive member name (document.start -> document.initial_format)
José Matos [Mon, 27 Mar 2017 09:16:31 +0000 (10:16 +0100)]
lyx2lyx: Cosmetic clean up of the lyx_2_?.py files.
Remove the duplicated \# -*- coding: utf-8 -*-
lines that show in the third line.
As far as I know they are not used, the first line though is used
by python and text editors (emacs, vi & co) to get the file encoding.
That will also work in the second lines (because of the shebang convention)
but not in other lines.
Remove trailing whitespaces.
Uwe Stöhr [Sun, 26 Mar 2017 22:04:25 +0000 (00:04 +0200)]
uk.po: translation update for master by Yuri
Juergen Spitzmueller [Sun, 26 Mar 2017 16:11:32 +0000 (18:11 +0200)]
de.po: improve a string
Juergen Spitzmueller [Sun, 26 Mar 2017 16:10:30 +0000 (18:10 +0200)]
Translate file filters for external material
Juergen Spitzmueller [Sun, 26 Mar 2017 15:56:47 +0000 (17:56 +0200)]
GuiExternal: use proper model/view separation and sort the templates
Juergen Spitzmueller [Sun, 26 Mar 2017 13:41:33 +0000 (15:41 +0200)]
de.po
Juergen Spitzmueller [Sun, 26 Mar 2017 13:32:01 +0000 (15:32 +0200)]
Split external_templates to individual *.xtemplate files
This makes it easier to add new templates or change existing ones
in the user directory.
Fixes: #3983
The CMake changes should be double-checked.
Kornel Benko [Sat, 25 Mar 2017 11:43:53 +0000 (12:43 +0100)]
Cmake build: Set cache variables correctly
In case of LYX_EXTERNAL_MYTHES==AUTO, the setting never made it into cache.
Jean-Marc Lasgouttes [Fri, 24 Mar 2017 15:44:14 +0000 (16:44 +0100)]
Fix coverity issues about exceptions
There a some exceptions related to the fact that BOOST_ASSERT throws
an unhandled exception, which is fait enough. This is handled by
uploading a modeling file to coverity.
The second batch of issues are related to the use of lexical_cast in
convert.cpp. We use now a wrapper around boost::lexical_cast that does
not throw but return empty strings instead. I am not sure actually of
when lexical_cast could fail.
Jean-Marc Lasgouttes [Fri, 24 Mar 2017 14:54:16 +0000 (15:54 +0100)]
Try alternative syntax for signaling false positive
Jean-Marc Lasgouttes [Fri, 24 Mar 2017 14:51:26 +0000 (15:51 +0100)]
Check return value of regex_match instead of looking at first match
Spotted by coverity.
Jean-Marc Lasgouttes [Fri, 24 Mar 2017 14:25:42 +0000 (15:25 +0100)]
Two places where coverity urges us to limit string length
These two issues make sense, but there are probably others.
Jean-Marc Lasgouttes [Fri, 24 Mar 2017 14:06:13 +0000 (15:06 +0100)]
Pass big parameters by address
Spotted by coverity.
Jean-Marc Lasgouttes [Thu, 17 Nov 2016 15:17:49 +0000 (16:17 +0100)]
Reduce horizontal spacing for simple inline equations
Jean-Marc Lasgouttes [Wed, 8 Feb 2017 15:42:14 +0000 (16:42 +0100)]
Linearize macros in box edit mode too.
The special mode used by macros where the macro name is displayed as
grey text in a box is now one of the possible marker types for any
inset. The new code puts the macro name below the text, which means
that only the text below the current line will be moved. This makes
edition much more comfortable. The grey border around the contents has
been removed too.
The marker_type enum has been moved from Inset to InsetMath. A
markerMargin() function returns the horizontal margin required on each
side for the marker. Only the corner-type markers MARKER and MARKER2
need some.
A new BOX_MARKER enum value has been added and is taken care of in
afterMetricsMarkers (renamed from metricsMarkerVertical) and
drawMarkers.
The InsetMath::marker() macro now takes a BufferView pointer as
argument, so that the marker type can depend on editing state.
MathRow::metrics now makes changes to the MathRow object when needed.
The specific metrics/draw code in MathMacro has been removed and
replaced by assertions. Code in addToMathRow and marker is adapted to
reflect the cases where linearization is possible.
Juergen Spitzmueller [Tue, 21 Mar 2017 09:24:31 +0000 (10:24 +0100)]
Correct FORMAT documentation
Enrico Forestieri [Mon, 20 Mar 2017 22:59:16 +0000 (23:59 +0100)]
Further amendment to
72a488d7
Rephrase positively the check box for the output of en- and em-dashes
and disable it when using non-TeX fonts. The state of the check box
is remembered, so that toggling the non-TeX fonts check box does not
cause information loss.
Jean-Marc Lasgouttes [Mon, 20 Mar 2017 14:03:09 +0000 (15:03 +0100)]
Fix compilation warning in DepTable.cpp
Enrico Forestieri [Mon, 20 Mar 2017 14:08:17 +0000 (15:08 +0100)]
Also account for development versions
Enrico Forestieri [Mon, 20 Mar 2017 13:37:25 +0000 (14:37 +0100)]
Amend
72a488d7
- Mention the new buffer parameter in development/FORMAT
- Assure that lyx2lyx generates the same output obtained when saving
a converted document from within lyx
- Don't require any action when converting a document created with
lyx 2.2 in order to assure unchanged output (thanks José for the hint)
Guillaume Munch [Sun, 19 Mar 2017 23:12:30 +0000 (00:12 +0100)]
Fix missing OutlinerName in simplecv
Enrico Forestieri [Sun, 19 Mar 2017 19:50:34 +0000 (20:50 +0100)]
Fix output of en- and em-dashes with TeX fonts
This commit fixes the regression introduced in 2.2 about the
output of en- and em-dashes. In 2.2 en- and em-dashes are output as
the \textendash and \textemdash macros when using TeX fonts, causing
changed output in old documents and also bugs (for example, #10490).
Now documents produced with older versions work again as intended,
while documents produced with 2.2 can be made to produce the exact
same output by simply checking "Don't use ligatures for en-and
em-dashes" in Document->Settings->Fonts.
When exporting documents using TeX fonts to earlier versions, in order
to avoid changed output, a zero-width space character is inserted after
each en/em-dash if dash ligatures are allowed. These characters are
removed when reloading documents with 2.3, so that they don't accumulate.
Juergen Spitzmueller [Sun, 19 Mar 2017 15:15:03 +0000 (16:15 +0100)]
Consider text-mode accents of the form {\v a} in BiblioInfo
Fixes #9340.
Guillaume Munch [Sun, 19 Mar 2017 13:41:54 +0000 (14:41 +0100)]
repair Cursor::x_target mechanism (#10168)
Guillaume Munch [Sun, 19 Mar 2017 13:41:54 +0000 (14:41 +0100)]
Regularly check if preview is modified when visible on screen
In case one cannot rely on QFileSystemWatcher.
Guillaume Munch [Sun, 19 Mar 2017 13:41:54 +0000 (14:41 +0100)]
Regularly check if graphics is modified when visible on screen (#10596)
In case one cannot rely on QFileSystemWatcher.
see https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg199112.html
Guillaume Munch [Sat, 18 Mar 2017 23:09:02 +0000 (00:09 +0100)]
Cosmetic
Guillaume Munch [Sat, 18 Mar 2017 23:06:40 +0000 (00:06 +0100)]
Ressurect old FileMonitor à la Frankenstein
ActiveFileMonitor combines QFileSystemWatcher with the previous checksum
approach.
Guillaume Munch [Sat, 18 Mar 2017 19:39:34 +0000 (20:39 +0100)]
Blocking signals also blocks the notification of file creation (#10595)
Guillaume Munch [Sat, 18 Mar 2017 19:37:55 +0000 (20:37 +0100)]
Correct ownership
One can now delete a file monitor if a blocker is active.
Juergen Spitzmueller [Sun, 19 Mar 2017 13:03:48 +0000 (14:03 +0100)]
Improve BibTeX name parsing #4
Handle name prefix (aka "von" part) as a separate entity, just like
BibTeX and Biblatex do. This allows to omit or reposition it in
accordance to the current style ("Goethe, Johann Wolfgang" or
"von Goethe, Johann Wolfgang" or "Goethe, Johann Wolfgang von" are all
valid and used).
LyX's name parser should now be on par with BibTeX's.
Juergen Spitzmueller [Sun, 19 Mar 2017 12:33:56 +0000 (13:33 +0100)]
Replace "junior" with the more generic term "suffix".
Juergen Spitzmueller [Sun, 19 Mar 2017 11:42:18 +0000 (12:42 +0100)]
Improve BibTeX name parsing #3
Correctly handle name suffix ("Jr.-part")
Juergen Spitzmueller [Sun, 19 Mar 2017 10:45:42 +0000 (11:45 +0100)]
Allow for simple conditions in name scheme.
I.e., only output a comma between last and first name if there is
a first name.
Juergen Spitzmueller [Sun, 19 Mar 2017 10:44:22 +0000 (11:44 +0100)]
Improve BibTeX name parsing #2
Also consider grouping when looking for name separators.
Cases such as {{Barnes and Noble, Inc.}} are now handled correctly.
Juergen Spitzmueller [Sun, 19 Mar 2017 10:41:33 +0000 (11:41 +0100)]
Improve BibTeX name parsing #1
Consider groupings of name parts via {...}
Scott Kostyshak [Tue, 7 Mar 2017 03:52:23 +0000 (22:52 -0500)]
Fix typo in comment
Juergen Spitzmueller [Sat, 18 Mar 2017 14:35:45 +0000 (15:35 +0100)]
Use "Prename Surname" format for basic numeric styles.
Guillaume Munch [Sat, 18 Mar 2017 14:08:20 +0000 (15:08 +0100)]
Clean up
Only keep one dynamic-cast. This fixes coverity warnings.
Juergen Spitzmueller [Sat, 18 Mar 2017 10:26:23 +0000 (11:26 +0100)]
Input stdciteformats to the cite engines directly
not to individual layouts.
Possibly fixes #10582
José Matos [Wed, 15 Mar 2017 10:06:30 +0000 (10:06 +0000)]
lyx2lyx: Remove UTF-8 BOM if present in the lyx file
Jean-Marc Lasgouttes [Tue, 14 Mar 2017 14:20:09 +0000 (15:20 +0100)]
Output debug message when creating bad length
Coverity is right to say that we should check the return value.
Jean-Marc Lasgouttes [Tue, 14 Mar 2017 13:46:02 +0000 (14:46 +0100)]
Another forgotten unreachable `return' that is not needed
The compilers we use now do not care, but coverity complains.
Jean-Marc Lasgouttes [Tue, 14 Mar 2017 13:26:26 +0000 (14:26 +0100)]
Fixup commit
50060053
Fix two instances where theFormats() was used instead of a local parameter.
Fix layout test.
Jean-Marc Lasgouttes [Mon, 13 Mar 2017 17:16:27 +0000 (18:16 +0100)]
Only accept non-negative lyxscale parameters
Since lyxscale is unsigned, a negative value would lead to a very
large positive value.
Spotted by coverity.