]> git.lyx.org Git - lyx.git/log
lyx.git
2 years agoChange FontMetrics::breakAt to return a position
Jean-Marc Lasgouttes [Sat, 10 Jul 2021 21:21:27 +0000 (23:21 +0200)]
Change FontMetrics::breakAt to return a position

Since we intend to break the row element in two, it is not good to
truncate the string too early.

Moreover, the row element width is now set at this point, even if no
breaking occurs.

2 years agoQt6 pixmaps are always HiDPI - avoid deprecate warning for setAttribute
Stephan Witt [Tue, 7 Dec 2021 09:02:05 +0000 (10:02 +0100)]
Qt6 pixmaps are always HiDPI - avoid deprecate warning for setAttribute

2 years agoAutomate Qt major version detection in macOS build script
Stephan Witt [Mon, 6 Dec 2021 06:51:26 +0000 (07:51 +0100)]
Automate Qt major version detection in macOS build script

2 years agoCare for consistent compiler flag values of macosx-version-min with ObjC and C++
Stephan Witt [Mon, 6 Dec 2021 06:46:35 +0000 (07:46 +0100)]
Care for consistent compiler flag values of macosx-version-min with ObjC and C++

2 years agoctests: log a fixed issue
Scott Kostyshak [Mon, 6 Dec 2021 03:07:06 +0000 (22:07 -0500)]
ctests: log a fixed issue

2 years agoDocBook: implement margin/sidenotes in Tufte.
Thibaut Cuvelier [Sun, 5 Dec 2021 21:53:36 +0000 (22:53 +0100)]
DocBook: implement margin/sidenotes in Tufte.

2 years agoDocBook: recognise Tufte's float types (margin*).
Thibaut Cuvelier [Sun, 5 Dec 2021 21:44:17 +0000 (22:44 +0100)]
DocBook: recognise Tufte's float types (margin*).

2 years agoQt 5.12.x requires at least MacOS 10.12
Stephan Witt [Sun, 5 Dec 2021 21:38:42 +0000 (22:38 +0100)]
Qt 5.12.x requires at least MacOS 10.12

2 years agoAmend change d1d22a1433e503c3f36aa982c2a7ec9d1f79273d - configure Mac compiler flags...
Stephan Witt [Sun, 5 Dec 2021 21:36:36 +0000 (22:36 +0100)]
Amend change d1d22a1433e503c3f36aa982c2a7ec9d1f79273d  - configure Mac compiler flags on Mac only

2 years agoInsetMathHull: fix column alignment for MathML.
Thibaut Cuvelier [Sun, 5 Dec 2021 19:11:47 +0000 (20:11 +0100)]
InsetMathHull: fix column alignment for MathML.

https://www.lyx.org/trac/attachment/ticket/12221/0005-mathmlize-mathhull-checks-for-alignment.patch by lynx

2 years agoMathStream: better order for the calls to tab() and cr().
Thibaut Cuvelier [Sun, 5 Dec 2021 18:15:06 +0000 (19:15 +0100)]
MathStream: better order for the calls to tab() and cr().

Part of https://www.lyx.org/trac/attachment/ticket/12221/0006-amends-to-a579128c-a68e9793-a68e9793.patch by lynx.

2 years agoSimilar fixes as 946ba7781c179752e450e98a0c356372323100a6
Thibaut Cuvelier [Sun, 5 Dec 2021 17:54:05 +0000 (18:54 +0100)]
Similar fixes as 946ba7781c179752e450e98a0c356372323100a6

2 years agoAmend a68e9793: duplicate tag delimiter end.
Thibaut Cuvelier [Sun, 5 Dec 2021 17:48:27 +0000 (18:48 +0100)]
Amend a68e9793: duplicate tag delimiter end.

2 years agointroduce LSMinimumSystemVersion for Mac package with automatic Qt-version based...
Stephan Witt [Sun, 5 Dec 2021 10:10:11 +0000 (11:10 +0100)]
introduce LSMinimumSystemVersion for Mac package with automatic Qt-version based detection plus configure option to choose it manually

2 years agoTypo in doc: capitalize "t" in "EndLabeltype"
Scott Kostyshak [Sat, 4 Dec 2021 20:17:36 +0000 (15:17 -0500)]
Typo in doc: capitalize "t" in "EndLabeltype"

2 years agoPrevent Outliner crash due to emptied toc value
Juergen Spitzmueller [Sat, 4 Dec 2021 16:53:03 +0000 (17:53 +0100)]
Prevent Outliner crash due to emptied toc value

This might need a more profound fix in the long term, see
https://marc.info/?l=lyx-devel&m=163588729224679&w=2

2 years agoWhen inserting text character in mathed, group in same \text when possible.
Jean-Marc Lasgouttes [Sun, 28 Nov 2021 13:33:45 +0000 (14:33 +0100)]
When inserting text character in mathed, group in same \text when possible.

When inserting € in a math cell, it is put in a text inset and the
cursor leaves the inset. However, inserting ¤ then leads to
\text{€}\text{¤}.

Therefore, try to see if there is a previous \text inset that can be
recycled and insert the new inset there in this case, leading to
\text{€¤}.

Fixes bug #11979.

2 years agoInsertTableWidget support for dark mode and improved resizing
Daniel Ramoeller [Mon, 22 Nov 2021 09:15:38 +0000 (10:15 +0100)]
InsertTableWidget support for dark mode and improved resizing

Fix for bug #12438.

2 years agoWhitespace
Juergen Spitzmueller [Thu, 25 Nov 2021 17:47:23 +0000 (18:47 +0100)]
Whitespace

2 years agoLet paragraph::requestSpellcheck() consider contained insets
Juergen Spitzmueller [Thu, 25 Nov 2021 16:04:58 +0000 (17:04 +0100)]
Let paragraph::requestSpellcheck() consider contained insets

if "check whole paragraph" has been requested.

2 years agoFactor out Buffer::requestSpellcheck() function
Juergen Spitzmueller [Thu, 25 Nov 2021 16:04:17 +0000 (17:04 +0100)]
Factor out Buffer::requestSpellcheck() function

2 years agogzstream is able to read uncompressed files too
Jean-Marc Lasgouttes [Wed, 24 Nov 2021 10:44:53 +0000 (11:44 +0100)]
gzstream is able to read uncompressed files too

This allows to simplify the code in Lexer and to remove the dependency
on Formats class.

As a consequence, a pair of dummy definitions of isZippedFile can be removed.

2 years agoMake primary-selection unknown when not supported
Jean-Marc Lasgouttes [Fri, 19 Nov 2021 09:21:55 +0000 (10:21 +0100)]
Make primary-selection unknown when not supported

This lfun will not appear in menus anymore in macOS and Windows.

Part of bug #12436.

2 years agoFixup 3aab9ad2: improve UndoGroupHelper docs again.
Jean-Marc Lasgouttes [Sun, 14 Nov 2021 18:14:31 +0000 (19:14 +0100)]
Fixup 3aab9ad2: improve UndoGroupHelper docs again.

2 years agoFixup 1cbbe5c3: fix scrollbar with page down
Jean-Marc Lasgouttes [Sat, 13 Nov 2021 18:24:05 +0000 (19:24 +0100)]
Fixup 1cbbe5c3: fix scrollbar with page down

It turns out that the fix was not correct. The right thing to do is to
recompte metrics only when screen has moved.

Fixes bug #12144.

2 years agoFix documentation of UndoGroupHelper
Jean-Marc Lasgouttes [Fri, 12 Nov 2021 15:47:41 +0000 (16:47 +0100)]
Fix documentation of UndoGroupHelper

2 years agoFix Bullets panel (#12429)
Juergen Spitzmueller [Fri, 12 Nov 2021 15:40:46 +0000 (16:40 +0100)]
Fix Bullets panel (#12429)

2 years agoFindAdv: Added handling of 0x019b
Kornel Benko [Fri, 12 Nov 2021 12:29:22 +0000 (13:29 +0100)]
FindAdv: Added handling of 0x019b

2 years agoSupport 0x019b via tipa (#12426)
Juergen Spitzmueller [Fri, 12 Nov 2021 10:43:11 +0000 (11:43 +0100)]
Support 0x019b via tipa (#12426)

2 years ago Update fr.po
jpc [Fri, 5 Nov 2021 16:52:44 +0000 (17:52 +0100)]
        Update fr.po

2 years agoFix crash when closing LyX with open Search pane
Juergen Spitzmueller [Fri, 5 Nov 2021 13:50:39 +0000 (14:50 +0100)]
Fix crash when closing LyX with open Search pane

2 years agoAddress Qt6 deprecation warnings
Juergen Spitzmueller [Wed, 3 Nov 2021 16:41:41 +0000 (17:41 +0100)]
Address Qt6 deprecation warnings

2 years agoFix most stupid thinko of mine
Juergen Spitzmueller [Wed, 3 Nov 2021 11:35:38 +0000 (12:35 +0100)]
Fix most stupid thinko of mine

2 years agoAmend 59b8c209c41d
Juergen Spitzmueller [Tue, 2 Nov 2021 15:28:40 +0000 (16:28 +0100)]
Amend 59b8c209c41d

QFontMetrics::width() is no longer valid in Qt6

2 years agoUse labels for zoom slider buttons
Daniel Ramoeller [Tue, 2 Nov 2021 07:08:29 +0000 (08:08 +0100)]
Use labels for zoom slider buttons

Fix for bug #12301.

Also: fixes the width and alignment of the zoom value label.

2 years agoDocBook LilyPond: add a comment to indicate that an issue cannot be worked around.
Thibaut Cuvelier [Mon, 1 Nov 2021 23:55:24 +0000 (00:55 +0100)]
DocBook LilyPond: add a comment to indicate that an issue cannot be worked around.

2 years agoUpdate sk.po
Kornel Benko [Mon, 1 Nov 2021 17:14:35 +0000 (18:14 +0100)]
Update sk.po

2 years agode.po
Juergen Spitzmueller [Mon, 1 Nov 2021 17:01:40 +0000 (18:01 +0100)]
de.po

2 years agoUpdate toolbar and properly reset focus when find widget is closed (#12396)
Juergen Spitzmueller [Mon, 1 Nov 2021 13:21:34 +0000 (14:21 +0100)]
Update toolbar and properly reset focus when find widget is closed (#12396)

2 years agoMore indentation correction
Juergen Spitzmueller [Mon, 1 Nov 2021 13:15:05 +0000 (14:15 +0100)]
More indentation correction

2 years agoAmend ce8b4e3a218f
Juergen Spitzmueller [Mon, 1 Nov 2021 12:08:16 +0000 (13:08 +0100)]
Amend ce8b4e3a218f

2 years agoFix indentation
Juergen Spitzmueller [Mon, 1 Nov 2021 12:02:05 +0000 (13:02 +0100)]
Fix indentation

2 years agoMake color description "changed" rather than "added"
Daniel Ramoeller [Sat, 9 Oct 2021 16:29:23 +0000 (18:29 +0200)]
Make color description "changed" rather than "added"

Fix for #12227 (regression).

Amended by Jürgen Spitzmüller

2 years ago Update fr.po
jpc [Mon, 1 Nov 2021 10:17:19 +0000 (11:17 +0100)]
          Update fr.po

2 years agoAttempt to fix #12226 for good
Juergen Spitzmueller [Mon, 1 Nov 2021 07:30:41 +0000 (08:30 +0100)]
Attempt to fix #12226 for good

2 years agoRedraw all work areas while zooming (#12334)
Juergen Spitzmueller [Sun, 31 Oct 2021 12:43:27 +0000 (13:43 +0100)]
Redraw all work areas while zooming (#12334)

2 years agoPolishing
Juergen Spitzmueller [Sun, 31 Oct 2021 12:16:20 +0000 (13:16 +0100)]
Polishing

2 years agoSet Local Layout tab stop distance to 4
Daniel Ramoeller [Sat, 16 Oct 2021 07:51:33 +0000 (09:51 +0200)]
Set Local Layout tab stop distance to 4

Fix for bug #12395.

2 years agoMovable minimised Quick Search Widget
Daniel Ramoeller [Fri, 19 Mar 2021 06:37:11 +0000 (07:37 +0100)]
Movable minimised Quick Search Widget

Fix for bug #12207.

2 years agoAdjust spacing of Quick Find Dock
Daniel Ramoeller [Fri, 19 Mar 2021 07:54:22 +0000 (08:54 +0100)]
Adjust spacing of Quick Find Dock

Fix for bug #12209.

(amended by Jürgen Spitzmüller)

2 years ago\\noindent in a paragraph that starts with \\vspace is possible
Juergen Spitzmueller [Sun, 31 Oct 2021 10:56:53 +0000 (11:56 +0100)]
\\noindent in a paragraph that starts with \\vspace is possible

But the \\vspace must precede \\noindent (the latter leaves vmode)

2 years agoFix for bug #11974
Daniel Ramoeller [Tue, 15 Sep 2020 05:31:53 +0000 (07:31 +0200)]
Fix for bug #11974

Support for setUnifiedTitleAndToolBarOnMac (unify toolbar and title bar).

2 years agoAmend comment
Juergen Spitzmueller [Sun, 31 Oct 2021 09:38:52 +0000 (10:38 +0100)]
Amend comment

2 years agoDo not output \\noindent for paragraphs starting with a vspace
Juergen Spitzmueller [Sun, 31 Oct 2021 09:22:11 +0000 (10:22 +0100)]
Do not output \\noindent for paragraphs starting with a vspace

These are not indented anyway, and the extra \\noindent causes whitespace

2 years agoProperly terminate \\noindent
Juergen Spitzmueller [Sun, 31 Oct 2021 08:58:10 +0000 (09:58 +0100)]
Properly terminate \\noindent

2 years agoFactor out Paragraph::isPartOfTextSequence
Juergen Spitzmueller [Sun, 31 Oct 2021 08:26:57 +0000 (09:26 +0100)]
Factor out Paragraph::isPartOfTextSequence

Amends 045c25cf76

2 years agode.po
Juergen Spitzmueller [Sat, 30 Oct 2021 15:51:16 +0000 (17:51 +0200)]
de.po

2 years agoPrevent unneeded (and wrong) \noindent
Juergen Spitzmueller [Sat, 30 Oct 2021 12:19:46 +0000 (14:19 +0200)]
Prevent unneeded (and wrong) \noindent

* When a paragraph is logically empty (only contains stuff which is not
  part of the text sequence

* In centered paragraphs

2 years agoFix the Unicode encoding of Rightarrow
Thibaut Cuvelier [Fri, 29 Oct 2021 19:29:11 +0000 (21:29 +0200)]
Fix the Unicode encoding of Rightarrow

Author: lynx

Related issue: 12411.
https://www.lyx.org/trac/ticket/12411

2 years agoRelease note: remove fun "bidi"
Jean-Marc Lasgouttes [Fri, 29 Oct 2021 16:08:29 +0000 (18:08 +0200)]
Release note: remove fun "bidi"

As documented later, this has been removed.

2 years agoDocument parskip change in RELEASE NOTES (#10968)
Juergen Spitzmueller [Fri, 29 Oct 2021 16:01:02 +0000 (18:01 +0200)]
Document parskip change in RELEASE NOTES (#10968)

2 years agoGet rid of some more fragile index reliances
Juergen Spitzmueller [Fri, 29 Oct 2021 15:51:32 +0000 (17:51 +0200)]
Get rid of some more fragile index reliances

2 years agoUpdate sk.po
Kornel Benko [Fri, 29 Oct 2021 15:46:44 +0000 (17:46 +0200)]
Update sk.po

2 years agoRename BufferView::updateScrollbar to show what does
Jean-Marc Lasgouttes [Fri, 29 Oct 2021 15:44:32 +0000 (17:44 +0200)]
Rename BufferView::updateScrollbar to show what does

Only parameters are updated, not the scrollbar itself.

2 years agoAmend [5c055034/lyxgit]
Juergen Spitzmueller [Fri, 29 Oct 2021 15:06:11 +0000 (17:06 +0200)]
Amend [5c055034/lyxgit]

Relying on indexes is too fragile here

2 years agoFixup b0c102cfb: make it possible to select medskip as parskip
Jean-Marc Lasgouttes [Fri, 29 Oct 2021 14:38:29 +0000 (16:38 +0200)]
Fixup b0c102cfb: make it possible to select medskip as parskip

Some new parskip possibilities had been added, but the check for
custom length index had not bee updated.

This code is very fragile.

Related to bug #10968.

2 years agoDisable language selector in LyXFiles dialog if no file is selected (#12412)
Juergen Spitzmueller [Fri, 29 Oct 2021 11:16:08 +0000 (13:16 +0200)]
Disable language selector in LyXFiles dialog if no file is selected (#12412)

2 years agoAn assert to hopefully please coverity
Jean-Marc Lasgouttes [Fri, 29 Oct 2021 10:39:50 +0000 (12:39 +0200)]
An assert to hopefully please coverity

2 years agoFix the Unicode encoding of langle/rangle
Thibaut Cuvelier [Thu, 28 Oct 2021 21:52:30 +0000 (23:52 +0200)]
Fix the Unicode encoding of langle/rangle

Author: lynx

Related issue: 12411.
https://www.lyx.org/trac/ticket/12411

The previous mapping was for HTML 4, the new one is for HTML 5.

2 years agoMark inverted branch insets
Yuriy Skalko [Thu, 21 Oct 2021 09:56:05 +0000 (12:56 +0300)]
Mark inverted branch insets

2 years agoUpdate ru.po
Yuriy Skalko [Tue, 26 Oct 2021 15:24:02 +0000 (18:24 +0300)]
Update ru.po

2 years agoUpdate layouts (run layout2layout.py)
Scott Kostyshak [Mon, 25 Oct 2021 16:28:06 +0000 (12:28 -0400)]
Update layouts (run layout2layout.py)

There is nothing in the diff besides the format number changing from
93 to 95. From what I understand, this is as expected since 93 -> 94
and 94 -> 95 just add new layout tags.

Updating the layouts makes it easier to test master. Otherwise, in
some use cases layout2layout can be run hundreds of times which can
make some things slow (e.g., opening documents or even opening the
advanced find pane).

2 years ago Update fr.po
jpc [Mon, 25 Oct 2021 08:38:44 +0000 (10:38 +0200)]
            Update fr.po

2 years ago#12150 don't set the directory file permissions of LyX app bundle to 444 anymore
Stephan Witt [Sun, 24 Oct 2021 19:43:23 +0000 (21:43 +0200)]
#12150 don't set the directory file permissions of LyX app bundle to 444 anymore

2 years agoImproved Qt framework configuration detection on macOS, add support for Qt6
Stephan Witt [Sun, 24 Oct 2021 19:41:11 +0000 (21:41 +0200)]
Improved Qt framework configuration detection on macOS, add support for Qt6

2 years ago#12408 improved release notes text for changed shortcuts on macOS
Stephan Witt [Sun, 24 Oct 2021 09:28:03 +0000 (11:28 +0200)]
#12408 improved release notes text for changed shortcuts on macOS

2 years ago#12201 force open document in tabs on Mac when user preference is Always
Stephan Witt [Sat, 23 Oct 2021 11:34:18 +0000 (13:34 +0200)]
#12201 force open document in tabs on Mac when user preference is Always

2 years agoLet Tab go out of inset when no cycling is possible
Jean-Marc Lasgouttes [Thu, 21 Oct 2021 20:36:29 +0000 (22:36 +0200)]
Let Tab go out of inset when no cycling is possible

Adapted patch from Enrico by adding S-Tab handling.

Fixes bug #11085

2 years agoMake sure that language is "latex" in InsetArgument when pass-thru.
Jean-Marc Lasgouttes [Thu, 21 Oct 2021 17:14:06 +0000 (19:14 +0200)]
Make sure that language is "latex" in InsetArgument when pass-thru.

The code that determine whether an InsetArgument is passThru is
complex and lives in updateBuffer.

This patch factors out the code in a new init method and calls it also
in doInsetInsert when inserting a InsetArgument.

Fixes bug #12143.

2 years agode.po
Juergen Spitzmueller [Thu, 21 Oct 2021 14:57:59 +0000 (16:57 +0200)]
de.po

2 years agoUpdate sk.po
Kornel Benko [Thu, 21 Oct 2021 14:43:07 +0000 (16:43 +0200)]
Update sk.po

2 years ago* better wording
Pavel Sanda [Thu, 21 Oct 2021 14:01:57 +0000 (16:01 +0200)]
* better wording

2 years agoImprove error msg.
Pavel Sanda [Thu, 21 Oct 2021 13:20:28 +0000 (15:20 +0200)]
Improve error msg.

2 years agoPrevent unneeded cprotection in branches (#12378)
Juergen Spitzmueller [Thu, 21 Oct 2021 08:27:05 +0000 (10:27 +0200)]
Prevent unneeded cprotection in branches (#12378)

2 years ago Update fr.po
jpc [Tue, 19 Oct 2021 09:43:14 +0000 (11:43 +0200)]
           Update fr.po

2 years agoDocBook: use the new refactorings in InsetText.
Thibaut Cuvelier [Tue, 19 Oct 2021 00:31:36 +0000 (02:31 +0200)]
DocBook: use the new refactorings in InsetText.

InsetText::docbookRenderAsImage directly used Qt to compute hashes, use the same code as support/FileName (now living in support/filetools).

2 years agoRefactor file-name sanitisation.
Thibaut Cuvelier [Tue, 19 Oct 2021 00:30:47 +0000 (02:30 +0200)]
Refactor file-name sanitisation.

For now, this is only used in FileName, because it does not change the semantics of DocFileName::mangledFileName.

2 years agoRefactor computing hashes.
Thibaut Cuvelier [Tue, 19 Oct 2021 00:24:22 +0000 (02:24 +0200)]
Refactor computing hashes.

For now, this is only used in FileName, because it does not change the semantics of DocFileName::mangledFileName.

2 years agoReset inline completion after undo/redo
Jean-Marc Lasgouttes [Tue, 12 Oct 2021 13:45:04 +0000 (15:45 +0200)]
Reset inline completion after undo/redo

Fixes bug #12383.

2 years agoRevert "Update correctly completion after undo"
Jean-Marc Lasgouttes [Mon, 18 Oct 2021 15:35:48 +0000 (17:35 +0200)]
Revert "Update correctly completion after undo"

This reverts commit 06acb7f806f99cd418781f9d0645b213f8241062.

2 years agoUpdate sk.po
Kornel Benko [Sun, 17 Oct 2021 19:26:50 +0000 (21:26 +0200)]
Update sk.po

2 years agoAmend 771f30e9 for cmake
Enrico Forestieri [Sun, 17 Oct 2021 17:17:01 +0000 (19:17 +0200)]
Amend 771f30e9 for cmake

2 years agoAmend 47f1fec9
Enrico Forestieri [Sun, 17 Oct 2021 16:31:52 +0000 (18:31 +0200)]
Amend 47f1fec9

Also account for cmake

2 years agode.po
Juergen Spitzmueller [Sun, 17 Oct 2021 15:34:03 +0000 (17:34 +0200)]
de.po

2 years agoDo not change bibliography processor to default if it is not found
Juergen Spitzmueller [Sun, 17 Oct 2021 09:30:24 +0000 (11:30 +0200)]
Do not change bibliography processor to default if it is not found

Rather than that, keep it with a warning that it is not available.
Fallback procedure (which maintains security measures) is done in
the conversion step.

This prevents document properties being silently changed on sharing.

2 years agoProvide proper fallback if a bibliography processor is not found
Juergen Spitzmueller [Sun, 17 Oct 2021 09:29:18 +0000 (11:29 +0200)]
Provide proper fallback if a bibliography processor is not found

Check for appropriate fallbacks and warn user if the requested
bibliography processor is unavailable.

2 years agoAmend 771f30e9
Enrico Forestieri [Sun, 17 Oct 2021 13:54:28 +0000 (15:54 +0200)]
Amend 771f30e9

2 years agoEnable QWindowsMimeMetafile with Qt6
Enrico Forestieri [Sun, 17 Oct 2021 13:06:05 +0000 (15:06 +0200)]
Enable QWindowsMimeMetafile with Qt6

The QWinMime class has been removed in Qt6 but the functionality
is still present. However, one has to allow inclusion of private
headers and register the mime handling to the QWindowsApplication
native interface.

2 years agoDocBook: use a hash to determine the file names for generated images.
Thibaut Cuvelier [Sat, 16 Oct 2021 20:41:20 +0000 (22:41 +0200)]
DocBook: use a hash to determine the file names for generated images.

This way, the file names no more change without a reason.

2 years agoDocBook: export the preview images to the right format.
Thibaut Cuvelier [Sat, 16 Oct 2021 19:12:18 +0000 (21:12 +0200)]
DocBook: export the preview images to the right format.

"docbook" is not the same as "docbook5", maybe it would be better to have an enumeration instead of strings.