]> git.lyx.org Git - lyx.git/log
lyx.git
7 years agolib/unicodesymbols tests: split 2-page test and fix missing command.
Günter Milde [Thu, 15 Sep 2016 16:15:07 +0000 (18:15 +0200)]
lib/unicodesymbols tests: split 2-page test and fix missing command.

7 years agoctests: Test dedicated LaTeX test samples with LaTeX export only.
Günter Milde [Thu, 15 Sep 2016 15:17:34 +0000 (17:17 +0200)]
ctests: Test dedicated LaTeX test samples with LaTeX export only.

Move them to a subdir, ignore this subdir for other tests.

Dedicated test samples for LaTeX-specific problems don't give additional value if tested for loading, conversion, or other exports.

7 years agoReally fix the problem with not updated macros
Enrico Forestieri [Thu, 15 Sep 2016 00:39:30 +0000 (02:39 +0200)]
Really fix the problem with not updated macros

Revert to the strategy used at 8f86ee74 but not using mathedWordList
because it may be still uninitialized at load time. Instead, use the
globalMacros method for getting the same info.
There was a thinko at 8ec91e80, because globalMacros always returns
null for user defined macros.

7 years agoSet window title before stting modified state
Jean-Marc Lasgouttes [Wed, 14 Sep 2016 20:33:56 +0000 (22:33 +0200)]
Set window title before stting modified state

Fixes message "QWidget::setWindowModified: The window title does not
contain a '[*]' placeholder" when opening a non-existent file.

7 years agolib/unicodesymbols tests and fixes.
Günter Milde [Wed, 14 Sep 2016 20:06:11 +0000 (22:06 +0200)]
lib/unicodesymbols tests and fixes.

Blocks Box Drawing, Block Elements, Geometric Shapes.

7 years agoMove wrap check for simple search/replace to lyxfind
Juergen Spitzmueller [Wed, 14 Sep 2016 08:23:39 +0000 (10:23 +0200)]
Move wrap check for simple search/replace to lyxfind

This gets rid of some dirty dispatch tricks and fixes wrap-around
on replace and in the spellchecker

Fixes: #10378
7 years agoPartly revert the bits of 8f86ee74 that are not necessary anymore after 8ec91e80
Enrico Forestieri [Wed, 14 Sep 2016 00:51:56 +0000 (02:51 +0200)]
Partly revert the bits of 8f86ee74 that are not necessary anymore after 8ec91e80

7 years agoMake sure not to use a pointer that may be bogus
Enrico Forestieri [Wed, 14 Sep 2016 00:27:18 +0000 (02:27 +0200)]
Make sure not to use a pointer that may be bogus

It may happen that mathedWordList is not still updated at load time,
so we would still be using a bogus pointer. Better fetching the
necessary info from the global macro table.

7 years agotex2lyx: Remove "textglobfall" hack.
Günter Milde [Tue, 13 Sep 2016 20:23:53 +0000 (22:23 +0200)]
tex2lyx: Remove "textglobfall" hack.

tex2lyx tests for TIPA (test-inset-*) resulted in {End} in ERT after fixing lib/unicodesymbols.
Should be fine now.

7 years agolib/unicodetests: add test samples for Blocks 77-79
Günter Milde [Tue, 13 Sep 2016 20:18:22 +0000 (22:18 +0200)]
lib/unicodetests: add test samples for Blocks 77-79

7 years agolib/unicodesymbols tests and fixes
Günter Milde [Tue, 13 Sep 2016 20:08:24 +0000 (22:08 +0200)]
lib/unicodesymbols tests and fixes

* Test blocks Mathematical Symbols, Miscellaneous Technical, Control Pictures
* fix Fahrenheit symbol
* add force=utf8 where required

7 years agoRemove pattern for tests that failed due to stale config files.
Günter Milde [Mon, 12 Sep 2016 16:08:53 +0000 (18:08 +0200)]
Remove pattern for tests that failed due to stale config files.

7 years agoMake sure that math macros are updated at export time.
Enrico Forestieri [Tue, 13 Sep 2016 05:53:48 +0000 (07:53 +0200)]
Make sure that math macros are updated at export time.

The math macros system is quite complex. Macros are updated during
metrics calculation, so a missing update is very likely to cause a
crash. This commit tries to assure that they are updated at export
time, which also happens when the table of contents is updated.
Moreover, in order to circumvent a possible missing update, when
a math macro is detected we try to avoid using the sym_ member
of the MacroData class, as it may contain bogus values.

7 years agotex2lyx test: make box-color-*.tex sample compilable
Günter Milde [Mon, 12 Sep 2016 09:44:45 +0000 (11:44 +0200)]
tex2lyx test: make box-color-*.tex sample compilable

Load required package textcomp.
Replace call to non-existent packages textcyr and textgreek with the backup definition of the commands as done by LyX export.
Do not load marvosym (clash with pifont) (LyX does not load the package either).
Remove invalid command \\ascii.

7 years agolib/unicodesymbols fixes
Günter Milde [Mon, 12 Sep 2016 09:39:59 +0000 (11:39 +0200)]
lib/unicodesymbols fixes

"vdots" fails in text mode, if "mathdots" is loaded.

package "ascii": remove invalid command "\\ascii", let LyX terminate commands

7 years agoCmake build: Shuffle code around.
Kornel Benko [Mon, 12 Sep 2016 09:04:14 +0000 (11:04 +0200)]
Cmake build: Shuffle code around.

7 years agoEnsure consistency
Enrico Forestieri [Mon, 12 Sep 2016 05:55:38 +0000 (07:55 +0200)]
Ensure consistency

On export, a macro defined in ERT (or not defined at all) is left
in the same environment it is entered. So, don't explicitly insert
it in an ensuremath environment when it is entered in a textmode one.

7 years agoMake sure a pointer is valid before using it
Enrico Forestieri [Mon, 12 Sep 2016 03:15:00 +0000 (05:15 +0200)]
Make sure a pointer is valid before using it

7 years agoUpdate tex2lyx test reference after 754cb3d1
Scott Kostyshak [Sun, 11 Sep 2016 21:50:31 +0000 (17:50 -0400)]
Update tex2lyx test reference after 754cb3d1

From Günter [1]:

  the difference is the textcommand for ETB which changed from
  {\ascii\ETB} to

  0x21a8 "\\ETB"                    "ascii" "force=utf8" # UP DOWN
  ARROW WITH BASE

  because the former resulted in

  l.513 \ascii
              \ETB{}
  ! Undefined control sequence.

[1]
https://www.mail-archive.com/search?l=mid&q=nr48qn%242gb%241%40blaine.gmane.org

7 years agoFix compilation of ja/EmbeddedObjects.lyx
Scott Kostyshak [Sun, 11 Sep 2016 13:38:52 +0000 (09:38 -0400)]
Fix compilation of ja/EmbeddedObjects.lyx

sidecap does not work well for some reason with the Japanese doc, so
the sidecap bool is set to false to restore compilation.

The following test now passes:

export/doc/ja/EmbeddedObjects_pdf3

7 years agoCmake build: Add qt-svg-lib to be linked with lyx if used QT4.
Kornel Benko [Sun, 11 Sep 2016 13:34:58 +0000 (15:34 +0200)]
Cmake build: Add qt-svg-lib to be linked with lyx if used QT4.

Probably due to commit 82808fe, there were undefined references
such as e.g. QSvgRenderer::~QSvgRenderer().

7 years agoTest and fix lib/unicodesymbols for Letterlike Symbols, Number Forms and Arrows blocks.
Günter Milde [Sat, 10 Sep 2016 20:43:57 +0000 (22:43 +0200)]
Test and fix lib/unicodesymbols for Letterlike Symbols, Number Forms and Arrows blocks.

7 years agoFix display and export of some latex macros
Enrico Forestieri [Sat, 10 Sep 2016 16:32:44 +0000 (18:32 +0200)]
Fix display and export of some latex macros

Fixes #9742.

7 years agoFix bug #9616
Enrico Forestieri [Sat, 10 Sep 2016 11:36:45 +0000 (13:36 +0200)]
Fix bug #9616

7 years agoctests: samples for lib/unicodesymbols
Günter Milde [Sat, 10 Sep 2016 10:34:06 +0000 (12:34 +0200)]
ctests: samples for lib/unicodesymbols

Unocode Blocks <= 72

7 years agoFix export of Unicode characters (Unicode blocks <=72)
Günter Milde [Sat, 10 Sep 2016 08:50:06 +0000 (10:50 +0200)]
Fix export of Unicode characters (Unicode blocks <=72)

Fix problems revealed by hand-compiling an examining the test samples in autotests/export/Unicode-characters/:

* new definitions
* fixed definitions
* "force=utf8" when required
* some IPA symbols fail without the "extraipa" package
* fix direction of "textcommaaboveright"

7 years agoctests: samples for lib/unicodesymbols: only test export to 8-bit LaTeX.
Günter Milde [Sat, 10 Sep 2016 08:40:40 +0000 (10:40 +0200)]
ctests: samples for lib/unicodesymbols: only test export to 8-bit LaTeX.

7 years agoctests: Move tests failing only with newest luatex to unreliableTests.
Günter Milde [Sat, 10 Sep 2016 08:10:28 +0000 (10:10 +0200)]
ctests: Move tests failing only with newest luatex to unreliableTests.

7 years agoMinor amendment to b95262f48772
Juergen Spitzmueller [Sat, 10 Sep 2016 08:32:40 +0000 (10:32 +0200)]
Minor amendment to b95262f48772

Just for consistency.

7 years agoAvoid duplicating mode changing commands
Enrico Forestieri [Sat, 10 Sep 2016 00:39:57 +0000 (02:39 +0200)]
Avoid duplicating mode changing commands

7 years agoEnsure proper mode in mathed
Enrico Forestieri [Sat, 10 Sep 2016 00:07:47 +0000 (02:07 +0200)]
Ensure proper mode in mathed

A math-mode command entered in a text-mode environment is wrapped
in an ensuremath inset, as well as a text-mode command entered in a
math-mode environment is wrapped in a text inset. Who doesn't like
the extra insets can always dissolve them and rely on the wrapping
performed on export.

7 years agoTest and fix lib/unicodesymbols for Latin, Greek, and Cyrillic.
Günter Milde [Thu, 8 Sep 2016 21:21:33 +0000 (23:21 +0200)]
Test and fix lib/unicodesymbols for Latin, Greek, and Cyrillic.

7 years agoMath definitions of Greek symbol variants for lib/unicodesymbols
Günter Milde [Thu, 8 Sep 2016 19:10:49 +0000 (21:10 +0200)]
Math definitions of Greek symbol variants for lib/unicodesymbols

+ test sample for Greek and Coptic Unicode block

7 years agoFix data loss with [ in first cell of aligned
Georg Baum [Thu, 8 Sep 2016 20:38:33 +0000 (22:38 +0200)]
Fix data loss with [ in first cell of aligned

If the first character in the first cell of an aligned math environment is
'[', and the environment does not use top or bottom vertical alignment,
then LyX did write the '[' unprotected so that it got misinterpreted as
optional argument, both when reading the .lyx file in LyX and when reading
the .tex file in LaTeX => data loss!
The fix is to output an empty optional argument in this case, which is
interpreted as default alignment both by LyX and LaTeX. It would also be
possible to output \[ in the first cell instead, but this would be more
difficult to implement.

7 years agoPrepare for mutlicolumn lines
Georg Baum [Thu, 8 Sep 2016 20:01:22 +0000 (22:01 +0200)]
Prepare for mutlicolumn lines

The \multicolumn command allows to set vertical lines for individual rows.
These are not yet displayed, but if they are supported one day, the code in
a27ff13663 needs to be adjusted. This change hints at the adjustment.

7 years agoSet vertical lines in math arrays correctly on Y axis
Jean-Marc Lasgouttes [Mon, 5 Sep 2016 09:29:44 +0000 (11:29 +0200)]
Set vertical lines in math arrays correctly on Y axis

This is a fixup to commit 39329935. The two fixes are
* add forgotten offset `y' when drawing the line
* in order to have a continuous vertical line, draw from the offset of
  the previous row.

Fixes bug #10363.

7 years agoSet window title according to platform UI
Jean-Marc Lasgouttes [Tue, 6 Sep 2016 09:17:10 +0000 (11:17 +0200)]
Set window title according to platform UI

The window title is built from the current file name and its
mofidication state. We use our own code instead of the automatic title
bar provided when windowFileName() is set because

1/ Qt does not keep the full path name
2/ Qt does not yield a nice application name

The "read only" and "version control" status are shown in the status bar:

* for read only we use the tab read only emblem (with the right size)
* for version control, we show the name of the backend (using a new
  vcname() method of the backend).

The iconText() of the view is not updated anymore, since this is
deprecated in Qt5.

7 years agoSanitize Ref dialog validation.
Juergen Spitzmueller [Thu, 8 Sep 2016 13:04:58 +0000 (15:04 +0200)]
Sanitize Ref dialog validation.

Fixes: #10376
7 years agoUpdate docs wrt Separator
Juergen Spitzmueller [Thu, 8 Sep 2016 08:29:21 +0000 (10:29 +0200)]
Update docs wrt Separator

7 years agopartly Revert "fr/UserGuide: remove spurious language switch in an index inset."
Uwe Stöhr [Wed, 7 Sep 2016 22:52:45 +0000 (00:52 +0200)]
partly Revert "fr/UserGuide: remove spurious language switch in an index inset."

Please fix at first the versions in branch since this is the working copy delivered with LyX.
Also please keep the fileformat unless you need to document a new feature that requires a new fileformat.

7 years agoctests: More inversions
Günter Milde [Wed, 7 Sep 2016 21:22:14 +0000 (23:22 +0200)]
ctests: More inversions

* Polyglossia + LuaTeX + \verb bug with Cyrillic and Greek
* PDF(LuaTeX) Intro.lyx (reports png without bounding box)

7 years agoctests: one more languagenesting sample
Günter Milde [Tue, 6 Sep 2016 21:06:34 +0000 (23:06 +0200)]
ctests: one more languagenesting sample

7 years agofr/UserGuide: remove spurious language switch in an index inset.
Günter Milde [Tue, 6 Sep 2016 19:42:06 +0000 (21:42 +0200)]
fr/UserGuide: remove spurious language switch in an index inset.

This led to errors when compiling with polyglossia (and non-TeX fonts).
A minimal (currently non-compiling) test sample is kept in autotests/export/
and inverted in suspiciousTests.

7 years agoctests: edit test sample for bug #10371
Günter Milde [Tue, 6 Sep 2016 18:35:45 +0000 (20:35 +0200)]
ctests: edit test sample for bug #10371

7 years agoFix compilation of attic/id_UserGuide.lyx
Scott Kostyshak [Wed, 7 Sep 2016 18:49:15 +0000 (14:49 -0400)]
Fix compilation of attic/id_UserGuide.lyx

Change an ERT \bf{ to \textbf{.

Consistent with e.g. 0e49231b.

7 years agoid_UserGuide: Update LyX format for next commit
Scott Kostyshak [Wed, 7 Sep 2016 18:47:09 +0000 (14:47 -0400)]
id_UserGuide: Update LyX format for next commit

7 years agoctests: "nonstandard" tests are now listed in unreliableTests
Günter Milde [Tue, 6 Sep 2016 14:46:27 +0000 (16:46 +0200)]
ctests: "nonstandard" tests are now listed in unreliableTests

... under the sublabel "nonstandard".

7 years agominor edit of development guide
Günter Milde [Tue, 6 Sep 2016 14:44:36 +0000 (16:44 +0200)]
minor edit of development guide

7 years agoctests: invert tests due to Polyglossia + LuaTeX + verb bug with Cyrillic
Günter Milde [Tue, 6 Sep 2016 14:43:41 +0000 (16:43 +0200)]
ctests: invert tests due to Polyglossia + LuaTeX + verb bug with Cyrillic

7 years agoRemove duplicate context menu item
Juergen Spitzmueller [Tue, 6 Sep 2016 11:15:55 +0000 (13:15 +0200)]
Remove duplicate context menu item

Fixes: #10368
7 years agoinstaller: major third-party updates
Uwe Stöhr [Mon, 5 Sep 2016 21:40:43 +0000 (23:40 +0200)]
installer: major third-party updates

7 years agoAdd xlsx format
Georg Baum [Mon, 5 Sep 2016 20:52:38 +0000 (22:52 +0200)]
Add xlsx format

We do already have docx, but xlsx was missing. This is a separate format
because of the MIME type. nd because some users might need converters which
can only handle one format. Now the spreadsheet template does not hide the
fact anymore that it can deal with xlsx files as well.

7 years agoFix filter filter regex
Georg Baum [Mon, 5 Sep 2016 20:49:59 +0000 (22:49 +0200)]
Fix filter filter regex

Now the external material file dialog shows the file types defined in the
template again. Before this fix it did only show "All files (*)".
I don't know what the old syntax was supposed to do or whether it ever worked
with boost::regex, but with std::regex the new one is correct.

7 years agoAmend commit e194c9ce279
Jean-Marc Lasgouttes [Mon, 5 Sep 2016 09:04:11 +0000 (11:04 +0200)]
Amend commit e194c9ce279

As noted in the log, this commit was a bit radical and needs some
adjustments (which was expected, actually).

Let InsetText do their own background drawing.

Fixes bug #10359.

7 years agoAmend 97b9e81ceef7aae
Juergen Spitzmueller [Sun, 4 Sep 2016 15:44:47 +0000 (17:44 +0200)]
Amend 97b9e81ceef7aae

\@ifundefined is an If-Then-ELSE construct.

7 years agoFrench doc files: port last changes to master
Uwe Stöhr [Sat, 3 Sep 2016 20:19:46 +0000 (22:19 +0200)]
French doc files: port last changes to master

7 years agoRemove English traces in IPA inset that make XeTeX fail.
Juergen Spitzmueller [Sat, 3 Sep 2016 14:57:43 +0000 (16:57 +0200)]
Remove English traces in IPA inset that make XeTeX fail.

7 years agoctests: xy package has issue with newest LuaTeX
Scott Kostyshak [Sat, 3 Sep 2016 01:21:36 +0000 (21:21 -0400)]
ctests: xy package has issue with newest LuaTeX

LuaTeX export of docs with xy package are now marked as having TeX
issues. Hopefully these will be fixed in a TL package update.

7 years agoExit with error if child exits with error (#10188)
Scott Kostyshak [Fri, 2 Sep 2016 21:10:41 +0000 (17:10 -0400)]
Exit with error if child exits with error (#10188)

Before, it could have been the case that

  lyx -e pdf2 file.lyx

had exit code 0 even though file.lyx includes a file that exits with
error. If compiled in the GUI a warning was given, but from the
command line exit code it would seem there was no problem. The exit
code for this case is now non-zero and the word "Warning" is now
removed from the message because it should be treated as an error.

An exception is thrown from InsetInclude and is caught in
Buffer::makeLaTeXFile() and added to the error list.

The (similar) use case at #8840 is also fixed by this commit.

7 years agoctests: ignore obsolete aastex.cls
Scott Kostyshak [Fri, 2 Sep 2016 15:25:35 +0000 (11:25 -0400)]
ctests: ignore obsolete aastex.cls

aastex.cls is obsolete and replaced by aastex6.cls.

This is consistent with how we treat the obsolete latex8.sty.

7 years agoctests: mark failing LyXHTML tests as "lyxbugs"
Scott Kostyshak [Fri, 2 Sep 2016 03:26:03 +0000 (23:26 -0400)]
ctests: mark failing LyXHTML tests as "lyxbugs"

For more information, see #10355.

7 years agoctests: uninvert three tests
Scott Kostyshak [Fri, 2 Sep 2016 02:56:11 +0000 (22:56 -0400)]
ctests: uninvert three tests

These exports now succeed, and manual inspection of the output
confirms there are no obvious problem.

7 years agohe/splash.lyx: mark \LaTeX{} insets as English
Scott Kostyshak [Thu, 1 Sep 2016 21:37:30 +0000 (17:37 -0400)]
he/splash.lyx: mark \LaTeX{} insets as English

This makes sure they're output in the correct direction, consistent
with the previous commit (although this does not change the exit
code of the export).

For more details, see:
https://www.mail-archive.com/search?l=mid&q=20160828233923.guhveaqxdxh356nm%40steph

7 years agohe/splash.lyx: fix compilation
Scott Kostyshak [Thu, 1 Sep 2016 21:32:16 +0000 (17:32 -0400)]
he/splash.lyx: fix compilation

We need to mark the LyX inset as English to avoid "missing glyph"
errors.

For more details, see:
https://www.mail-archive.com/search?l=mid&q=20160828233923.guhveaqxdxh356nm%40steph

7 years agoctests: update tests to reflect lualatex fixes
Scott Kostyshak [Thu, 1 Sep 2016 21:12:09 +0000 (17:12 -0400)]
ctests: update tests to reflect lualatex fixes

europeCV and modernCV examples can now be exported to PDF using
LuaTeX. For the specific output that was fixed, look at the diff and
see the description in suspiciousTests that was removed by this
commit. The output was checked manually and appears fine. These
tests are thus "uninverted".

Exporting those examples to DVI with LuaTeX does not exit with
error, but the output drops characters with accents. Thus, these
tests are now marked with the "wrong_output" label. I reported this
issue on the LuaTeX mailing list at [1], but since DVI export is not
given high priority, I don't expect much action.

Note that these changes reflect an updated TeX Live 2016
installation.

[1]
https://www.mail-archive.com/search?l=mid&q=20160831134006.4fewxothddqfeyw4%40steph

7 years agoRemove unused 'glue' parameter
Jean-Marc Lasgouttes [Tue, 30 Aug 2016 15:20:21 +0000 (17:20 +0200)]
Remove unused 'glue' parameter

It was probably useful at some time, but not now.

7 years agoRemove unused struct members
Jean-Marc Lasgouttes [Tue, 30 Aug 2016 15:06:13 +0000 (17:06 +0200)]
Remove unused struct members

Interestingly, cppcheck detected that they were not initialized (see
8a047a41), but not that they were unused.

7 years agoImprove status check of LFUN_BUFFER_ZOOM_{OUT,IN}
Scott Kostyshak [Tue, 19 Jul 2016 05:44:39 +0000 (01:44 -0400)]
Improve status check of LFUN_BUFFER_ZOOM_{OUT,IN}

buffer-zoom-out can actually zoom in (by giving a positive number as
the argument), so it should only be disabled at the minimum zoom
level if it is indeed zooming out.

Similarly, buffer-zoom-in can zoom out, so it should be disabled if
the user is at the minimum zoom and it is called to zoom out.

This commit amends 8884c404.

7 years agoCmake build: Add format V2.2 to export tests
Kornel Benko [Mon, 29 Aug 2016 16:14:37 +0000 (18:14 +0200)]
Cmake build: Add format V2.2 to export tests

7 years agoAmend b583fb26e89
Jean-Marc Lasgouttes [Mon, 29 Aug 2016 10:03:33 +0000 (12:03 +0200)]
Amend b583fb26e89

It failed in the case where a selection already existed (the anchor would be wrongly reset).

7 years agoAmend previous commit, 0e49231b
Scott Kostyshak [Mon, 29 Aug 2016 00:08:40 +0000 (20:08 -0400)]
Amend previous commit, 0e49231b

Thanks to Guillaume.

7 years agoConvert deprecated '\rm' to '\textrm' in examples
Scott Kostyshak [Sun, 28 Aug 2016 23:12:20 +0000 (19:12 -0400)]
Convert deprecated '\rm' to '\textrm' in examples

This change fixes the export of our FeynmanDiagrams.lyx example
files on the latest TeX Live 2016.

The IJMP(C|D).lyx examples compiled before the change but might as
well convert these instances of '\rm' also.

The changes were made with the help of the following command:

  find ./ -iregex .*lyx -exec sed -i 's/\\rm /\\textrm /g' {} \;

and the resulting diff was confirmed manually.

This commit is consistent with 3cecd4d3.

7 years agoAction.cpp: replace a reference with a shared_ptr
Guillaume Munch [Wed, 3 Aug 2016 21:06:20 +0000 (22:06 +0100)]
Action.cpp: replace a reference with a shared_ptr

Replace the member reference to FuncRequest in Action.cpp with a
shared_ptr. Compared to copying the FuncRequest, the shared_ptr has two
advantages:

* Recreating the menu each time creates a lot of new actions, so we avoid a lot
  of copies.

* FuncRequest can remain forward-declared in Action.h.

7 years agoChange "Format" into "Formats"
Guillaume Munch [Sun, 28 Aug 2016 15:51:15 +0000 (16:51 +0100)]
Change "Format" into "Formats"

The plural form seems more appropriate and the tag [[output]] is added for
disambiguation (e.g. for the French translation).

7 years agoproducesOutput() should not be redeclared as producesOutput(bool).
Richard Heck [Sun, 28 Aug 2016 04:02:43 +0000 (00:02 -0400)]
producesOutput() should not be redeclared as producesOutput(bool).

7 years agoTrivial clean-up
Guillaume Munch [Sun, 28 Aug 2016 01:34:34 +0000 (02:34 +0100)]
Trivial clean-up

7 years agoFix Unicode use in Format's prettyname
Guillaume Munch [Sun, 28 Aug 2016 00:27:37 +0000 (01:27 +0100)]
Fix Unicode use in Format's prettyname

The field prettyname can accept Unicode and therefore must be parsed into a
docstring.

Little simplification of the code on the way.

* For other fields, either a validator should be set to prevent non-ascii input
  in the preferences, or they should be transformed into docstring too.

7 years agoFix the compare_locale function by relying on Qt's (#9030)
Guillaume Munch [Sun, 28 Aug 2016 00:25:41 +0000 (01:25 +0100)]
Fix the compare_locale function by relying on Qt's (#9030)

7 years agoAdd more lib/symbols unicodemapping
Georg Baum [Sat, 27 Aug 2016 09:52:31 +0000 (11:52 +0200)]
Add more lib/symbols unicodemapping

There are still many math symbols in lib/symbols that lack a corresponding
entry in lib/unicodesymbols, although a clear mapping exists. This commit
adds some of them (not all yet). In the future we should probably move the
information from both files into one database.

7 years agoUpdate it.po
Enrico Forestieri [Fri, 26 Aug 2016 17:05:04 +0000 (19:05 +0200)]
Update it.po

7 years agoAdd a wrong_output ctest for mixing inTitle #10347
Scott Kostyshak [Fri, 26 Aug 2016 15:35:19 +0000 (11:35 -0400)]
Add a wrong_output ctest for mixing inTitle #10347

As of 0b1cf133 we now warn in the GUI of this issue, but there is a
discussion about whether we should change our LaTeX output and allow
for the workflow of mixing inTitle layouts. For more information,
see #10347.

7 years agoUpdate sk.po
Kornel Benko [Fri, 26 Aug 2016 10:54:44 +0000 (12:54 +0200)]
Update sk.po

7 years agode.po
Juergen Spitzmueller [Fri, 26 Aug 2016 10:49:41 +0000 (12:49 +0200)]
de.po

7 years agoImplement proper dialog titles in InsetParamsDialogs
Juergen Spitzmueller [Fri, 26 Aug 2016 09:35:12 +0000 (11:35 +0200)]
Implement proper dialog titles in InsetParamsDialogs

Fixes: #10329
7 years agoFix \@ifundefined check for covexample(s)
Juergen Spitzmueller [Fri, 26 Aug 2016 08:45:15 +0000 (10:45 +0200)]
Fix \@ifundefined check for covexample(s)

Fixes: #10340
7 years agoDo not set layout for no-op paragraph break
Jean-Marc Lasgouttes [Wed, 24 Aug 2016 13:29:17 +0000 (15:29 +0200)]
Do not set layout for no-op paragraph break

When breaking paragraph in an empty top-level paragraph, nothing
happens on screen but yet there is an undo step because the layout is
reset to what it already was.

Avoid this case.

Fixes bug #10089.

7 years agoMove correctly the end of proof marker when row is large
Jean-Marc Lasgouttes [Tue, 23 Aug 2016 15:43:38 +0000 (17:43 +0200)]
Move correctly the end of proof marker when row is large

This was a regression from 2.1.x in LtR mode, and it never worked correctly in RtL mode.

Fixes bug #10344.

7 years agoReset anchor before selecting with S-button1
Jean-Marc Lasgouttes [Tue, 23 Aug 2016 10:22:35 +0000 (12:22 +0200)]
Reset anchor before selecting with S-button1

7 years agoLet M-x give focus to minibuffer when it is already open
Jean-Marc Lasgouttes [Fri, 19 Aug 2016 12:53:31 +0000 (14:53 +0200)]
Let M-x give focus to minibuffer when it is already open

7 years agoCorrect library name of installed hunspell framework (it does not match the patch...
Stephan Witt [Mon, 22 Aug 2016 07:02:50 +0000 (09:02 +0200)]
Correct library name of installed hunspell framework (it does not match the patch version number)

7 years agoRemove unused variable warning and remove preprocessor switch.
Guillaume Munch [Sat, 20 Aug 2016 15:05:41 +0000 (16:05 +0100)]
Remove unused variable warning and remove preprocessor switch.

7 years agoQuote filenames used for forward-search with SumatraPDF
Enrico Forestieri [Sun, 21 Aug 2016 21:33:01 +0000 (23:33 +0200)]
Quote filenames used for forward-search with SumatraPDF

Single quotes are special to our parser and must be either escaped or
quoted if they are part of a filename, otherwise they are stripped out.

See #10342.

7 years agoFix regression of 88603655
Georg Baum [Sun, 21 Aug 2016 18:34:40 +0000 (20:34 +0200)]
Fix regression of 88603655

The XHTML entries were added in the wrong field, if they are given we need
extra xhtml requires. The order is inconsistent, there are discussions on the
list about that but for now I'll use the existing order to fix the export tests.

The format of the lib/symbols file does not support "" for empty strings.
One would have to use x for fields that are not set (this is a hack), but
actually we know how to fill the extra field.

7 years agoAdd check for existance of Qt translations directory
Stephan Witt [Sun, 21 Aug 2016 15:50:48 +0000 (17:50 +0200)]
Add check for existance of Qt translations directory

7 years agoUse only one file for dummy implementations
Enrico Forestieri [Fri, 19 Aug 2016 22:41:04 +0000 (00:41 +0200)]
Use only one file for dummy implementations

7 years agoUpdate sk.po
Kornel Benko [Fri, 19 Aug 2016 20:54:17 +0000 (22:54 +0200)]
Update sk.po

7 years agoAdd missing entries in syntax.default
Jean-Marc Lasgouttes [Fri, 19 Aug 2016 14:02:36 +0000 (16:02 +0200)]
Add missing entries in syntax.default

These are: \cellcolor, columncolor and rowcolor

Fix \rotatebox

Remove ",," in argument of color command, this is actually not used.

7 years agoRemove horizontal spacing around previews
Jean-Marc Lasgouttes [Thu, 21 Jul 2016 18:16:27 +0000 (20:16 +0200)]
Remove horizontal spacing around previews

This concerns the preview version of InsetPreview and InsetIPA.

Fixes bug #10304.

7 years agoSimplify menus when there is only one caption type
Jean-Marc Lasgouttes [Fri, 19 Aug 2016 12:01:00 +0000 (14:01 +0200)]
Simplify menus when there is only one caption type

This removes the submenu indirection in Insert and the type changer in
contextual menu. Interestingly, the code was there, but it did not
work at all.

7 years agoCmake build: Add verbose variable to some dummy_functions.cpp
Kornel Benko [Fri, 19 Aug 2016 09:15:10 +0000 (11:15 +0200)]
Cmake build: Add verbose variable to some dummy_functions.cpp