]> git.lyx.org Git - features.git/log
features.git
22 months agoMode [un]locLengthString() methods to support/qstring_helpers
Juergen Spitzmueller [Tue, 9 Aug 2022 15:27:53 +0000 (17:27 +0200)]
Mode [un]locLengthString() methods to support/qstring_helpers

22 months agoLocalize display of glue lengths in dialogs
Juergen Spitzmueller [Tue, 9 Aug 2022 07:44:12 +0000 (09:44 +0200)]
Localize display of glue lengths in dialogs

22 months agoRename function
Juergen Spitzmueller [Tue, 9 Aug 2022 07:31:46 +0000 (09:31 +0200)]
Rename function

22 months ago Update fr.po
jpc [Tue, 9 Aug 2022 06:46:54 +0000 (08:46 +0200)]
        Update fr.po

22 months agoAllow entering localized lengths with unit (#11852)
Juergen Spitzmueller [Mon, 8 Aug 2022 16:34:34 +0000 (18:34 +0200)]
Allow entering localized lengths with unit (#11852)

22 months agoAdd detection for available macOS applications and add check for Skim.app as alternat...
Stephan Witt [Mon, 8 Aug 2022 13:46:57 +0000 (15:46 +0200)]
Add detection for available macOS applications and add check for Skim.app as alternate PDF viewer.

22 months agoMake "open -a" implicit on macOS
Stephan Witt [Mon, 8 Aug 2022 08:36:46 +0000 (10:36 +0200)]
Make "open -a" implicit on macOS

Fix for bug #12570 - add simple check for app bundle name and prefix it with macOS open command if name matches

22 months agoUpdate sk.po
Kornel Benko [Mon, 8 Aug 2022 08:20:48 +0000 (10:20 +0200)]
Update sk.po

22 months agoInstall icon.aliases in images/ where it is searched
Juergen Spitzmueller [Mon, 8 Aug 2022 08:13:23 +0000 (10:13 +0200)]
Install icon.aliases in images/ where it is searched

22 months agode.po
Juergen Spitzmueller [Mon, 8 Aug 2022 07:55:07 +0000 (09:55 +0200)]
de.po

22 months agoAmend 9e645a5cfc9d6c3e66d
Juergen Spitzmueller [Mon, 8 Aug 2022 07:49:51 +0000 (09:49 +0200)]
Amend 9e645a5cfc9d6c3e66d

Only show "System Default" if auto-open is available for the current
format.

22 months ago"System Default" viewer/editor option
Daniel Ramoeller [Sun, 7 Aug 2022 15:57:39 +0000 (17:57 +0200)]
"System Default" viewer/editor option

Fix for bug #12571. More user friendly way to set the system default application aka "auto" option.

22 months agoUpdate sk.po
Kornel Benko [Sun, 7 Aug 2022 17:27:06 +0000 (19:27 +0200)]
Update sk.po

22 months ago Update fr.po
jpc [Sun, 7 Aug 2022 16:06:44 +0000 (18:06 +0200)]
    Update fr.po

22 months agode.po
Juergen Spitzmueller [Sun, 7 Aug 2022 14:47:18 +0000 (16:47 +0200)]
de.po

22 months agoGuiGraphic: delimit "Scale in LyX" (1--1000%)
Juergen Spitzmueller [Sun, 7 Aug 2022 14:40:12 +0000 (16:40 +0200)]
GuiGraphic: delimit "Scale in LyX" (1--1000%)

Larger values will eventually crash LyX (see #12353), 0 or negative
values make the image disappear in the workarea and impossible to edit.

22 months agoHandle LFUN_FONT_DEFAULT is InsetTabular::Dispatch (fixes #12566)
Juergen Spitzmueller [Sun, 7 Aug 2022 12:34:42 +0000 (14:34 +0200)]
Handle LFUN_FONT_DEFAULT is InsetTabular::Dispatch (fixes #12566)

22 months agoAmend 4ba989000c4
Juergen Spitzmueller [Sun, 7 Aug 2022 08:41:02 +0000 (10:41 +0200)]
Amend 4ba989000c4

If the lfun argument already has a Flex: prefix (which is equivalent),
do not append one

22 months agoFixup cd8338636395d (#12569)
Juergen Spitzmueller [Sat, 6 Aug 2022 17:00:36 +0000 (19:00 +0200)]
Fixup cd8338636395d (#12569)

22 months agoFix font tracking at fontswitch_insets
Juergen Spitzmueller [Sat, 6 Aug 2022 15:29:40 +0000 (17:29 +0200)]
Fix font tracking at fontswitch_insets

(hopefully)

23 months agoFix a typo in copied comment.
Stephan Witt [Sun, 31 Jul 2022 21:35:14 +0000 (23:35 +0200)]
Fix a typo in copied comment.

23 months agopyupgrade related fixes to python scripts #2.
Pavel Sanda [Sun, 31 Jul 2022 18:08:44 +0000 (20:08 +0200)]
pyupgrade related fixes to python scripts #2.

Patch from Jose.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg217790.html

23 months ago Info in French UserGuide
jpc [Sun, 31 Jul 2022 16:28:23 +0000 (18:28 +0200)]
    Info in French UserGuide

23 months agopyupgrade related fixes to python scripts #2.
Pavel Sanda [Sun, 31 Jul 2022 09:13:53 +0000 (11:13 +0200)]
pyupgrade related fixes to python scripts #2.

Patch from Jose.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg217777.html

23 months agoEnhanced build script to use c++17 with EnableCXXMode for Qt6
Stephan Witt [Sat, 30 Jul 2022 13:04:37 +0000 (15:04 +0200)]
Enhanced build script to use c++17 with EnableCXXMode for Qt6

23 months agoVarious python fixes suggested by pyupgrade.
Pavel Sanda [Sat, 30 Jul 2022 22:36:51 +0000 (00:36 +0200)]
Various python fixes suggested by pyupgrade.

Patch from Jose.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg217770.html

23 months agoanother typo
Pavel Sanda [Sat, 30 Jul 2022 22:26:04 +0000 (00:26 +0200)]
another typo

23 months agowhitespace
Pavel Sanda [Sat, 30 Jul 2022 22:24:33 +0000 (00:24 +0200)]
whitespace

23 months agoDoxy for zoom args in ui-toggle lfun.
Pavel Sanda [Sat, 30 Jul 2022 22:23:09 +0000 (00:23 +0200)]
Doxy for zoom args in ui-toggle lfun.

23 months agoAmend 1dedd398: Adapt some tests to use unspecified unbind.
Kornel Benko [Wed, 27 Jul 2022 18:27:59 +0000 (20:27 +0200)]
Amend 1dedd398: Adapt some tests to use unspecified unbind.

23 months agoAllow to unbind without specifying the lfun
Jean-Marc Lasgouttes [Wed, 27 Jul 2022 09:52:50 +0000 (11:52 +0200)]
Allow to unbind without specifying the lfun

When unbinding a shortcut, it may happen that the exact definition of
the request is not known. A typical example it Tab, which is bound to
a complex command sequence.

In this case it is convenient to use the syntax
\unbind "Tab" "*"

To make this word, the special "*" value is translated to the
FuncRequest::unknown lfun and this value is considered specially in
several places.

23 months agoRemove unneeded code
Scott Kostyshak [Wed, 27 Jul 2022 11:26:19 +0000 (07:26 -0400)]
Remove unneeded code

This code was triggering the following warnings:

  src/mathed/InsetMathHull.cpp:234:15: error: variable 'counters_to_save' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]
          const char * counters_to_save[] = {"section", "chapter"};
                       ^
  src/mathed/InsetMathHull.cpp:235:21: error: unused variable 'numcnts' [-Werror,-Wunused-const-variable]
          unsigned int const numcnts = sizeof(counters_to_save)/sizeof(char *);

The original code was put in at 645f9fdf (and the comment at 8a226ec4).

This commit amends a65e12d6.

23 months agoDo not redefine \jobname for previews
Jean-Marc Lasgouttes [Wed, 27 Jul 2022 10:37:13 +0000 (12:37 +0200)]
Do not redefine \jobname for previews

This reverts the fix for #9627, with the agreement of original reporter.

Fixes preview of citation insets.

23 months agoRegenerate equations previews when their numbering changes.
Jean-Marc Lasgouttes [Mon, 25 Jul 2022 20:13:35 +0000 (22:13 +0200)]
Regenerate equations previews when their numbering changes.

Time will tell whether this is too expensive (because most equations
after this on will change too, unless equations are numbered by
section).

Related to bug #11535.

23 months agoReimplement support for numbering of equation previews
Jean-Marc Lasgouttes [Mon, 25 Jul 2022 20:09:14 +0000 (22:09 +0200)]
Reimplement support for numbering of equation previews

This patch simplifies and fixes the generation of previews with
numbering. Instead of saving the counter values (which is complicated
and error prone), the \thequation macro is set to the numbers_ string
which has been computed by updateBuffer for screen display.

Harcoding the number in the formula means that two equations with
different numbers have different previews, which is the subject of the
bug.

The special code for saving counters in updateBuffer and outputing
them in preparePreview from 645f9fdf (ticket #6894) is removed and
replaced by this simpler approach.

This fixes ticket #11535.

23 months agoRename eolString() to eol() and pass a MathTeXStream parameter
Jean-Marc Lasgouttes [Mon, 25 Jul 2022 20:02:59 +0000 (22:02 +0200)]
Rename eolString() to eol() and pass a MathTeXStream parameter

This is completely equivalent, but will allow in eol() to determine
whether one is preparing a preview.

Related to bug #11535.

23 months agoFixup 1d08af62: unused variable
Jean-Marc Lasgouttes [Mon, 25 Jul 2022 22:54:54 +0000 (00:54 +0200)]
Fixup 1d08af62: unused variable

23 months agoImplement on screen numbering for Subequation module
Jean-Marc Lasgouttes [Fri, 22 Jul 2022 22:56:07 +0000 (00:56 +0200)]
Implement on screen numbering for Subequation module

The module subequation allows to number equations in the "Subfigure"
inset to be numbered (1a), (1b), (1c), etc.

To implement this on screen, we need to redefine temporarily the
"equation" counter to use this different numbering.

To this end, implement Counters::copy method that can be used to
backup full counter definitions.

Fixes bug #12567.

23 months agoRevert "Implement on screen numbering for Subequation module"
Jean-Marc Lasgouttes [Mon, 25 Jul 2022 22:47:28 +0000 (00:47 +0200)]
Revert "Implement on screen numbering for Subequation module"

This reverts commit c6f35b6ad66e57fef3f7833430b828d5f936a35a.

23 months agoRevert "Rename eolString() to eol() ans pass a MathTeXStream parameter"
Jean-Marc Lasgouttes [Mon, 25 Jul 2022 22:46:13 +0000 (00:46 +0200)]
Revert "Rename eolString() to eol() ans pass a MathTeXStream parameter"

This reverts commit 2db682b97eff2362bb7865c7637881906bf0f2cf.

23 months agoRevert "Reimplement support for numbering of equation previews"
Jean-Marc Lasgouttes [Mon, 25 Jul 2022 22:45:57 +0000 (00:45 +0200)]
Revert "Reimplement support for numbering of equation previews"

This reverts commit f4da29306fc8acc0cca2ac6fe36f7dfcb58c2563.

23 months agoImprove comment
Jean-Marc Lasgouttes [Mon, 25 Jul 2022 22:44:16 +0000 (00:44 +0200)]
Improve comment

23 months agoReimplement support for numbering of equation previews
Jean-Marc Lasgouttes [Mon, 25 Jul 2022 20:09:14 +0000 (22:09 +0200)]
Reimplement support for numbering of equation previews

This patch simplifies and fixes the generation of previews with
numbering. Instead of saving the counter values (which is complicated
and error prone), the \thequation macro is set to the numbers_ string
which has been computed by updateBuffer for screen display.

Harcoding the number in the formula means that two equations with
different numbers have different previews, which is the subject of the
bug.

The special code for saving counters in updateBuffer and putputing
them in preparePreview from 645f9fdf (ticket #6894) is removed and
replaced by this simpler approach.

This fixes ticket #11535.

23 months agoRename eolString() to eol() ans pass a MathTeXStream parameter
Jean-Marc Lasgouttes [Mon, 25 Jul 2022 20:02:59 +0000 (22:02 +0200)]
Rename eolString() to eol() ans pass a MathTeXStream parameter

This is completely equivalent, but will allow in eol() to determine
whether one is preparing a preview.

Related to bug #11535.

23 months agoImplement on screen numbering for Subequation module
Jean-Marc Lasgouttes [Fri, 22 Jul 2022 22:56:07 +0000 (00:56 +0200)]
Implement on screen numbering for Subequation module

The module subequation allows to number equations in the "Subfigure"
inset to be numbered (1a), (1b), (1c), etc.

To implement this on screen, we need to redefine temporarily the
"equation" counter to use this different numbering.

To this end, implement Counters::copy method that can be used to
backup full counter definitions.

Fixes bug #12567.

23 months agoExport ' as ’ in HTML
Jean-Marc Lasgouttes [Sun, 17 Jul 2022 17:09:22 +0000 (19:09 +0200)]
Export ' as ’ in HTML

This is similar to what LaTeX does in its output.

See the (long) discussion in ticket #11244.

23 months agoFix flicker due to changing metrics while selecting with the mouse
Jean-Marc Lasgouttes [Fri, 22 Jul 2022 23:57:56 +0000 (01:57 +0200)]
Fix flicker due to changing metrics while selecting with the mouse

This patch has been backported from the lyx-unstable branch
https://gitlab.com/gadmm/lyx-unstable/-/commit/9d7ed42389ba

Actual author is Guillaume Munch.

Fixes bug #8951.

23 months agoImproved layout adoption on paste
Daniel Ramoeller [Thu, 15 Oct 2020 14:40:20 +0000 (16:40 +0200)]
Improved layout adoption on paste

The layout from the paste content is adopted only if
- the paragraph is empty (ie. empty after the selection has been
  erased) and Standard or Plain Layout, or
- empty and multiple lines are pasted, or
- multiple lines are pasted at the beginning of a paragraph

As for what other applications do:
- MS Word decides the adoption of a layout depending on whether the end of line
character is copied
- Libre Writer adopts the paste content layout only if the paragraph is empty
(otherwise it makes *all* pasted paragraph the target layout)

In LyX, as in Libre Writer, one cannot copy the end of line character by
selecting a single line. However, the Libre Writer solution is problematic
because one always has to make sure that a paragraph is in Standard layout if
one wants to paste several lines with their source layout. The implemented
behaviour differs from Libre Writer in that the source format is kept when end
of line characters are pasted, i.e. several lines are pasted, and hence does
what MS Word does in that situation.

Fix for bug #11023: Copy and paste from one list into another often leads to
undesired result.

23 months agoAdd proper extension as needed in Save as and Export
Jean-Marc Lasgouttes [Sun, 17 Jul 2022 18:10:53 +0000 (20:10 +0200)]
Add proper extension as needed in Save as and Export

Introduce the new FileName method ensureExtension, which does the following:
* if the extension is already correct (in a case-insensitive way), do nothing.
* if it is not correct, add the extension to the file name.

This is different from changeExtension that will fail in a case where
the file contains dots, but not a real extension, like newfile2.1.

Use this new method in renameBuffer() and exportBufferAs().

Fixes bug #11008.

23 months agoFix for blue rectangles on math Style icon
Daniel Ramoeller [Tue, 2 Feb 2021 11:02:30 +0000 (12:02 +0100)]
Fix for blue rectangles on math Style icon

Fix for bug #12103.

23 months agoFix display of bindings for StaticMenuButton
Jean-Marc Lasgouttes [Tue, 19 Jul 2022 16:39:04 +0000 (18:39 +0200)]
Fix display of bindings for StaticMenuButton

This requires to add a parameter to GuiToolbar::addItem so that it is
possble to make a difference between toolbar buttons and menu items.

The long-term solution is to rely on the menu backend for such things.

Fixes bug #12004.

23 months agoRevert "Fix display of bindings for View-other-formats dynamic toolbar menu"
Jean-Marc Lasgouttes [Tue, 19 Jul 2022 11:36:12 +0000 (13:36 +0200)]
Revert "Fix display of bindings for View-other-formats dynamic toolbar menu"

This reverts commit e2e7794c7e3c6f5f9535789019d5e78ae1f676d9.

23 months agoFix display of bindings for View-other-formats dynamic toolbar menu
Jean-Marc Lasgouttes [Tue, 19 Jul 2022 11:22:18 +0000 (13:22 +0200)]
Fix display of bindings for View-other-formats dynamic toolbar menu

Do it the same way as in menus. Also remove the tooltip, which is not used.

Fixes bug #12004.

23 months agoDisable flex-insert when inset does not exist
Jean-Marc Lasgouttes [Tue, 19 Jul 2022 10:31:50 +0000 (12:31 +0200)]
Disable flex-insert when inset does not exist

This is useful when adding icons to the toolbar that insert insets not
availble by default (but provided by a module).

Fixes bug #11690.

23 months agoWhen pasting as LaTeX, honor textclass and modules
Jean-Marc Lasgouttes [Sun, 17 Jul 2022 22:50:33 +0000 (00:50 +0200)]
When pasting as LaTeX, honor textclass and modules

There are several small parts that are needed here:

* Implement LayoutModuleList::asString() that returns a comma-separated
  list of modules.

* in Converter::convert(), handle the new tokens $$c for the current
  textclass and $$m for the list of modules.

* in Buffer::importFile(), pass the current buffer as parameter instead
  of nullptr.

* in pasteClipboardText(), copy the parameters of the current buffer to
  the internal one used for importation, so that the textclass and
  modules information is available to convert().

* finally, modify configure.py to pass "-c $$c -m $$m" to tex2lyx for
  the latexclipoard->lyx converter.

Fixes bug #11312.

23 months agoAmend 2b24c03e: Do not override (Back)Tab in Adv F&R when it is useful
Kornel Benko [Mon, 18 Jul 2022 20:55:03 +0000 (22:55 +0200)]
Amend 2b24c03e: Do not override (Back)Tab in Adv F&R when it is useful

While testing we want to override 'Tab' in Adv F&R.
Unbinding 'Tab' seems to help, thanks to JMarc for the suggestion.

23 months agoFix forcing of text class for LaTeX snippets
Jean-Marc Lasgouttes [Sun, 17 Jul 2022 22:45:01 +0000 (00:45 +0200)]
Fix forcing of text class for LaTeX snippets

When the input document is not a full document, make sure that the -c
is taken into account.

23 months agoDo not override (Back)Tab in Adv F&R when it is useful
Jean-Marc Lasgouttes [Mon, 18 Jul 2022 10:02:28 +0000 (12:02 +0200)]
Do not override (Back)Tab in Adv F&R when it is useful

In Advanced Find and Replace, Tab can be used to move the focus from
Search field to the replace field. This is inconvenient when Tab has
another use, like completion.

To fix this, check that the function bound to Tab is disabled before switching focus.

The same is done for BackTab.

Fixes bug #11114.

23 months agoProperly draw changed Captions
Daniel Ramoeller [Wed, 15 Jun 2022 07:13:05 +0000 (09:13 +0200)]
Properly draw changed Captions

Fix for bug #12555.

23 months agoRename Row::right_boundary to end_boundary
Jean-Marc Lasgouttes [Sat, 16 Jul 2022 16:13:47 +0000 (18:13 +0200)]
Rename Row::right_boundary to end_boundary

This is more correct for RtL paragraphs.

23 months agoFixup b2a7b715a2c6: At least one 'HFill' should remain in the doc.
Jean-Marc Lasgouttes [Fri, 15 Jul 2022 22:33:55 +0000 (00:33 +0200)]
Fixup b2a7b715a2c6: At least one 'HFill' should remain in the doc.

23 months agoUpdate it.po
Enrico Forestieri [Thu, 14 Jul 2022 18:59:47 +0000 (20:59 +0200)]
Update it.po

23 months agoAvoid duplicates in minibuffer history
Jean-Marc Lasgouttes [Wed, 13 Jul 2022 14:56:10 +0000 (16:56 +0200)]
Avoid duplicates in minibuffer history

The removal of duplicates is done in LastCommandsSection::add and uses
the erase-remove idiom for performance.

Most of the patch is a cleanup of GuiCommandBuffer:

* remove history_ member, that was a copy of the session lastcommands
  vector. Use instead a wrapper history() around it and a addHistory
  wrapper for adding new entries.

* Make sure that there is only one place where commands are added to
  history. The code used to maintain a list for interactive editing,
  and a list for saving the session. They could be different in terms
  of leading/trailing spaces.

* [unrelated] remove command_ member, which is just a copy of
  LyXAction list of commmands. Use directly lyxaction instead.

23 months agoFix bug #12561
Enrico Forestieri [Wed, 13 Jul 2022 17:11:03 +0000 (19:11 +0200)]
Fix bug #12561

In mathed it is assumed that a labeled line is also implicitly numbered.
However, latex allows to label an equation without numbering it.
The label is then assigned the value of a nearby numbered one.
This commit drops the above mathed assumption in order to allow to import
valid latex code with a labeled but not numbered equation line.

The screen representation omits the line number and encloses the label
in square brackets for further differentiation. However, it is still not
possible to label an equation without numbering it using the GUI.

23 months agoFixup 95da2707: document getAlias.
Jean-Marc Lasgouttes [Wed, 13 Jul 2022 11:10:57 +0000 (13:10 +0200)]
Fixup 95da2707: document getAlias.

23 months agoAmend 95da2707 for Cmake: Check for icon aliases
Kornel Benko [Wed, 13 Jul 2022 07:36:45 +0000 (09:36 +0200)]
Amend 95da2707 for Cmake: Check for icon aliases

23 months agoStyle
Scott Kostyshak [Tue, 12 Jul 2022 21:55:04 +0000 (17:55 -0400)]
Style

23 months agoCheck for icon aliases
Daniel Ramoeller [Sun, 29 May 2022 13:59:34 +0000 (15:59 +0200)]
Check for icon aliases

The aliases are defined by a file in the (system or user) image
directory. The format is pretty simple: each line is like
  <str1> <str2>
Where every instance of <str1> will be replaced with <str2>.

Fixes bug #12509.

23 months agoAllow negative values for counters
Scott Kostyshak [Sat, 9 Jul 2022 20:40:22 +0000 (16:40 -0400)]
Allow negative values for counters

enumi, for example, can be negative.

2 years agoUpdate sk.po
Kornel Benko [Tue, 5 Jul 2022 06:58:40 +0000 (08:58 +0200)]
Update sk.po

2 years agoAmend
Scott Kostyshak [Mon, 4 Jul 2022 18:36:03 +0000 (14:36 -0400)]
Amend

2 years agoctests: log an upstream issue that wasted time
Scott Kostyshak [Mon, 4 Jul 2022 18:29:07 +0000 (14:29 -0400)]
ctests: log an upstream issue that wasted time

2 years agoFixup c30b0aac: protect against bad recursion
Jean-Marc Lasgouttes [Thu, 30 Jun 2022 12:13:57 +0000 (14:13 +0200)]
Fixup c30b0aac: protect against bad recursion

Adding this particular line created bad redraw interactions. See
thread on lyx-devel here:
https://marc.info/?l=lyx-devel&m=165648365808777&w=2

The code is reorganized a bit:

- the part of updateGUI() that (en|dis)abled elements is not moved to
  updateBottons ; the rest is renamed updateWorkAreas()

- only updateButtons is called now in eventFilter

- finally the recursion curse is fixed now in updateWorkAreas() by
  setting the old_buffer value _before_ calling copy_params. This
  avoid recursion if some bad update were to happen again.

2 years agoctests: log issue triggered by microtype update
Scott Kostyshak [Fri, 1 Jul 2022 14:17:28 +0000 (10:17 -0400)]
ctests: log issue triggered by microtype update

These tests were already inverted at 93066f13.

2 years agoRemove useless message (and avoid endless loop)
Jean-Marc Lasgouttes [Thu, 30 Jun 2022 09:10:31 +0000 (11:10 +0200)]
Remove useless message (and avoid endless loop)

When changing the document class, the message "Converting document to
new document class..." is shown in minibuffer. This message leads to
weird GUI update interactions with the FindAndReplace panel, and
ultimately infinite loops. It would only be useful if the conversion
took a long time.

See this thread for rreference:
https://marc.info/?l=lyx-devel&m=165648365808777&w=2

Therefore, just remove it.

2 years agoFix crash when dissolving a top level math inset
Jean-Marc Lasgouttes [Wed, 29 Jun 2022 20:52:16 +0000 (22:52 +0200)]
Fix crash when dissolving a top level math inset

This should be disabled not only for math hull, but also macro template.

Fixes bug #12562.

2 years agoFix ToC action when cursor is in adv. F&R pane
Jean-Marc Lasgouttes [Tue, 28 Jun 2022 21:17:05 +0000 (23:17 +0200)]
Fix ToC action when cursor is in adv. F&R pane

This important part is the last point, the rest is what is needed to
make it happen.

* implement (FindAndReplace|FindAndReplaceWidget)::hasWorkArea, that
  tell whether a work area is own by the advanced find & replace
  widget.

* factor out method find() from GuiView::findOrBuild.

* implement GuiView::hasVisibleWorkArea, that tells whether a workarea
  is visible in the view (current tab in a split or adv. f&r
  workarea).

* Finally, in TocWidget::sendDispatch, change the current workarea
  temporarily to the document workarea before dispatching the
  function. The code tries to be as careful as possible to handle all
  cases. The future will tell whether it is good enough.

2 years agowhitespace
Jean-Marc Lasgouttes [Tue, 28 Jun 2022 21:12:36 +0000 (23:12 +0200)]
whitespace

2 years agoFix gcc 13 compilation.
Pavel Sanda [Tue, 28 Jun 2022 08:26:42 +0000 (10:26 +0200)]
Fix gcc 13 compilation.

Spotted by Jose.

2 years agoFix line breaking thinko with Qt4
Jean-Marc Lasgouttes [Mon, 27 Jun 2022 14:09:42 +0000 (16:09 +0200)]
Fix line breaking thinko with Qt4

The test on whether to keep trailing spaces was inverted.

2 years agoctests: invert Hebrew tests failing with microtype
Scott Kostyshak [Sun, 26 Jun 2022 17:49:48 +0000 (13:49 -0400)]
ctests: invert Hebrew tests failing with microtype

The new microtype version seems to have caused failure of our Hebrew
Article (KOMA-Script) template.

2 years agoEurope_CV: use "utf8" instead of "utf8x"
Scott Kostyshak [Mon, 20 Jun 2022 20:41:03 +0000 (16:41 -0400)]
Europe_CV: use "utf8" instead of "utf8x"

uf8x is not recommended
(https://github.com/latex3/latex2e/issues/833), and thanks to Europe
CV's recent release, is no longer needed. See here:

  https://github.com/gsilano/EuropeCV/pull/30

Europe CV still fails on an updated TeX Live (see discussion on
hooks in the above discussion for why), but this commit at least
fixes the unicode-related errors.

2 years agoEurope_CV: update format
Scott Kostyshak [Mon, 20 Jun 2022 20:38:24 +0000 (16:38 -0400)]
Europe_CV: update format

2 years agoctests: invert American Geophysical Union tests
Scott Kostyshak [Mon, 20 Jun 2022 15:54:08 +0000 (11:54 -0400)]
ctests: invert American Geophysical Union tests

Our template was already marked as "Obsolete" since the class does
not appear to be maintained. The recent LaTeX2e update triggered a
problem in the .cls file that seems unlikely to be fixed.

2 years agoctests: invert a test that fails due to TeX issue
Scott Kostyshak [Sun, 19 Jun 2022 21:51:49 +0000 (17:51 -0400)]
ctests: invert a test that fails due to TeX issue

This issue was introduced (or triggered) in the recent LaTeX2e
release and is tracked here:

  https://github.com/latex3/latex2e/issues/833

2 years agoUpdate sk.po
Kornel Benko [Tue, 14 Jun 2022 16:07:35 +0000 (18:07 +0200)]
Update sk.po

2 years ago Hopefully last shortcut conflict
jpc [Tue, 14 Jun 2022 14:30:31 +0000 (16:30 +0200)]
 Hopefully last shortcut conflict

2 years ago Solve shortcut conflicts in std*.inc and fr.po
jpc [Tue, 14 Jun 2022 13:41:32 +0000 (15:41 +0200)]
 Solve shortcut conflicts in std*.inc and fr.po

2 years agoAmend [7efdbeaddf226/lyxgit]
Juergen Spitzmueller [Mon, 13 Jun 2022 14:12:16 +0000 (16:12 +0200)]
Amend [7efdbeaddf226/lyxgit]

We do not ship the nonfloat module, actually (I had a private copy).

2 years agode.po
Juergen Spitzmueller [Mon, 13 Jun 2022 14:11:09 +0000 (16:11 +0200)]
de.po

2 years agoBetter UI for captions outside floats (#12554)
Juergen Spitzmueller [Mon, 13 Jun 2022 11:22:58 +0000 (13:22 +0200)]
Better UI for captions outside floats (#12554)

2 years agoHonor key bindings for commit string
Jean-Marc Lasgouttes [Mon, 16 May 2022 20:16:53 +0000 (22:16 +0200)]
Honor key bindings for commit string

When the commit string from the inputMethodEvent can be interpreted as
characters bound to some action, dispatch this action instead of
inserting the string.

This is useful on an international keyboard, when diaresis+space gives
a plain double quote. It is better in this case to enter a smart
quote.

Adapted from a patch from Daniel Ramoeller <d.lyx@web.de>.

Fixes bug #10377.

2 years ago Update fr.po and a couple of shortcuts defined with non-existing letters
jpc [Mon, 13 Jun 2022 07:47:54 +0000 (09:47 +0200)]
Update fr.po and a couple of shortcuts defined with non-existing letters

2 years agoUpdate sk.po
Kornel Benko [Sun, 12 Jun 2022 13:48:34 +0000 (15:48 +0200)]
Update sk.po

2 years agoAmend b2a7b715a2c
Juergen Spitzmueller [Sun, 12 Jun 2022 12:24:20 +0000 (14:24 +0200)]
Amend b2a7b715a2c

2 years agode.po
Juergen Spitzmueller [Sun, 12 Jun 2022 12:21:05 +0000 (14:21 +0200)]
de.po

2 years agoMerge branch 'master' of git.lyx.org:lyx
Juergen Spitzmueller [Sun, 12 Jun 2022 11:35:52 +0000 (13:35 +0200)]
Merge branch 'master' of git.lyx.org:lyx

2 years agoMake space names more standard
Daniel Ramoeller [Wed, 8 Jun 2022 06:20:37 +0000 (08:20 +0200)]
Make space names more standard

Fix for bug #12547.

- "Interword" becomes "Normal"
- "Protected" becomes "Non-Breaking"

Plus a minor fixes to the "Horizontal Space Settings" dialog:
- Indicate that when "Non-Breaking" is disabled, the space will be non-breaking

2 years agoctests: log fix for an upstream LaTeX2e issue
Scott Kostyshak [Fri, 10 Jun 2022 13:15:41 +0000 (09:15 -0400)]
ctests: log fix for an upstream LaTeX2e issue

2 years agoctests: log a ModernCV issue with LaTeX2e pre-rel
Scott Kostyshak [Fri, 10 Jun 2022 13:15:34 +0000 (09:15 -0400)]
ctests: log a ModernCV issue with LaTeX2e pre-rel

ModernCV currently fails with the LaTeX2e pre-release that is
expected to be released very soon.

There is a pull request with a fix that will hopefully be merged
before the new release.