]> git.lyx.org Git - features.git/log
features.git
8 years agoInitial commit of a file for plans of future tests
Scott Kostyshak [Sat, 31 Oct 2015 06:07:05 +0000 (02:07 -0400)]
Initial commit of a file for plans of future tests

The TestsToDo file will contain ideas for tests that we would like
to implement in the future.

8 years agoDocument various ways to run the tex2lyx tests
Scott Kostyshak [Sat, 31 Oct 2015 04:30:34 +0000 (00:30 -0400)]
Document various ways to run the tex2lyx tests

Each way might be preferred by a different developer and the more
ways that can be described of running the tests, the higher the
chance is that developers will find a way that works well for them.

8 years agoCmake tests: Display process while executing for target updatetex2lyxtests
Kornel Benko [Fri, 30 Oct 2015 12:28:20 +0000 (13:28 +0100)]
Cmake tests: Display process while executing for target updatetex2lyxtests

The execution took some time and the messages were delayed
until all test files were processed. Now as each testfile
is processed, the appropriate messages are printed.

There is also a new target: cleanupdatetex2lyxtests
It is the same as updatetex2lyxtests, but removes also
some extra created files from the source directory.

8 years agoctests: invert Math.lyx tests failing from mhchem
Scott Kostyshak [Fri, 30 Oct 2015 06:43:36 +0000 (02:43 -0400)]
ctests: invert Math.lyx tests failing from mhchem

The math document now depends on the mhchem package which produces
wrong output with XeTeX/LuaTeX and both TeX fonts and non-TeX fonts

See:
https://www.mail-archive.com/search?l=mid&q=n0sne9%24iis%241%40ger.gmane.org

8 years agoDocument why tests are enabled for all formats
Scott Kostyshak [Fri, 30 Oct 2015 02:48:28 +0000 (22:48 -0400)]
Document why tests are enabled for all formats

Explain why the export tests are enabled for formats that are not
expected to work well with certain document classes, modules, or
packages. The reason is that if a .lyx file goes from compiling
successfully for one format (even if that format is not officially
supported for the combination of features used), if that document
suddenly fails to compile, there is a significant chance that a bug
was introduced in LyX. In other words, there is a high signal/noise
ratio. If it is determined that a test is failing because an
expected incompatibility is exposed, then the test can be inverted.

8 years agoMore updates for the documentation on tests
Scott Kostyshak [Fri, 30 Oct 2015 02:11:11 +0000 (22:11 -0400)]
More updates for the documentation on tests

- general cleanup
- add some more useful commands
- specify how to configure the URL tests

Thanks to Kornel for the helpful suggestions.

8 years agoDocument how to run tests on windows
Georg Baum [Thu, 29 Oct 2015 21:20:37 +0000 (22:20 +0100)]
Document how to run tests on windows

8 years agoAdd "LyX Documentation Tools" toolbar
Georg Baum [Thu, 29 Oct 2015 19:02:52 +0000 (20:02 +0100)]
Add "LyX Documentation Tools" toolbar

People working on the documentation do probably want to switch this on. It
gives easy access to LyX and LaTeX logos (bug 9626), and the info and menu
separator insets.

8 years agoCmake tests: Remove the use of file(TIMESTAMP...)
Kornel Benko [Thu, 29 Oct 2015 10:07:34 +0000 (11:07 +0100)]
Cmake tests: Remove the use of file(TIMESTAMP...)

Cmake versions prior to 2.8.11 don't know this command, but
our minimal requirenment is 2.6.4

Thank to Vincent, it is replaced by using 'if(file1 IS_NEWER_THAN file2)' comparision.

8 years agoDisable "Show Output Anyway" button if empty file
Scott Kostyshak [Thu, 29 Oct 2015 02:51:24 +0000 (22:51 -0400)]
Disable "Show Output Anyway" button if empty file

Sometimes when compilation fails a PDF file is created but is empty
and the viewer gives an error when trying to view it. One such
example is compiling the current lib/examples/PDF-comment.lyx file
with TeX fonts and the following version of LuaTeX:

  beta-0.80.0 (TeX Live 2015) (rev 5238)

8 years agoDocument the export tests and other tests
Scott Kostyshak [Thu, 29 Oct 2015 06:24:20 +0000 (02:24 -0400)]
Document the export tests and other tests

The export tests, check_load tests, and URL tests are now documented
in the Development.lyx file. The export tests are described in
detail, such as how to run them and how to interpret the results.

8 years agoUpdate format
Scott Kostyshak [Wed, 28 Oct 2015 22:10:09 +0000 (18:10 -0400)]
Update format

8 years agocmake: Properly suppress CMake warning about qtmain
Vincent van Ravesteijn [Wed, 28 Oct 2015 19:19:49 +0000 (20:19 +0100)]
cmake: Properly suppress CMake warning about qtmain

CMake policy CMP0020 exists since version 2.8.11, so this prevents an
error on older versions.

This fixes up commit ec6f51b.

8 years agoCmake tests: Get rid of use of command 'env', which is not available under Windows.
Kornel Benko [Wed, 28 Oct 2015 16:59:28 +0000 (17:59 +0100)]
Cmake tests: Get rid of use of command 'env', which is not available under Windows.

8 years agoctests: comment for why the Russian docs fail
Scott Kostyshak [Wed, 28 Oct 2015 14:52:52 +0000 (10:52 -0400)]
ctests: comment for why the Russian docs fail

The LuaTeX non-TeX font tests fail because of LyX's preamble (the
part regarding hyperref), as explained by Günter.

8 years agoJustify row correctly after double space
Jean-Marc Lasgouttes [Wed, 28 Oct 2015 12:58:11 +0000 (13:58 +0100)]
Justify row correctly after double space

The wordSpacing property of a QFont object applies only once when there are multiple spaces between words. Therefore Row::Element::countSeparators shall not count spaces, but groups of spaces.

Fixes bug #9808.

8 years agoFix #9770 (unicodesymbols for wasysym)
Günter Milde [Wed, 28 Oct 2015 10:34:13 +0000 (11:34 +0100)]
Fix #9770 (unicodesymbols for wasysym)

8 years agoFix painting of selection with change tracking
Jean-Marc Lasgouttes [Wed, 28 Oct 2015 09:29:48 +0000 (10:29 +0100)]
Fix painting of selection with change tracking

When partially selecting an element, the selected text color was not
the same as when selecting it completely.

Fixes bug #9809.

8 years agoClarify the FIXME for PDF-info encoding.
Günter Milde [Wed, 28 Oct 2015 09:31:08 +0000 (10:31 +0100)]
Clarify the FIXME for PDF-info encoding.

8 years agoUpdate the FIXME for PDF-info encoding.
Günter Milde [Wed, 28 Oct 2015 09:15:31 +0000 (10:15 +0100)]
Update the FIXME for PDF-info encoding.

8 years agoupdate documentation in lib/languages
Günter Milde [Mon, 26 Oct 2015 15:40:53 +0000 (16:40 +0100)]
update documentation in lib/languages

8 years agostdmenus.inc: resolve a shortcut conflict
Uwe Stöhr [Wed, 28 Oct 2015 01:42:16 +0000 (02:42 +0100)]
stdmenus.inc: resolve a shortcut conflict

8 years agomoderncv.layout: update some styles and add new ones
Uwe Stöhr [Wed, 28 Oct 2015 01:27:32 +0000 (02:27 +0100)]
moderncv.layout: update some styles and add new ones

- support for at least modernCV 1.5 (layout will still work with moderncv 1.3 as before)
- fileformat change

8 years agoMake language nesting code more readable
Georg Baum [Tue, 27 Oct 2015 21:36:52 +0000 (22:36 +0100)]
Make language nesting code more readable

This is a tiny simplification that makes understanding the code more easy and
will help in fixing the remaining regressions. The logic remains the same, no
export test result is changed.

8 years agoFORMAT: fix a typo and add an info
Uwe Stöhr [Mon, 26 Oct 2015 23:30:26 +0000 (00:30 +0100)]
FORMAT: fix a typo and add an info

8 years agomodernCV.lyx: remove more preamble code
Uwe Stöhr [Mon, 26 Oct 2015 14:30:15 +0000 (15:30 +0100)]
modernCV.lyx: remove more preamble code

- add description how things can be adjusted the LyX way

8 years agomodernCV.lyx: remove unnecessary preamble code
Uwe Stöhr [Mon, 26 Oct 2015 13:36:50 +0000 (14:36 +0100)]
modernCV.lyx: remove unnecessary preamble code

- also add 2 hints

8 years agoFix commit 32edb659
Jean-Marc Lasgouttes [Mon, 26 Oct 2015 10:38:01 +0000 (11:38 +0100)]
Fix commit 32edb659

A bad test meant an embarassing red line on the left.

This is still bug #9807.

8 years agomoderncv.layout: updates
Uwe Stöhr [Mon, 26 Oct 2015 02:42:33 +0000 (03:42 +0100)]
moderncv.layout: updates

- suffix.sty is no longer used, hyperref and color are included and basic LaTeX
- fix 2 Argument definitions

8 years agocolored-boxes.lyx: more small fixes and improvements
Uwe Stöhr [Mon, 26 Oct 2015 02:15:47 +0000 (03:15 +0100)]
colored-boxes.lyx: more small fixes and improvements

8 years agomodernCV: updates
Uwe Stöhr [Mon, 26 Oct 2015 01:53:29 +0000 (02:53 +0100)]
modernCV: updates

- modernCV requires 2 new packages (since version 1.5 from 2013)
- update the example file to reflect the new features

8 years agocolored-boxes.lyx: some fixes
Uwe Stöhr [Mon, 26 Oct 2015 00:20:29 +0000 (01:20 +0100)]
colored-boxes.lyx: some fixes

8 years agoFix the partial patch for #9740 (XeTeX with TeX fonts), part 2.
Günter Milde [Sun, 25 Oct 2015 23:51:38 +0000 (00:51 +0100)]
Fix the partial patch for #9740 (XeTeX with TeX fonts), part 2.

8 years agoAvoid showing vertical scroll mark when not necessary
Jean-Marc Lasgouttes [Sun, 25 Oct 2015 22:58:58 +0000 (23:58 +0100)]
Avoid showing vertical scroll mark when not necessary

Now the mark if only shown when editable text is outside of the row.

Fixes bug #9807.

8 years agoMath.lyx: replace tables by formal ones - part 5
Uwe Stöhr [Sun, 25 Oct 2015 22:36:46 +0000 (23:36 +0100)]
Math.lyx: replace tables by formal ones - part 5

8 years agoEmbeddedObjects.lyx: remove an outdated info
Uwe Stöhr [Sun, 25 Oct 2015 22:02:03 +0000 (23:02 +0100)]
EmbeddedObjects.lyx: remove an outdated info

the mentioned varioref bug was fixed 5 years ago

8 years agoMath.lyx: replace tables by formal ones - part 4
Uwe Stöhr [Sun, 25 Oct 2015 17:34:47 +0000 (18:34 +0100)]
Math.lyx: replace tables by formal ones - part 4

- also add changelog file for the translators

8 years agoCmake export tests: Unintended removal of 'main' corrected
Kornel Benko [Sun, 25 Oct 2015 17:31:45 +0000 (18:31 +0100)]
Cmake export tests: Unintended removal of 'main' corrected

8 years agoCmake export tests: Use 'Dejavu' as non-tex font for Russian and Ukrainian docs
Kornel Benko [Sun, 25 Oct 2015 17:23:31 +0000 (18:23 +0100)]
Cmake export tests: Use 'Dejavu' as non-tex font for Russian and Ukrainian docs

Thanks to Guenter Milde

8 years agoMerge branch 'master' of git.lyx.org:lyx
Kornel Benko [Sun, 25 Oct 2015 15:29:11 +0000 (16:29 +0100)]
Merge branch 'master' of git.lyx.org:lyx

8 years agoMath.lyx: replace tables by formal ones - part 3
Uwe Stöhr [Sun, 25 Oct 2015 15:26:02 +0000 (16:26 +0100)]
Math.lyx: replace tables by formal ones - part 3

8 years agoCmake tests: Combine "text" field to extract translators name
Kornel Benko [Sun, 25 Oct 2015 15:23:59 +0000 (16:23 +0100)]
Cmake tests: Combine "text" field to extract translators name

While extracting names of a translator from the html page it can happen
that the perl's HTML::Parser module splits the "text".

8 years agoMath.lyx: replace tables by formal ones - part 2
Uwe Stöhr [Sun, 25 Oct 2015 14:48:45 +0000 (15:48 +0100)]
Math.lyx: replace tables by formal ones - part 2

8 years agoMath.lyx: correct images paths now correctly
Uwe Stöhr [Sun, 25 Oct 2015 13:32:27 +0000 (14:32 +0100)]
Math.lyx: correct images paths now correctly

8 years agoFix the partial patch for #9740 (XeTeX with TeX fonts).
Günter Milde [Sun, 25 Oct 2015 10:20:43 +0000 (11:20 +0100)]
Fix the partial patch for #9740 (XeTeX with TeX fonts).

8 years agoCmake test: Cmake tests: Check for consistency between po-files and lyx-trunk transla...
Kornel Benko [Sun, 25 Oct 2015 10:18:30 +0000 (11:18 +0100)]
Cmake test: Cmake tests: Check for consistency between po-files and lyx-trunk translations page.

This time with the correct CMakeLists.txt.

8 years agoRevert "Cmake tests: Check for consistency between po-files and lyx-trunk translation...
Kornel Benko [Sun, 25 Oct 2015 10:17:02 +0000 (11:17 +0100)]
Revert "Cmake tests: Check for consistency between po-files and lyx-trunk translations page."

This reverts commit 0a4fbe4836f6a34cb4b44e25b8b3ef097bb65126.

8 years agoCmake tests: Check for consistency between po-files and lyx-trunk translations page.
Kornel Benko [Sun, 25 Oct 2015 10:10:14 +0000 (11:10 +0100)]
Cmake tests: Check for consistency between po-files and lyx-trunk translations page.

8 years agoAdd toolbar icons for LyX documentation
Georg Baum [Sun, 25 Oct 2015 09:47:40 +0000 (10:47 +0100)]
Add toolbar icons for LyX documentation

These icons are for lfuns that are not very interesting for users, but quite
often used when working on the LyX documentation. Now we can create a special
LyX documentation toolbar.

8 years agoInvert some ctests that correctly fail
Scott Kostyshak [Sun, 25 Oct 2015 03:37:33 +0000 (23:37 -0400)]
Invert some ctests that correctly fail

These exports correctly fail now that we've switched to polyglossia.
Although they compiled without error with babel, the resulting PDFs
had gibberish.

8 years agoctests: uninvert tests that were fixed by updates
Scott Kostyshak [Sat, 24 Oct 2015 19:34:02 +0000 (15:34 -0400)]
ctests: uninvert tests that were fixed by updates

I believe these tests were fixed by TeX Live updates.

Comparing the log files for a system where the tests fail with a
system where the tests pass, below are some of the differences
between the "good" and "bad" logs:

bad:
LaTeX2e <2015/01/01>
Babel <3.9l>
Package: fontspec 2015/03/14 v2.4c
Package: expl3 2015/03/01 v5547 L3 programming layer

good:
LaTeX2e <2015/01/01> patch level 2
Babel <3.9m>
Package: fontspec 2015/07/22 v2.4d
Package: expl3 2015/07/30 v5724 L3 programming layer

8 years agoFix polyglossia exports for docs with babel cmds
Scott Kostyshak [Fri, 23 Oct 2015 22:11:19 +0000 (18:11 -0400)]
Fix polyglossia exports for docs with babel cmds

Many of our documents have babel-specific preamble code. By putting
this code in a \@ifpackageloaded{babel}{}{} conditional, XeTeX and
LuaTeX compilation with polyglossia now works. This fixes some
LuaTeX tests that were broken by edd37de8 and also allows us to
uninvert some XeTeX tests.

Note that in some of the files although the preambles were fixed to
allow for polyglossia, they still do not compile without errors:
es/Math.lyx
es/Customization.lyx
de/Customization.lyx

Similar fixes might be desired in other manuals but these at least
fix regressions in the tests.

8 years agoctests: uninvert some tests
Scott Kostyshak [Sat, 24 Oct 2015 07:13:12 +0000 (03:13 -0400)]
ctests: uninvert some tests

These tests were accidentally removed from the inverted list at
b2e49892.

8 years agoctests: uninvert some XeTeX tests that are fixed
Scott Kostyshak [Sat, 24 Oct 2015 06:51:15 +0000 (02:51 -0400)]
ctests: uninvert some XeTeX tests that are fixed

These tests were probably fixed with the recent fixes regarding
polyglossia by Jürgen and Georg.

8 years agoCorrect PolyglossiaOpts for Serbian
Scott Kostyshak [Sat, 24 Oct 2015 06:30:03 +0000 (02:30 -0400)]
Correct PolyglossiaOpts for Serbian

PolyglossiaOpts are case-sensitive so "latin" must be changed to
"Latin". Without this change, compiling examples/sr/Braille.lyx
with LuaTeX and system fonts gives the following error:

  Package Polyglossia Error: Unknown script `latin' for Serbian
  language

8 years agoctests: invert a test for a file recently added
Scott Kostyshak [Sat, 24 Oct 2015 06:00:12 +0000 (02:00 -0400)]
ctests: invert a test for a file recently added

The H-P-statements example was recently introduced (a610e29c) and
the LuaTeX test with system fonts has never passed.

8 years agoFix export with polyglossia and uninvert a manual
Scott Kostyshak [Sat, 24 Oct 2015 04:57:08 +0000 (00:57 -0400)]
Fix export with polyglossia and uninvert a manual

8 years agoUse "babel only" for some Spanish manuals
Scott Kostyshak [Sat, 24 Oct 2015 04:45:49 +0000 (00:45 -0400)]
Use "babel only" for some Spanish manuals

Many of our Spanish documents use babel-specific features in the
documents, e.g. to write "sin" in Spanish ("sen"). Because babel
seems to have good support for Spanish, I am setting the "Always
babel" for the manuals.

This fixes several LuaTeX tests with non-TeX fonts. A XeTeX test is
also reverted accordingly.

8 years agoctests: uninvert a XeTeX test that now passes
Scott Kostyshak [Sat, 24 Oct 2015 05:07:12 +0000 (01:07 -0400)]
ctests: uninvert a XeTeX test that now passes

This test was probably fixed with the recent fixes regarding
polyglossia by Jürgen and Georg.

8 years agoUpdate formats
Scott Kostyshak [Sat, 24 Oct 2015 00:28:15 +0000 (20:28 -0400)]
Update formats

Some of my following commits will make changes to these files
(mainly just changing the preambles). This commit simply updates the
format so the diffs of the following commits are easy to read.

8 years agoMath.lyx: repair broken paths
Uwe Stöhr [Sun, 25 Oct 2015 03:37:00 +0000 (04:37 +0100)]
Math.lyx: repair broken paths

this is caused by bug #9815

8 years agoMath.lyx: replace tables by formal ones - part 1
Uwe Stöhr [Sun, 25 Oct 2015 03:08:46 +0000 (04:08 +0100)]
Math.lyx: replace tables by formal ones - part 1

8 years agoWin installer: 2 fixes for the uninstaller
Uwe Stöhr [Sun, 25 Oct 2015 00:51:02 +0000 (02:51 +0200)]
Win installer: 2 fixes for the uninstaller

8 years agoFix a missing-braces warning for initialization of subobject
Stephan Witt [Sat, 24 Oct 2015 19:10:36 +0000 (21:10 +0200)]
Fix a missing-braces warning for initialization of subobject

8 years agoFor Mac OS: Additional check for Control and Meta modifier swap state.
Stephan Witt [Sat, 24 Oct 2015 19:03:01 +0000 (21:03 +0200)]
For Mac OS: Additional check for Control and Meta modifier swap state.
Starting with Qt 5 the modifiers aren't reported correctly for disabled swap.
Until this is fixed it is corrected by reverting the modifier mask to check for.

8 years agoNew configure options for Qt 5.6
Stephan Witt [Sat, 24 Oct 2015 18:48:08 +0000 (20:48 +0200)]
New configure options for Qt 5.6

8 years agoUpdate boost to version 1.59
Peter Kümmel [Sat, 24 Oct 2015 10:44:31 +0000 (12:44 +0200)]
Update boost to version 1.59

8 years agouse bash
Peter Kümmel [Sat, 24 Oct 2015 10:39:51 +0000 (12:39 +0200)]
use bash

8 years agoRevert the box alignment part of 8010b90c
Georg Baum [Fri, 23 Oct 2015 20:08:38 +0000 (22:08 +0200)]
Revert the box alignment part of 8010b90c

The horizontal alignment changes caused a regression for documents in older
formats. This could have been fixed by adding the following lines to the
format entry for 489 in development/FORMAT:

Previously, the horizontal position was ignored except for the
following parameter combinations:
- fixed width and type Boxed and without inner box
- fixed width and any type   and with    inner box and with makebox
Now, it is also used for the parameter combination below:
- makebox is not used and not (type Boxed and without inner box)

and a corresponding conversion to convert_BoxFeatures() in
lib/lyx2lyx/lyx_2_2.py. However, it was decided to revert the box alignment
changes instead: The box alignment can contradict the paragraph alignment. A
better way to avoid the additional space that can be created by paragraph
alignment (which was the motivation for implementing box alignment) is the
same as for table cells (see noTrivlistCentering() in src/Paragraph.cpp).
This would be a file format change and it is too late now for 2.2.0.

See http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg188147.html for the
complete discussion (subject "Regression in lyx2lyx box alignment").

8 years agoSuppress CMake warning about qtmain
Peter Kümmel [Fri, 23 Oct 2015 14:59:31 +0000 (16:59 +0200)]
Suppress CMake warning about qtmain

8 years agoAlso cross compile with Qt5
Peter Kümmel [Fri, 23 Oct 2015 13:36:39 +0000 (15:36 +0200)]
Also cross compile with Qt5

Assume Ubuntu pathes for mingw.

8 years agoRemove linebreak after GCC version string
Peter Kümmel [Fri, 23 Oct 2015 13:20:32 +0000 (15:20 +0200)]
Remove linebreak after GCC version string

8 years agoRemove hard coded Qt selection when cross compiling for Windows
Peter Kümmel [Fri, 23 Oct 2015 13:14:09 +0000 (15:14 +0200)]
Remove hard coded Qt selection when cross compiling for Windows

8 years agoInsetMathNest.cpp: add \sideset to the autocomplete list
Uwe Stöhr [Fri, 23 Oct 2015 03:20:51 +0000 (05:20 +0200)]
InsetMathNest.cpp: add \sideset to the autocomplete list

fixes bug #9810

8 years agocolored-boxes.lyx: add info about shadows
Uwe Stöhr [Fri, 23 Oct 2015 03:17:24 +0000 (05:17 +0200)]
colored-boxes.lyx: add info about shadows

- also some fixes and improvements

8 years agocolored-boxes.lyx: 2 fixes
Uwe Stöhr [Fri, 23 Oct 2015 01:34:25 +0000 (03:34 +0200)]
colored-boxes.lyx: 2 fixes

8 years agojss.layout: update appearance of 2 styles in LyX
Uwe Stöhr [Fri, 23 Oct 2015 00:20:02 +0000 (02:20 +0200)]
jss.layout: update appearance of 2 styles in LyX

This was proposed by the co-author of the layout in bug#9516

8 years agoAdd suggestion for test cases by Günter
Georg Baum [Thu, 22 Oct 2015 20:21:25 +0000 (22:21 +0200)]
Add suggestion for test cases by Günter

8 years agoAmend bb344452
Guillaume Munch [Wed, 21 Oct 2015 14:02:12 +0000 (15:02 +0100)]
Amend bb344452

Repair the senseless truncation on long file names

8 years agomsvc: Proper fix for compilation of TexRow
Guillaume Munch [Tue, 20 Oct 2015 17:18:28 +0000 (19:18 +0200)]
msvc: Proper fix for compilation of TexRow

This bug in MSVC 10 was fixed at e948caf6, but the workaround belongs to
strfwd.h.

Thanks Vincent and Georg.

8 years agomsvc: Move implementation of numpunct<> functions to cpp file
Vincent van Ravesteijn [Tue, 20 Oct 2015 19:23:01 +0000 (21:23 +0200)]
msvc: Move implementation of numpunct<> functions to cpp file

These functions use lyx::from_ascii which means they need to include
docstring.h, but that results in a circular include.

8 years agoRevert "msvc: Fix compilation of TexRow"
Vincent van Ravesteijn [Tue, 20 Oct 2015 17:19:31 +0000 (19:19 +0200)]
Revert "msvc: Fix compilation of TexRow"

This reverts commit 10d7f6d479b05cf101173a8ab036676482b7c251.

8 years agoPartial fix for #9740 "XeTeX/LuaTeX with TeX fonts problems".
Günter Milde [Tue, 20 Oct 2015 17:14:39 +0000 (19:14 +0200)]
Partial fix for #9740 "XeTeX/LuaTeX with TeX fonts problems".

Fixes output for 3 of the 4 test lyx-files.

Includes "FIXME"s at places where further action is required to get the XeTeX
export right but I don't know how.

8 years agoAmend bb344452
Guillaume Munch [Tue, 20 Oct 2015 15:11:31 +0000 (16:11 +0100)]
Amend bb344452

8 years agoUpdate the fileformat number in the tex2lyx test's expected output.
Günter Milde [Tue, 20 Oct 2015 15:09:54 +0000 (17:09 +0200)]
Update the fileformat number in the tex2lyx test's expected output.

This needs to be done with every fileformat change!

8 years agoAssorted cppcheck fixes
Jean-Marc Lasgouttes [Mon, 14 Sep 2015 19:12:16 +0000 (21:12 +0200)]
Assorted cppcheck fixes

Remove member disp_ that is defined both in Cursor and CursorData classes

Pass parameter of convert<T>(docstring const) templates as const reference for performance.

8 years agoRELEASE-NOTES: Missing characters could be in pdf2
Scott Kostyshak [Tue, 20 Oct 2015 02:57:27 +0000 (22:57 -0400)]
RELEASE-NOTES: Missing characters could be in pdf2

The fix at 664ef2c4 is more general than XeTeX and LuaTeX. See, for
example, #9803 which shows an error that existed but was not
reported before.

8 years agoTexRow: fix return value on invalid row input.
Guillaume Munch [Mon, 19 Oct 2015 23:51:27 +0000 (00:51 +0100)]
TexRow: fix return value on invalid row input.

Caused loops with Sweave & Knittr compilation.

8 years agochkconfig.ltx: fix typos
Uwe Stöhr [Mon, 19 Oct 2015 23:10:14 +0000 (01:10 +0200)]
chkconfig.ltx: fix typos

thanks Vincent

8 years agoMath.lyx: fix bug #9803
Uwe Stöhr [Mon, 19 Oct 2015 21:57:34 +0000 (23:57 +0200)]
Math.lyx: fix bug #9803

\mathscr cannot contain small letters
thanks Günther

8 years agomsvc: Fix compilation of TexRow
Vincent van Ravesteijn [Mon, 19 Oct 2015 19:25:26 +0000 (21:25 +0200)]
msvc: Fix compilation of TexRow

The problem was that "odocstringstream << (const char *) ptr" did not
compile using msvc.

8 years agoFix language nesting regression
Georg Baum [Mon, 19 Oct 2015 19:08:01 +0000 (21:08 +0200)]
Fix language nesting regression

b1c68dccf8f and 46aed6d2b90 fixed some language nesting issues, but introduced
a regression for the case that there is a standard paragraph in a foreign
language, followed by a list (e.g. itemize) in the same language, followed
by the end of the document, as e.g. in lib/doc/de/Additional.lyx. The reason
for this was that not all language ending commands did reset
state->open_polyglossia_lang_ correctly.
I am sure that one can still construct broken corner cases, and I am also sure
that this was already possible before b1c68dccf8f and 46aed6d2b90. However,
this fix seems to fix the most important issues, and to get nesting completely
correct we would probably need some stack-like structure, for languages and
encodings, also for the CJK part (which is not touched at all by this commit).

8 years agoMath.lyx: update because bug #8566 was fixed long time ago
Uwe Stöhr [Mon, 19 Oct 2015 16:51:29 +0000 (18:51 +0200)]
Math.lyx: update because bug #8566 was fixed long time ago

- also adjust the scaling of 2 images

8 years agoFix #9764, combining diacritical characters for line below (part 2).
Günter Milde [Mon, 19 Oct 2015 16:30:27 +0000 (18:30 +0200)]
Fix #9764, combining diacritical characters for line below (part 2).

The correct mappings break the tex2lyx roundtrip tests because both,
the tests and tex2lyx use the wrong mapping (\b for "combining minus below").

Fix tex2lyx and the test files so that round-trip tests pass again.

8 years agoFix #9764, combining diacritical characters for line below (part 1).
Günter Milde [Mon, 19 Oct 2015 16:26:22 +0000 (18:26 +0200)]
Fix #9764, combining diacritical characters for line below (part 1).

Correct mappings in lib/unicodesymbols (see #9764 for details).

8 years agoFix #9792 cyrtext and textcyr in the preamble of every document.
Günter Milde [Mon, 19 Oct 2015 16:21:59 +0000 (18:21 +0200)]
Fix  #9792 cyrtext and textcyr in the preamble of every document.

Add the brackets missing in [468cedb923b/lyxgit].

8 years agocmake: Put updatetex2lyxtests in an appropriate folder
Vincent van Ravesteijn [Mon, 19 Oct 2015 15:50:59 +0000 (17:50 +0200)]
cmake: Put updatetex2lyxtests in an appropriate folder

8 years agoFix drawing with pixmap cache
Jean-Marc Lasgouttes [Mon, 19 Oct 2015 14:34:04 +0000 (16:34 +0200)]
Fix drawing with pixmap cache

The culprit was that the computation of textwidth did not take wordspacing in account.

Also fictor the code so that the pixmap path can use the special RTL handling.

It is not clear however that the handling of left and right bearing works correctly.

8 years agoGet rid of ParagraphMetrics::insetDimension
Jean-Marc Lasgouttes [Mon, 12 Oct 2015 14:11:58 +0000 (16:11 +0200)]
Get rid of ParagraphMetrics::insetDimension

We already have a CoordCache of insets dimensions. It is not necessary
to store the same information in two places.

Give a name to CoordCache tables types to improve code readability.

Remove ParagraphMetrics::singleWidth, which is not used anymore.

8 years agoctests: invert sys font tests of colored-boxes.lyx
Scott Kostyshak [Mon, 19 Oct 2015 05:55:36 +0000 (01:55 -0400)]
ctests: invert sys font tests of colored-boxes.lyx

This example file was just committed and the system font tests do
not pass because of the user preamble code.