]>
git.lyx.org Git - features.git/log
Jean-Marc Lasgouttes [Fri, 11 Dec 2015 15:33:34 +0000 (16:33 +0100)]
Do not use a static variable as QTextLayout cache
It is a bad idea to have a QObject variable that oulives the main QApplication object. See for example:
https://www.ics.com/designpatterns/book/globals.html
Here the QTextLayout object was static to the anonymous namespace getTextLayout function, and got destroyed after the freetype renderer had been disposed of by QApplication.
This causes segmentation faults when quitting LyX on some systems.
This patch moves the cache together with other GuiFontMetrics caches. It means that one will have one such QTextLayout per font type, but this will not change much.
Kornel Benko [Wed, 16 Dec 2015 08:56:38 +0000 (09:56 +0100)]
Cmake export tests: Add missing failing tests
Scott Kostyshak [Mon, 14 Dec 2015 20:19:09 +0000 (15:19 -0500)]
Add stdspecialchars.inc to Makefile.am
This might fix 'make distcheck' (at least for me), which was failing
with a mysterious error message:
cannot remove ‘../../po/lyx.pot’: Permission denied
For discussion, see:
https://www.mail-archive.com/search?l=mid&q=
20151125075443 .GA7491%40cotopaxi.hsd1.dc.comcast.net
I write "might" because I have no idea why in theory it would. But
for whatever reason it worked when I tested.
Günter Milde [Tue, 15 Dec 2015 14:40:49 +0000 (15:40 +0100)]
Cmake export tests: really *move* Spanish tests.
Deleting patterns moved to "unreliableTests" from "suspiciousTests".
Also some sorting of the patterns in suspiciousTests is done.
Peter Kümmel [Tue, 15 Dec 2015 12:18:47 +0000 (13:18 +0100)]
fix build for 3rdparty dir out of src/
Peter Kümmel [Tue, 15 Dec 2015 12:10:18 +0000 (13:10 +0100)]
move 3rdparty dir out of src/
Peter Kümmel [Tue, 15 Dec 2015 12:08:48 +0000 (13:08 +0100)]
fix MinGW build on Windows
Peter Kümmel [Wed, 9 Dec 2015 20:38:45 +0000 (21:38 +0100)]
bundled iconv uses const
Peter Kümmel [Wed, 9 Dec 2015 19:48:27 +0000 (20:48 +0100)]
also build without gnuwin32 directory
Peter Kümmel [Wed, 9 Dec 2015 16:59:47 +0000 (17:59 +0100)]
build with msvc2013
Peter Kümmel [Wed, 9 Dec 2015 12:54:08 +0000 (13:54 +0100)]
integrate 3rdparty libs
Peter Kümmel [Wed, 9 Dec 2015 12:21:31 +0000 (13:21 +0100)]
improve mingw runtime detection
Peter Kümmel [Wed, 9 Dec 2015 12:17:30 +0000 (13:17 +0100)]
build zlib with cmake
Peter Kümmel [Wed, 9 Dec 2015 12:16:02 +0000 (13:16 +0100)]
add stripped down zlib 1.2.8
Peter Kümmel [Wed, 9 Dec 2015 09:11:10 +0000 (10:11 +0100)]
build libiconv with cmake
Peter Kümmel [Wed, 9 Dec 2015 08:14:03 +0000 (09:14 +0100)]
add stripped down libiconv 1.4
Peter Kümmel [Wed, 9 Dec 2015 07:31:52 +0000 (08:31 +0100)]
build hunspell with cmake
Peter Kümmel [Wed, 9 Dec 2015 07:31:06 +0000 (08:31 +0100)]
add stripped down hunspell 1.3.3
Günter Milde [Tue, 15 Dec 2015 07:30:25 +0000 (08:30 +0100)]
Remove/Resize invisible elements in ert-insert and cases icons.
The SVG contained a spurious invisible square that led to wrong size of
the exported PDF with Inkscape.
There are more problematic icons, see #9897.
Kornel Benko [Tue, 15 Dec 2015 07:10:52 +0000 (08:10 +0100)]
Cmake export tests: move spanish manuals tests for (xe|lua)latex and tex font to unreliableTests
Comment by Günter Milde:
Actually, *all* Spanish manuals either fail or have wrong output with
Unicode TeX engines and 8-bit fonts. The reason is known: a bug in Babel
that uses utf8 strings whenever Xe- or LuaTeX is detected.
Stephan Witt [Tue, 15 Dec 2015 00:24:31 +0000 (01:24 +0100)]
#9875 disable the modifier check for LFUN_SELF_INSERT on Mac
Stephan Witt [Tue, 15 Dec 2015 00:14:53 +0000 (01:14 +0100)]
#9875 add checks for having a current_view_ before using it
Stephan Witt [Mon, 30 Nov 2015 08:27:35 +0000 (09:27 +0100)]
adjust dictionary deployment comment
Günter Milde [Mon, 14 Dec 2015 22:53:39 +0000 (23:53 +0100)]
Force replacement for U2015 (horizontal bar/quotation dash).
Günter Milde [Mon, 14 Dec 2015 13:14:56 +0000 (14:14 +0100)]
Revert output format setting for Japanese manuals (pdf2 does not work).
The manuals use language "Japanese" wich is tied to "platex"
(automatically set instead of (plain) LaTeX).
For export with other engines, the language must be set to "Japanese (CJK).
For a discussion of alternatives for Japanese with LaTeX , see also
http://www.preining.info/blog/2014/12/writing-japanese-in-latex-part-1-introduction/
Kornel Benko [Mon, 14 Dec 2015 18:05:18 +0000 (19:05 +0100)]
Cmake export tests: Disable inputencoding setting
It was used for the combination pdf4_texF, but since LyX should
nowadays set the correct encoding, this is not needed anymore.
Kornel Benko [Mon, 14 Dec 2015 17:56:00 +0000 (18:56 +0100)]
Cmake export tests: Lualatex does not like bahasa language
Guillaume Munch [Mon, 14 Dec 2015 15:19:03 +0000 (15:19 +0000)]
Kornel Benko [Mon, 14 Dec 2015 00:44:15 +0000 (01:44 +0100)]
Update sk.po
Guillaume Munch [Wed, 18 Nov 2015 01:35:14 +0000 (01:35 +0000)]
Set AddToToc for custom insets
* Fixme
* Todonotes
* Literate programming (sweave, knitr)
* Theorems
Guillaume Munch [Tue, 3 Nov 2015 16:47:25 +0000 (11:47 -0500)]
Layout format update: AddToToc, IsTocCaption, OutlinerName
Preliminary work for addressing #7790. Thanks to Richard for providing initial
files this is based on.
Adding to TextClass:
OutlinerName <string> <string>
(the second string is translated)
e.g.:
OutlinerName thm "Definitions & Theorems"
Adding to Layout:
AddToToc <string> (default "", means no)
IsTocCaption <bool> (default 0)
e.g.:
AddToToc thm
IsTocCaption 1
Adding to InsetLayout:
AddToToc <string> (default "", means no)
IsTocCaption <bool> (default 0)
e.g.:
AddToToc literate
Adding to inset arguments:
IsTocCaption <bool> (default 0)
Kornel Benko [Sun, 13 Dec 2015 15:08:27 +0000 (16:08 +0100)]
Cmake build: Map '\origin unavailable' to appropriate value on install
For example for lib/doc.de/xyzzy.lyx the entry is changed to
\origin /systemlyxdir/doc/de/
Kornel Benko [Sun, 13 Dec 2015 11:31:43 +0000 (12:31 +0100)]
Cmake export tests: Handle default output format 'pdf2' in manuals like 'default'
This is, because almost all manuals are now having pdf2 as default.
Kornel Benko [Sun, 13 Dec 2015 11:30:44 +0000 (12:30 +0100)]
Cmake export tests: Add indonesian attic to suspended too
Kornel Benko [Sun, 13 Dec 2015 11:25:32 +0000 (12:25 +0100)]
\origin handling. Use realPath() intead of absFileName()
This change avoids misinterpreting paths containing symbolic parts.
Without this, lyx may not find its own sysdir.
Kornel Benko [Sun, 13 Dec 2015 10:49:31 +0000 (11:49 +0100)]
Cmake export tests: Correct handling of Indonesian Userguide
It was moved to attic in
98d7d8ba613171217e5fa3ca7f29c31b35349704
Richard Heck [Mon, 30 Nov 2015 22:25:03 +0000 (17:25 -0500)]
There does not appear to be any need to update the entire Buffer
after each entry into mathed. Instead, we just update the TOC for
anything the mathed happens to be inside.
Richard Heck [Thu, 26 Nov 2015 20:21:21 +0000 (15:21 -0500)]
Use the much faster forOutliner also to get the tooltip text.
Richard Heck [Sat, 12 Dec 2015 17:57:33 +0000 (12:57 -0500)]
Do not try even to hide buffers that are being processed by LyX.
Should fix #9711.
Richard Heck [Mon, 30 Nov 2015 03:24:55 +0000 (22:24 -0500)]
Simplify logic.
Uwe Stöhr [Sat, 12 Dec 2015 10:43:01 +0000 (11:43 +0100)]
Math.lyx: merge yesterday's changes
Please treat the doc files as frozen from now on, a an announcement how to proceed will follow later today.
Kornel Benko [Fri, 11 Dec 2015 22:23:46 +0000 (23:23 +0100)]
Cmake build: Use only real absolute path to the cmake sources.
This change resolves symlinks, so that lyx called from the buil-dir
always finds 'his' system dir.
Kornel Benko [Fri, 11 Dec 2015 19:57:29 +0000 (20:57 +0100)]
Probably a typo
Guillaume Munch [Thu, 10 Dec 2015 21:14:05 +0000 (21:14 +0000)]
Use AMS align instead of eqnarray on newline-insert by default (#2543)
Jean-Marc Lasgouttes [Thu, 3 Dec 2015 09:07:52 +0000 (10:07 +0100)]
Make text margin size dependent on zoom and dpi
The default hardcoded value of 10 corresponds to 2.5mm at 100dpi, but does not make much sense on a HiDpi screen.
Scott Kostyshak [Fri, 11 Dec 2015 11:10:00 +0000 (06:10 -0500)]
Document the IBus + Qt4 known issue (#9362)
Note that this issue does not occur with Qt5.
Scott Kostyshak [Fri, 11 Dec 2015 10:55:31 +0000 (05:55 -0500)]
RELEASE-NOTES: consistent style for bug references
"bug #0000" -> "#0000"
Scott Kostyshak [Fri, 11 Dec 2015 10:53:37 +0000 (05:53 -0500)]
RELEASE-NOTES: enforce 80-width lines
Jean-Marc Lasgouttes [Fri, 11 Dec 2015 09:31:46 +0000 (10:31 +0100)]
Autotools: use -Wno-deprecated-declarations also with --disable-warnings
-Wno-deprecated-declarations is needed to avoid warnings about auto_ptr being obsolete.
The old code meant that the warnings would be suppressed for development builds, but active for release builds. The new code avoids that.
Enrico Forestieri [Fri, 11 Dec 2015 07:51:37 +0000 (08:51 +0100)]
Fix bug #9898: inset info cannot show specified icon
Uwe Stöhr [Fri, 11 Dec 2015 00:02:00 +0000 (01:02 +0100)]
German Intro.lyx: remove info
be consistent with the other Intro files; this info does not belong here
Uwe Stöhr [Thu, 10 Dec 2015 23:58:26 +0000 (00:58 +0100)]
EmbeddedObjects.lyx: replace images by inset info
Uwe Stöhr [Thu, 10 Dec 2015 23:49:02 +0000 (00:49 +0100)]
Indonesian Userguide: move untranslated file to attic
Uwe Stöhr [Thu, 10 Dec 2015 23:26:22 +0000 (00:26 +0100)]
PDF-comment.lyx: set default output format
also save the file with latest LyX 2.2git
Georg Baum [Thu, 10 Dec 2015 19:21:20 +0000 (20:21 +0100)]
Fix crash in info inset dialog apply (bug 9896)
posBackward() is the exact inverse of posForward(), not backwardPos().
Kornel Benko [Thu, 10 Dec 2015 14:20:07 +0000 (15:20 +0100)]
Cmake export tests: Handle attic files with now missing references to png graphics
Kornel Benko [Thu, 10 Dec 2015 12:24:59 +0000 (13:24 +0100)]
Replace now invalid png graphics with the svgz graphics
Günter Milde [Thu, 10 Dec 2015 09:40:50 +0000 (10:40 +0100)]
Set default output format for manuals to PDF (pdflatex).
Pdflatex is the recommended export tool for the manuals.
Pdflatex brings the best results for hyperlinking.
Some features (e.g. rotated text) are not available in DVI or PS (dvips).
This does not affect export from command line or autotests
(where this setting is ignored and the format must aways be given explicitely).
Uwe Stöhr [Thu, 10 Dec 2015 00:24:04 +0000 (01:24 +0100)]
CMakeLists.txt: fix whitespace
Uwe Stöhr [Thu, 10 Dec 2015 00:15:16 +0000 (01:15 +0100)]
Inset files: add includes to compile with cxx11
see the list thread "Re: use FindCXX11Compiler.cmake also for MSVC"
Uwe Stöhr [Wed, 9 Dec 2015 23:37:54 +0000 (00:37 +0100)]
UserGuide.lyx: use some info-inset icons
Uwe Stöhr [Wed, 9 Dec 2015 23:27:13 +0000 (00:27 +0100)]
Math.lyx: use some icon-info insets
Jean-Marc Lasgouttes [Fri, 27 Nov 2015 10:50:26 +0000 (11:50 +0100)]
When counting hfills, make sure that they are active
The active/inactive status of hfills was not checked in numberOfHFills.
The code is reorganized a bit, but the important part is the change in the above function.
Part of bug #9870.
Peter Kümmel [Wed, 9 Dec 2015 15:44:42 +0000 (16:44 +0100)]
now we have MSVC13 3rdparty binaries
Peter Kümmel [Wed, 9 Dec 2015 15:20:54 +0000 (16:20 +0100)]
qtmain also needed for Qt5 on Windows
Kornel Benko [Wed, 9 Dec 2015 14:37:58 +0000 (15:37 +0100)]
Cmake build: Initialize some variables before use.
Jean-Marc Lasgouttes [Mon, 7 Dec 2015 09:32:34 +0000 (10:32 +0100)]
Remember the last used QTextLayout object
This crude caching mecanism is useful in the particular case of a screen with many misspelling dotted lines. In this case, it is necessary to build a QTextLayout in order to know where to put the start/end of the spell line. Since rows typically contains text snippets longer than a word, we may be in a situation where the same QTextLayout is constructed repeatedly.
This commit is useful in this particular use case, and should not be costly in other cases. A better fix would be to remember the QTextLayout associated to each row element. This is a bit more work, so this fix should be sufficient for now.
Additionally, do not paint misspelled marks when painting is disabled.
Fixes bug #9890.
Günter Milde [Wed, 9 Dec 2015 08:54:25 +0000 (09:54 +0100)]
Structure export autotest documentation.
Günter Milde [Wed, 9 Dec 2015 07:54:38 +0000 (08:54 +0100)]
Set default output for "complex" manuals to PDF (pdflatex).
This is the "design format" for the manuals. Some features do not
work in other formats.
See http://permalink.gmane.org/gmane.editors.lyx.devel/158616
Uwe Stöhr [Wed, 9 Dec 2015 01:30:38 +0000 (02:30 +0100)]
Math.lyx: image adjustments
the font size is 12 pt so the icons can have this size too; besides this readability is ore important than to fit in a text line
Uwe Stöhr [Wed, 9 Dec 2015 01:22:48 +0000 (02:22 +0100)]
Japanese UserGuide.lyx: make document compilable without PNGs
also some small corrections and adjustments
Uwe Stöhr [Wed, 9 Dec 2015 01:13:04 +0000 (02:13 +0100)]
UserGuide.lyx: remove some unnecessary TeX code
Uwe Stöhr [Wed, 9 Dec 2015 01:11:40 +0000 (02:11 +0100)]
French UserGuide.lyx: make document compilable without PNGs
also store default output format and other small corrections and adjustments
Uwe Stöhr [Wed, 9 Dec 2015 00:56:10 +0000 (01:56 +0100)]
German UserGuide.lyx: make document compilable without PNGs
also store default output format and many other small corrections and adjustments
Uwe Stöhr [Wed, 9 Dec 2015 00:31:53 +0000 (01:31 +0100)]
English UserGuide.lyx: make document compilable without PNGs
also store default output format
Uwe Stöhr [Wed, 9 Dec 2015 00:25:57 +0000 (01:25 +0100)]
Spanish UserGuide.lyx: make document compilable without PNGs
Kornel Benko [Tue, 8 Dec 2015 17:29:12 +0000 (18:29 +0100)]
Wrong regex
Günter Milde [Tue, 8 Dec 2015 16:42:20 +0000 (17:42 +0100)]
Make Math.lyx compilable again.
After removing "unneded" PNG files from the repo, this manual failed.
Skaling is done to ensure that the icons are approximately one M high.
Also, the default output is set to PDF (pdflatex) as this is said to be the export
format our manuals are designed for.
Günter Milde [Tue, 8 Dec 2015 16:40:15 +0000 (17:40 +0100)]
seminar.sty works also with non-TeX fonts but requires Babel.
Always-Babel now set in the example document.
Adapted the autotest categorization:
* fails for some developers (why?)
* wrong output with pdflatex/LuaTeX and DVI (missing landscape slides).
Richard Heck [Tue, 8 Dec 2015 15:41:22 +0000 (10:41 -0500)]
Fix typo.
Scott Kostyshak [Tue, 8 Dec 2015 06:33:41 +0000 (01:33 -0500)]
Explain why we do not update the local layout
We do not update the local layout of our .lyx files because users
would then not be able to export to older formats. For example, if a
2.2.0 user exported a template to 2.1.x format and tried to open the
file in LyX 2.1.x, there would be an error because the file would
contain a local layout whose format is too new. The root reason for
this is that we do not convert layouts to older layout formats.
Uwe Stöhr [Tue, 8 Dec 2015 00:40:48 +0000 (01:40 +0100)]
build5.bat: explicitly set QT5
Uwe Stöhr [Tue, 8 Dec 2015 00:23:54 +0000 (01:23 +0100)]
build5.bat: a script to compile with Qt5 on Windows
This script shows how i compile. If we figured out every corner cases with it it should become the standard build script for Windows
Jean-Marc Lasgouttes [Mon, 7 Dec 2015 21:51:36 +0000 (22:51 +0100)]
Fix syntax error whe testing old compilers
Georg Baum [Mon, 7 Dec 2015 20:17:33 +0000 (21:17 +0100)]
Explain why rsvg_convert is in front of inkscape
Otherwise it could easily happen that the order is changed, since rsvg_convert
seems to be more picky about invalid files (see http://www.lyx.org/trac/ticket/9891)
Kornel Benko [Mon, 7 Dec 2015 18:30:48 +0000 (19:30 +0100)]
Cmake export tests: Mark seminar dvi3 exports as creating wrong output
Enrico Forestieri [Mon, 7 Dec 2015 18:14:44 +0000 (19:14 +0100)]
Remove unneeded png images.
Fixes #9857.
Günter Milde [Mon, 7 Dec 2015 16:57:55 +0000 (17:57 +0100)]
splash.lyx: avoid bitmap fonts if possible.
Günter Milde [Mon, 7 Dec 2015 16:56:43 +0000 (17:56 +0100)]
ctest export test documentation update
Günter Milde [Mon, 7 Dec 2015 16:55:53 +0000 (17:55 +0100)]
Add note explaining the need for a final clearpage.
Jean-Marc Lasgouttes [Fri, 4 Dec 2015 22:26:16 +0000 (23:26 +0100)]
Detect properly when cursor position cannot be computed
Replace old ad-hoc test by a better one that inspects the coordcache to see whether all the insets in the cursor are known.
Fixes bug #9881.
Scott Kostyshak [Mon, 7 Dec 2015 07:02:04 +0000 (02:02 -0500)]
Fix a debug comment
Scott Kostyshak [Mon, 7 Dec 2015 03:43:36 +0000 (22:43 -0500)]
Revert "InsetFootlike.cpp: disable listings inside footnotes"
Although
af8ba5e0 fixed #9321, it broke a valid use case that was
reported by a user at #9785. Hopefully we can come up with a better
fix for #9321.
This reverts commit
af8ba5e0696c0e1989effe4179c990a054bc06df .
Richard Heck [Sun, 6 Dec 2015 20:45:44 +0000 (15:45 -0500)]
Changes to theorems-named.module that fix #8796.
Günter Milde [Sun, 6 Dec 2015 20:21:46 +0000 (21:21 +0100)]
ctest automatic tests: small correcions to pattern files and documenation.
Günter Milde [Sun, 6 Dec 2015 20:18:03 +0000 (21:18 +0100)]
Greek manuals: Avoid dependency on Latin Modern fonts.
Georg Baum [Sun, 6 Dec 2015 19:48:48 +0000 (20:48 +0100)]
Make languagenesting1.lyx less TeX dependent
The previous version did only fail because I did not have latin support for
polyglossia in my TeX installation, the LyX export was fine.
Georg Baum [Sun, 6 Dec 2015 19:04:21 +0000 (20:04 +0100)]
Use std::regex automatically in C++11 mode
This is consistent with autotools. The only exception is MSVC, since we do not
know yet whether it works.
Georg Baum [Sun, 6 Dec 2015 17:51:58 +0000 (18:51 +0100)]
This languagenesting1.lyx fails with 2.1
Add some stuff to languagenesting1.lyx that makes it fail with LyX 2.1 (and
2.2 as well)
Enrico Forestieri [Sun, 6 Dec 2015 17:33:17 +0000 (18:33 +0100)]
Update it.po