]> git.lyx.org Git - lyx.git/log
lyx.git
8 years agoFix horizontal scrolling in full-width collapsable insets
Jean-Marc Lasgouttes [Fri, 22 Apr 2016 10:11:00 +0000 (12:11 +0200)]
Fix horizontal scrolling in full-width collapsable insets

While a one paragraph large collapsable inset (containing for example a tabular) could be very wide and trigger horizontal scrolling, the code that makes collapsable insets wide when they contain several paragraphs would actually make them narrower in this case.

Typical example is a wide tabular and a caption in a table float, where horizontal scrolling would not trigger.

8 years agoLyXToolBox: a QToolBox with minimum size management
Guillaume Munch [Tue, 22 Mar 2016 21:57:17 +0000 (21:57 +0000)]
LyXToolBox: a QToolBox with minimum size management

The purpose of this custom widget is to allow the use of a QToolBox in a limited
area. The stock QToolBox does not provide a minimum size hint that depends on
the size of the pages; it assumes that there is enough room.  This subclass sets
the minimal size of the QToolbox. Without this, the size of the QToolbox is only
determined by values in the ui file and therefore causes portability and
localisation issues. Note that the computation of the minimum size hint depends
on the minimum size hints of the page widgets. Therefore page widgets must have
a layout with layoutSizeContraint = SetMinimumSize or similar.

8 years agofactor out lookup of loaded hunspell checkers and use it to reduce file system access...
Stephan Witt [Sun, 29 May 2016 19:17:08 +0000 (21:17 +0200)]
factor out lookup of loaded hunspell checkers and use it to reduce file system accesses when checking for available dictionaries

8 years agoInclude hunspell library version 1.3.3 for builds
Stephan Witt [Sun, 29 May 2016 18:38:57 +0000 (20:38 +0200)]
Include hunspell library version 1.3.3 for builds

8 years agoImplement some forgotten context menu items for arguments
Juergen Spitzmueller [Sun, 29 May 2016 10:32:53 +0000 (12:32 +0200)]
Implement some forgotten context menu items for arguments

* Dissolve context menu
* Label toggle (for conglomerate-styled arguments)

Fixes: #10150
8 years agoUpdates to splitting of consecutive environments.
Richard Heck [Thu, 21 Apr 2016 21:44:14 +0000 (17:44 -0400)]
Updates to splitting of consecutive environments.

From Enrico.

8 years agoCleanup bv-dependent variables in InsetCollapsable
Jean-Marc Lasgouttes [Tue, 19 Apr 2016 13:45:08 +0000 (15:45 +0200)]
Cleanup bv-dependent variables in InsetCollapsable

It makes sense to group all the variables in a common struct instead of having four maps.

8 years agoamend 5b7be5eb (typo+spacing)
Jean-Marc Lasgouttes [Tue, 19 Apr 2016 11:53:47 +0000 (13:53 +0200)]
amend 5b7be5eb (typo+spacing)

8 years agoMake inset-select-all select all cells only in tables
Jean-Marc Lasgouttes [Mon, 14 Mar 2016 10:46:28 +0000 (11:46 +0100)]
Make inset-select-all select all cells only in tables

inset-select-all has 3 levels
1. select current cell
2. select all cells
3. select inset from outside.

The second level makes sense for tables (text and math), but not for things like a math fraction.

Introduce a new method Inset::isTable() that allows to detect this case properly and skip level 2.

8 years agoChange mouse cursor on tabular selection zones
Jean-Marc Lasgouttes [Tue, 2 Feb 2016 16:07:29 +0000 (17:07 +0100)]
Change mouse cursor on tabular selection zones

This is done by implementing the clickable method. It is not possible yet to have the usual left and down arrows, because Qt does not implement them as far as I can see.

Factor the code that triggers row/column selection and fix the logic. Now it is possible to select also at the right of the tabular inset.

8 years agoFix display of InsetCollapsable with split views
Jean-Marc Lasgouttes [Wed, 3 Feb 2016 09:37:29 +0000 (10:37 +0100)]
Fix display of InsetCollapsable with split views

When several bufferviews exist for the same inset, the data that depends on the view width have to be BufferView-dependent. While this is the case for several mutable members of InsetCollapsable, some were missing.

This commit makes button_dim_ (renamed from button_dim) and openinlined_ bv-dependent.

Get rid of the hitButton function.

Remove the bv-independent geometry() method and implement editable() explicitely instead.

Fixes bug #9756.

8 years agowhitespace only
Jean-Marc Lasgouttes [Wed, 3 Feb 2016 09:42:01 +0000 (10:42 +0100)]
whitespace only

8 years agoPass a BufferView to Inset::clickable
Jean-Marc Lasgouttes [Tue, 2 Feb 2016 16:17:10 +0000 (17:17 +0100)]
Pass a BufferView to Inset::clickable

8 years agoMake monolithic build code portable to Mac OS
Jean-Marc Lasgouttes [Wed, 13 Apr 2016 16:27:42 +0000 (18:27 +0200)]
Make monolithic build code portable to Mac OS

"echo -e" is definitely not portable. Use a plain loop instead.

Also use the automake silent rule mechanism to make the generation of monolithic source files visible.

8 years agoAvoid narrow boxes when using \width as box width unit
Jean-Marc Lasgouttes [Tue, 5 Apr 2016 08:43:16 +0000 (10:43 +0200)]
Avoid narrow boxes when using \width as box width unit

When the box has a special width, one should not consider that as a fixed width. Otherwise, due to implementation quirks, the width will be set on screen as 1 inch.

A better solution would be to actually set the width by taking in account the contents width, height ans total height. This is not very difficult, but I do not know whether it would workout well in the work area.

Fixes bug #10048.

8 years agoMove the documentation changelogs out of attic
Jean-Marc Lasgouttes [Fri, 15 Apr 2016 16:17:26 +0000 (18:17 +0200)]
Move the documentation changelogs out of attic

They should not be hidden in this directory.

8 years agoWhen a counter is stepped, reset recursively all slaves
Jean-Marc Lasgouttes [Mon, 11 Apr 2016 10:00:19 +0000 (12:00 +0200)]
When a counter is stepped, reset recursively all slaves

Fixes bug #10063.

8 years agoInclude config.h in LyXToolBox.cpp
Guillaume Munch [Sun, 17 Apr 2016 14:16:31 +0000 (15:16 +0100)]
Include config.h in LyXToolBox.cpp

Amend 367a7a6dd.

8 years agoUpdate version in configure.ac.
Richard Heck [Sun, 17 Apr 2016 14:19:02 +0000 (10:19 -0400)]
Update version in configure.ac.

8 years agoFix compilation with qt5
Guillaume Munch [Sun, 17 Apr 2016 13:21:43 +0000 (14:21 +0100)]
Fix compilation with qt5

Amend 367a7a6d.

8 years agoAmend a5db05ae
Guillaume Munch [Sun, 17 Apr 2016 13:38:01 +0000 (14:38 +0100)]
Amend a5db05ae

Restore tabstops. I was mistaken about what tabstops are and thought they were
useless in this context.

8 years agoCitationUi.ui: Align "Selected citations" label to the left
Guillaume Munch [Thu, 17 Mar 2016 17:10:26 +0000 (17:10 +0000)]
CitationUi.ui: Align "Selected citations" label to the left

8 years agoLyXToolBox: a QToolBox with minimum size management
Guillaume Munch [Tue, 22 Mar 2016 21:57:17 +0000 (21:57 +0000)]
LyXToolBox: a QToolBox with minimum size management

The purpose of this custom widget is to allow the use of a QToolBox in a limited
area. The stock QToolBox does not provide a minimum size hint that depends on
the size of the pages; it assumes that there is enough room.  This subclass sets
the minimal size of the QToolbox. Without this, the size of the QToolbox is only
determined by values in the ui file and therefore causes portability and
localisation issues. Note that the computation of the minimum size hint depends
on the minimum size hints of the page widgets. Therefore page widgets must have
a layout with layoutSizeContraint = SetMinimumSize or similar.

8 years agoCorrect strange FIXME
Guillaume Munch [Sat, 16 Apr 2016 22:40:47 +0000 (23:40 +0100)]
Correct strange FIXME

8 years agoImprovements to the shortcuts preference dialog (#9174)
Guillaume Munch [Tue, 23 Feb 2016 20:46:19 +0000 (20:46 +0000)]
Improvements to the shortcuts preference dialog (#9174)

Ask the user for removing bindings when using the "restore" button (#9174).

Fix the already-bound-key detection logic.

Don't forget to trigger the search when initializing the search LineEdit with
its former value.

8 years agoSanitize InsetMathHull and add a check for mutability in LFUN_MATH_MUTATE
Guillaume Munch [Mon, 14 Dec 2015 01:54:27 +0000 (01:54 +0000)]
Sanitize InsetMathHull and add a check for mutability in LFUN_MATH_MUTATE

Remove in particular all comparisons < and >= involving HullType.

Add a guard to make sure that mutate() only operates on types it has been
designed for. Then I figured I could use this new knowledge to give feedback
when math-mutate is not implemented via getStatus(). (To test this, insert a
regexp in Advanced Search & Replace and try to change it into a standard
equation via the contextual menu.)

8 years agoCorrect col spacing in Cases environment
Guillaume Munch [Fri, 8 Apr 2016 18:24:12 +0000 (20:24 +0200)]
Correct col spacing in Cases environment

8 years agoFix the display of column spacing in AMS environments
Guillaume Munch [Sun, 20 Dec 2015 20:56:34 +0000 (20:56 +0000)]
Fix the display of column spacing in AMS environments

AMS align environment should have some spacing between odd and even columns.

Add a new virtual method displayColSpace() to InsetMathGrid, InsetMathHull and
InsetMathSplit.

8 years agoDisplay the correct horizontal alignment in AMS environments
Guillaume Munch [Sun, 13 Dec 2015 03:32:32 +0000 (03:32 +0000)]
Display the correct horizontal alignment in AMS environments

A longstanding problem... (related: #1861)

The columns in AMS math environments have a fixed alignment (colAlign() in
InsetMathGrid.cpp). We set this alignment for display (Georg's
displayColAlign()) in InsetMathHull and InsetMathSplit. This is done according
to tests and documentation for the various environments.

There is also some mechanical code factoring via colAlign().

Finally, I disable setting the horizontal alignment in InsetMathSplit, which has
no impact on the LaTeX output, and has no longer any impact on the screen. (As
for vertical alignment I discovered that it was in fact customisable for
\aligned & friends! I hope that the more faithful interface will let other
users discover that too.)

8 years agoDo not omit the starting space when copying (#9995)
Guillaume Munch [Tue, 1 Mar 2016 13:39:43 +0000 (13:39 +0000)]
Do not omit the starting space when copying (#9995)

The offending code appears to have been introduced a long time ago. My
understanding is that it is no longer relevant. Notably, it only appears on copy
and not on cut, which tells us that: 1) it should be safe to remove it, 2) we
should remove it for consistency.

8 years agoRaise the maxlastfiles cap
Guillaume Munch [Wed, 13 Jan 2016 01:30:05 +0000 (01:30 +0000)]
Raise the maxlastfiles cap

This only changes the maximum value that the user can choose in the UI, not the
default value.

8 years agoThis is LyX 2.2.0 2.2.0
Scott Kostyshak [Mon, 23 May 2016 23:49:15 +0000 (19:49 -0400)]
This is LyX 2.2.0

8 years agoUpdate ANNOUNCE for 2.2.0
Scott Kostyshak [Mon, 23 May 2016 22:51:18 +0000 (18:51 -0400)]
Update ANNOUNCE for 2.2.0

The https download URL is given now.

8 years ago* One more shortcut conflict solved
jpc [Mon, 23 May 2016 22:15:10 +0000 (23:15 +0100)]
* One more shortcut conflict solved
* fr.gmo updated

8 years ago* Edit translation mistakes for icon sizes
jpc [Mon, 23 May 2016 21:43:39 +0000 (22:43 +0100)]
* Edit translation mistakes for icon sizes
* Resolve a shortcut conflict
* Provide fr.gmo using msgfmt

8 years agoAdd note about required svg support in Qt.
Enrico Forestieri [Mon, 23 May 2016 01:04:55 +0000 (03:04 +0200)]
Add note about required svg support in Qt.

8 years agoFix using system theme icons with Qt 5 (#10052)
Scott Kostyshak [Mon, 23 May 2016 00:39:46 +0000 (20:39 -0400)]
Fix using system theme icons with Qt 5 (#10052)

With Qt 5, our code did not correctly detect when icons were
available and thus tried to use nonexistent icons.

QIcon::hasThemeIcon(theme_icon) returns true when theme_icon is
empty. We now rely on the behavior that QIcon::isNull() returns true
if the icon is empty.

The same code is used with Qt 4 and Qt 5.

8 years agoRELEASE-NOTES: add a known issue regarding LuaTeX
Scott Kostyshak [Sun, 22 May 2016 22:05:24 +0000 (18:05 -0400)]
RELEASE-NOTES: add a known issue regarding LuaTeX

Our LuaTeX export is not expected to work in all cases with the
newest version, e.g. the one shipped with TeX Live 2016.

8 years agoFxy typo in XHTML output (bug #10124)
Georg Baum [Sun, 22 May 2016 15:32:04 +0000 (17:32 +0200)]
Fxy typo in XHTML output (bug #10124)

There was a simple typo that did ouput the slash before the closing tag
instead of inside the closing tag.

8 years agoFix compilation if Intro manual for it
Scott Kostyshak [Sun, 22 May 2016 03:13:27 +0000 (23:13 -0400)]
Fix compilation if Intro manual for it

8 years agoFix compilation of Additional manual for es, fr
Scott Kostyshak [Sun, 22 May 2016 03:05:35 +0000 (23:05 -0400)]
Fix compilation of Additional manual for es, fr

8 years agoHandle activateWindow in LFUN_BUFFER_SWITCH like in saveBufferIfNeeded() and doShowDi...
Stephan Witt [Sat, 16 Apr 2016 20:30:33 +0000 (22:30 +0200)]
Handle activateWindow in LFUN_BUFFER_SWITCH like in saveBufferIfNeeded() and doShowDialog() methods.
This is a requirement on Mac to get the current buffer view topmost after buffer switch.

8 years agoDo not float the outliner in OSX (#9825)
Guillaume Munch [Fri, 6 May 2016 02:53:28 +0000 (03:53 +0100)]
Do not float the outliner in OSX (#9825)

There are focus issues in qt5 when the outliner is floating.

8 years agoLyX does work with ImageMagick 7
Georg Baum [Sat, 21 May 2016 09:24:39 +0000 (11:24 +0200)]
LyX does work with ImageMagick 7

8 years agoFix python release notes
Georg Baum [Sat, 21 May 2016 08:12:57 +0000 (10:12 +0200)]
Fix python release notes

The old text was incorrect and came from the 2.0 release. LyX works fine if
the default python interpreter is python 3, as long as python 2 is available
as well.

Building LyX does also work with python 3, but since I did not check all
special build steps with both cmake and autotools, I kept a note about
possible problems.

8 years agoUse bilinear filtering when resizing graphics
Guillaume Munch [Sat, 30 Apr 2016 18:56:57 +0000 (19:56 +0100)]
Use bilinear filtering when resizing graphics

This is used when scaling graphics previews. It is also used on a rare occasion
to scale instant previews when the user's configuration mixes low-dpi and
high-dpi monitors (#10114).

8 years agoGuiDelimiter: Workaround symbols alignment problem #10118
Guillaume Munch [Thu, 5 May 2016 00:00:57 +0000 (01:00 +0100)]
GuiDelimiter: Workaround symbols alignment problem #10118

8 years agoShortcutWidget: override shortcuts in the way they are meant to be (#10075)
Guillaume Munch [Tue, 17 May 2016 17:45:37 +0000 (18:45 +0100)]
ShortcutWidget: override shortcuts in the way they are meant to be (#10075)

I would say "by the books" but the documentation was not really clear.

Problems with the logic of the previous implementation were exposed in Qt 5.6 by
commit <https://codereview.qt-project.org/125142>.

<http://mid.gmane.org/20160510070413.wzjpk4w4turnx6pr@cotopaxi>

Note that ShortcutOverride events are used elsewhere in the code where they may
need to be corrected in the same way.

8 years agoWin installer: update thesaurus and dictionaries
Uwe Stöhr [Thu, 19 May 2016 01:28:31 +0000 (03:28 +0200)]
Win installer: update thesaurus and dictionaries

- also use a better default MiKTeX repository

8 years agoTutorial.lyx: get rid of unnecessary preamble code
Uwe Stöhr [Wed, 18 May 2016 23:46:09 +0000 (01:46 +0200)]
Tutorial.lyx: get rid of unnecessary preamble code

The aim of the tutorial is to explain how to use LyX and not special LaTeX issues with \frontmatter, non-TeX fonts etc. Therefore the preamble should kept clean.

8 years agoJapanese Additional.lyx: fix broken filename - this is a regression bug in LyX 2.2
Uwe Stöhr [Tue, 17 May 2016 22:43:51 +0000 (00:43 +0200)]
Japanese Additional.lyx: fix broken filename - this is a regression bug in LyX 2.2

see bug #10136

8 years agoGerman Tutorial.lyx: few stylistic changes from Mike
Uwe Stöhr [Tue, 17 May 2016 22:26:58 +0000 (00:26 +0200)]
German Tutorial.lyx: few stylistic changes from Mike

8 years agoGerman Additional.lyx: make compilable again
Uwe Stöhr [Tue, 17 May 2016 22:17:09 +0000 (00:17 +0200)]
German Additional.lyx: make compilable again

- some further typographic fixes
- use same PDF settings as the English version of Additional.lyx

8 years agoAdditional.lyx: remove unnecessary TeX code
Uwe Stöhr [Tue, 17 May 2016 22:08:20 +0000 (00:08 +0200)]
Additional.lyx: remove unnecessary TeX code

- also some typographic fixes

8 years agoJapanese docs: fix some more paths
Uwe Stöhr [Tue, 17 May 2016 21:34:09 +0000 (23:34 +0200)]
Japanese docs: fix some more paths

- also few beautification

8 years agoAllow inset-forall to match separators (#10090)
Guillaume Munch [Mon, 16 May 2016 17:10:13 +0000 (18:10 +0100)]
Allow inset-forall to match separators (#10090)

With this change, it becomes possible to run the following commands:
     inset-forall Separator:latexpar char-delete-forward
     inset-forall Separator:parbreak inset-modify separator plain

The first one deletes all latexpar separators. The second one turns parbreak
separators into plain separators. This is safe, flexible, and avoids adding a
new LFUN.

8 years agoRemove test for luatex+fontspec compatibility (#8478)
Guillaume Munch [Thu, 12 May 2016 22:08:36 +0000 (23:08 +0100)]
Remove test for luatex+fontspec compatibility (#8478)

This test used freeze on luatex's font cache generation, and only
very old versions of luatex and fontspec are incompatible with each
other.

8 years agoGerman Tutorial.lyx: a typographic fix
Uwe Stöhr [Sun, 15 May 2016 17:09:38 +0000 (19:09 +0200)]
German Tutorial.lyx: a typographic fix

8 years agoTutorial.lyx: add a hint
Uwe Stöhr [Sun, 15 May 2016 17:09:10 +0000 (19:09 +0200)]
Tutorial.lyx: add a hint

8 years agoGerman Tutorial.lyx: some more fixes from Mike and me
Uwe Stöhr [Sun, 15 May 2016 16:50:22 +0000 (18:50 +0200)]
German Tutorial.lyx: some more fixes from Mike and me

8 years agoEmbeddedObjects.lyx: get rid of unnecessary ERT and fix an image size
Uwe Stöhr [Sun, 15 May 2016 15:14:09 +0000 (17:14 +0200)]
EmbeddedObjects.lyx: get rid of unnecessary ERT and fix an image size

8 years agoJapanese docs: fix some further broken images links etc.
Uwe Stöhr [Sun, 15 May 2016 14:50:16 +0000 (16:50 +0200)]
Japanese docs: fix some further broken images links etc.

8 years agoUserGuide.lyx: fix some typographic issues spotted by Mike
Uwe Stöhr [Sun, 15 May 2016 14:34:40 +0000 (16:34 +0200)]
UserGuide.lyx: fix some typographic issues spotted by Mike

8 years agoJapanese UserGuide.lyx: fix broken image links
Uwe Stöhr [Sun, 15 May 2016 14:34:06 +0000 (16:34 +0200)]
Japanese UserGuide.lyx: fix broken image links

8 years agoTutorial.lyx: fixes all other languages according to previous commit
Uwe Stöhr [Sun, 15 May 2016 01:29:04 +0000 (03:29 +0200)]
Tutorial.lyx: fixes all other languages according to previous commit

- typographic fixes, break links etc.

8 years agoGerman Tutorial.lyx: some fixes from Mike and me
Uwe Stöhr [Sun, 15 May 2016 01:25:37 +0000 (03:25 +0200)]
German Tutorial.lyx: some fixes from Mike and me

8 years agobeamer manual: fix grammar issues spotted by Anthony Campbell.
Juergen Spitzmueller [Sat, 14 May 2016 08:27:08 +0000 (10:27 +0200)]
beamer manual: fix grammar issues spotted by Anthony Campbell.

8 years agotypo
Pavel Sanda [Wed, 11 May 2016 21:42:26 +0000 (14:42 -0700)]
typo

8 years agocosmetics
Pavel Sanda [Wed, 11 May 2016 21:35:15 +0000 (14:35 -0700)]
cosmetics

8 years ago* lib/RELEASE-NOTES
Pavel Sanda [Wed, 11 May 2016 17:31:59 +0000 (10:31 -0700)]
* lib/RELEASE-NOTES

8 years agoWin installer: return to IM 6
Uwe Stöhr [Tue, 10 May 2016 22:32:58 +0000 (00:32 +0200)]
Win installer: return to IM 6

8 years agoDetect ImageMagick 7
Georg Baum [Tue, 10 May 2016 19:27:57 +0000 (21:27 +0200)]
Detect ImageMagick 7

Imagemagick 7 does not have a convert command anymore, it is now called magick.
Joint work by Uwe and me.

8 years agoEnsure that TeXFiles.py is run by python2
Georg Baum [Tue, 10 May 2016 05:18:48 +0000 (07:18 +0200)]
Ensure that TeXFiles.py is run by python2

We ensure that configure.py is called by python2, regardless whether 'python'
is python 2 or 3. Therefore we can simply call TeXFiles.py with the currently
running interpreter. This fixes configuration on systems where 'python' is
python 3.

8 years agoChange line ends back to unix.
Georg Baum [Mon, 9 May 2016 20:03:16 +0000 (22:03 +0200)]
Change line ends back to unix.

They were changed to windows by accident at 41e928b2e50.

8 years agoGerman UserGuide.lyx: unset compression
Uwe Stöhr [Sun, 8 May 2016 23:42:35 +0000 (01:42 +0200)]
German UserGuide.lyx: unset compression

thanks Guillaume for the hint

8 years agoMerge branch 'master' of git.lyx.org:lyx
Uwe Stöhr [Sun, 8 May 2016 23:24:14 +0000 (01:24 +0200)]
Merge branch 'master' of git.lyx.org:lyx

8 years agoGerman UserGuide.lyx: tons of typographic fixes sent in by an unknown user
Uwe Stöhr [Sun, 8 May 2016 23:24:02 +0000 (01:24 +0200)]
German UserGuide.lyx: tons of typographic fixes sent in by an unknown user

8 years agoseparator-convert.sh
Guillaume Munch [Tue, 12 Apr 2016 18:57:37 +0000 (19:57 +0100)]
separator-convert.sh

Lyx files converted from 2.1 to 2.2 contain parbeak and latexpar separators that
would not appear if the lyx file was written in 2.2 from scratch. The script
removes latexpar separators and transforms parbreak separators into plain
separators. Then it displays a diff of the resulting pdf files (requires
diffpdf) for manual control. All lyx files shipped with lyx should be updated in
this way. See #10068.

example usage:
cd lib/doc
../development/tools/separator-convert.sh Math.lyx

8 years agoExamples: remove parbreak and latexpar separators
Guillaume Munch [Tue, 12 Apr 2016 21:16:38 +0000 (22:16 +0100)]
Examples: remove parbreak and latexpar separators

The difference has been validated with diffpdf.

The following could not be tested and were left unchanged:

docbook_article.lyx
lilypond.lyx
linguistics.lyx
springer/sv*.lyx
de/linguistics.lyx
es/linguistics.lyx
ja/FeynmanDiagrams.lyx
ja/lilypond.lyx
ja/beamer.lyx
ja/xypic.lyx

The following is the script that I used (in lib/examples):

LYX=../../build/src/lyx
$LYX -E pdf2 $1.old.pdf $1
sed -i "s/^\\\\begin_inset Separator parbreak$/\\\\begin_inset Separator plain/" $1
sed -i "/^\\\\begin_inset Separator latexpar$/ { N; d; }" $1
$LYX -e lyx $1
$LYX -E pdf2 $1.pdf $1
diffpdf $1.old.pdf $1.pdf

8 years agoTemplates: remove parbreak and latexpar separators
Guillaume Munch [Tue, 12 Apr 2016 19:22:10 +0000 (20:22 +0100)]
Templates: remove parbreak and latexpar separators

The difference has been validated with diffpdf.

The following could not be tested and were left unchanged:

AEA.lyx
IJMPC.lyx
ja_beamer-conference-ornate-20min.lyx

The following is the script that I used (in lib/templates):

LYX=../../build/src/lyx
$LYX -E pdf2 $1.old.pdf $1
sed -i "s/^\\\\begin_inset Separator parbreak$/\\\\begin_inset Separator plain/" $1
sed -i "/^\\\\begin_inset Separator latexpar$/ { N; d; }" $1
$LYX -e lyx $1
$LYX -E pdf2 $1.pdf $1
diffpdf $1.old.pdf $1.pdf

8 years agoTutorial.lyx: some mote typographic fixes
Uwe Stöhr [Sun, 8 May 2016 20:32:57 +0000 (22:32 +0200)]
Tutorial.lyx: some mote typographic fixes

8 years agoTutorial.lyx: typographic fixes spotted by a user
Uwe Stöhr [Sun, 8 May 2016 20:19:49 +0000 (22:19 +0200)]
Tutorial.lyx: typographic fixes spotted by a user

8 years agoWin installer: remove obsolete comment
Uwe Stöhr [Sun, 8 May 2016 01:10:09 +0000 (03:10 +0200)]
Win installer: remove obsolete comment

8 years agoWin installer: update to JabRef 3.x
Uwe Stöhr [Sun, 8 May 2016 01:05:55 +0000 (03:05 +0200)]
Win installer: update to JabRef 3.x

- also another minor correction

8 years agoUpdate fuzzy translations without -o
Georg Baum [Sun, 24 Apr 2016 19:06:12 +0000 (21:06 +0200)]
Update fuzzy translations without -o

This is what the polib version does already. If a translation is marked
fuzzy then it is not used, so if the other file contains a non-fuzzy
translation we do not throw away useful information if we overtake it.

8 years agoMerge fuzzy translations correctly
Georg Baum [Sun, 24 Apr 2016 17:35:38 +0000 (19:35 +0200)]
Merge fuzzy translations correctly

If the -o option is given, we may overwrite existing translations with
translations from the other .po file. In this case, we have to delete or set
the fuzzy flag accoring to the updated translation.

8 years agoMake mergepo.py python3 compatible
Georg Baum [Sun, 24 Apr 2016 14:54:04 +0000 (16:54 +0200)]
Make mergepo.py python3 compatible

This follows the same recipe (by José) as 262ae8264a for po/lyx_pot.py.

8 years agopolib has more names than UTF-8 for utf8
Georg Baum [Sun, 24 Apr 2016 14:37:54 +0000 (16:37 +0200)]
polib has more names than UTF-8 for utf8

In case of id.po it returns utf-8.

8 years agoamend 660a43ec
Guillaume Munch [Sat, 7 May 2016 00:53:04 +0000 (01:53 +0100)]
amend 660a43ec

8 years agoWin installer: update MiKTeX repository and ImageMagick version
Uwe Stöhr [Fri, 6 May 2016 23:12:36 +0000 (01:12 +0200)]
Win installer: update MiKTeX repository and ImageMagick version

- http://ftp.fernuni-hagen.de does no longer exist
- ImageMagick released a new major version

8 years agoMove some unsigned validators to signed (#10095)
Scott Kostyshak [Wed, 4 May 2016 00:34:17 +0000 (20:34 -0400)]
Move some unsigned validators to signed (#10095)

2.1.x allows some document settings to have negative values where
2.2.0rc1 does not (because of the bug fix at 9e166088). If a user of
2.2.0rc1 opens a document from 2.1.x that contains one such negative
value, it will appear as though no change to the document settings
can be saved because 2.2.0rc1 treats the document settings as
invalid immediately on opening the dialog. Further, unless the user
manually goes through each tab they will not see the red text next
to the input that is now considered invalid. This could lead to
confusion for users. One example of such confusion is [1].

The following settings now allow negative values, which is
consistent with 2.1.x. Negative values in these settings do not lead
to LaTeX errors:

  - Text Layout tab: the two line edits enabled with "Custom"
  - Page Margins tab: all eight line edits

The following settings are not changed by this commit, so they now
(with 2.2.0) do not allow negative values that 2.1.x allowed. This
change makes sense because negative values lead to LaTeX errors in
these cases:

  - Page Layout tab: the "Height" and "Width" line edits, which are
                     enabled when "Custom" is selected

[1] https://www.mail-archive.com/search?l=mid&q=CAGZ2pgXqf27UaAaQ%3De_wFz1fGTa6Yv0iFyS97qu1C7B5R59irg%40mail.gmail.com

8 years agoFix version number
Georg Baum [Thu, 5 May 2016 11:39:45 +0000 (13:39 +0200)]
Fix version number

8 years agoja.gmo for cfa8d0202942
Georg Baum [Thu, 5 May 2016 08:20:23 +0000 (10:20 +0200)]
ja.gmo for cfa8d0202942

8 years agoClipboard: Retry on_dataChanged() after a delay on windows (#10109)
Guillaume Munch [Fri, 29 Apr 2016 20:51:39 +0000 (21:51 +0100)]
Clipboard: Retry on_dataChanged() after a delay on windows (#10109)

An undocumented behaviour of QClipboard::mimeData() is that it can fail on
windows due to the specificities of the windows API that allow a race condition.
In particular it seems that querying the clipboard as soon as the dataChanged()
signal is received favourises this race condition.

Thanks to Trac user bquistorff for the explanation and a proof of concept patch.

8 years agoWhitespace
Guillaume Munch [Fri, 29 Apr 2016 20:45:18 +0000 (21:45 +0100)]
Whitespace

8 years agoJapanese doc files: big translation update fro 2.2.0 from Koji
Uwe Stöhr [Tue, 3 May 2016 23:12:04 +0000 (01:12 +0200)]
Japanese doc files: big translation update fro 2.2.0 from Koji

8 years agoja.po: Update from Koji for 2.2.0
Uwe Stöhr [Tue, 3 May 2016 23:08:56 +0000 (01:08 +0200)]
ja.po: Update from Koji for 2.2.0

8 years agoResources.cpp is a built source, it should not be in SOURCEFILES
Jean-Marc Lasgouttes [Fri, 15 Apr 2016 14:16:07 +0000 (16:16 +0200)]
Resources.cpp is a built source, it should not be in SOURCEFILES

We want to avoid that Resources.cpp be distributed in the tar file.

8 years agoRELEASE-NOTES: advise MSVC 2015 update 2 on Win
Scott Kostyshak [Tue, 26 Apr 2016 03:45:39 +0000 (23:45 -0400)]
RELEASE-NOTES: advise MSVC 2015 update 2 on Win

When compiling with Qt 5.6, MSVC 2015 update 2 is recommended in
order to avoid #9892.

8 years agoRevert part of c053a9394d1075ecad02ccce2f34c95f08c1f00f
Stephan Witt [Mon, 25 Apr 2016 18:57:06 +0000 (20:57 +0200)]
Revert part of c053a9394d1075ecad02ccce2f34c95f08c1f00f
This change introduced a regression and is not needed anymore.

(cherry picked from commit 1cbabdf8d51b26dd80677ddfeb64d13df91fefc0)