]>
git.lyx.org Git - lyx.git/log
Juergen Spitzmueller [Wed, 8 Nov 2023 15:17:58 +0000 (16:17 +0100)]
Limit nomencl backwards support to case when old package is really used
This is only needed for very old versions of the nomencl package
(before March 2005)
No need to output compatibility code with newer versions
Furthermore, this breaks the use of the glossary package which also
has .glo extension (#12968)
Juergen Spitzmueller [Wed, 8 Nov 2023 14:14:37 +0000 (15:14 +0100)]
Do not reverse parentheses in pass thru insets (#12966)
Enrico Forestieri [Wed, 8 Nov 2023 08:17:38 +0000 (09:17 +0100)]
Do not accumulate underline changes
If an element is underlined in mathed by using the text properties
dialog, the changes accumulate. So, for example, to change a single
underline to a double one, one would need removing the previous
underline first. This commit allows using the text properties
dialog and simply replace an underline type with another one.
However, this works only if the underlined element is not included
in some other inset. For example, given "\uline{\text{abc}}",
selecting the 'b' and choosing a double underline produces
"\uline{\text{a\uuline{b}c}}". But, given "\text{\uline{abc}}", and
operating as before produces "\text{\uline{a}\uuline{b}\uline{c}}".
Enrico Forestieri [Wed, 8 Nov 2023 07:56:40 +0000 (08:56 +0100)]
Amend
58103cf2
Give a variable a more meaningful name and fix a typo.
Jean-Marc Lasgouttes [Tue, 7 Nov 2023 14:43:57 +0000 (15:43 +0100)]
Update math macro display when entering from above/balow
This change forces metrics computation in all cases when cursor enters
a math inset from above/below, but I do not have a better idea right now.
Fixes bug #12952.
Enrico Forestieri [Mon, 6 Nov 2023 20:03:23 +0000 (21:03 +0100)]
Silence compiler warning
Enrico Forestieri [Mon, 6 Nov 2023 17:46:22 +0000 (18:46 +0100)]
Amend
58103cf2
Correct file name.
Enrico Forestieri [Mon, 6 Nov 2023 17:04:44 +0000 (18:04 +0100)]
Allow using the text properties dialog in mathed
Until now only the color of the text could be changed by using
the text properties dialog. This commit allows changing all
other properties except for strikethrough. It is possible to
also add underlining with the limitation that the changes
accumulate. This requires other work but I think that underlining
and strikethrough are not so important in mathed and can be
refined at a later time.
Fixes #12958
Juergen Spitzmueller [Mon, 6 Nov 2023 13:16:34 +0000 (14:16 +0100)]
escape spaces in labels
refstyle doesn't work with these. See
https://marc.info/?l=lyx-users&m=
169926958114185 &w=2
Jean-Marc Lasgouttes [Mon, 6 Nov 2023 10:53:03 +0000 (11:53 +0100)]
Fix word selection expansion when going to the left
The proper way to do word-wise selection is to compute the words
around both the cursor and the anchor.
Note that code is uglier than it should because CursorData::normalAnchor()
returns a CursorSlice instead of a DocIterator.
Fixes bug #12533.
Richard Kimberly Heck [Sun, 5 Nov 2023 16:07:40 +0000 (11:07 -0500)]
Remerge strings.
Kornel Benko [Sun, 5 Nov 2023 14:46:49 +0000 (15:46 +0100)]
Update sk.po
Juergen Spitzmueller [Sun, 5 Nov 2023 12:21:23 +0000 (13:21 +0100)]
de.po
Juergen Spitzmueller [Sun, 5 Nov 2023 11:38:09 +0000 (12:38 +0100)]
Fix comment
Juergen Spitzmueller [Sun, 5 Nov 2023 11:28:27 +0000 (12:28 +0100)]
Juergen Spitzmueller [Sun, 5 Nov 2023 11:09:33 +0000 (12:09 +0100)]
Prevent data loss when closing LyX while document dialog has unapplied changes (#12955)
Entails new strings, but I think the severity allows for that.
Enrico Forestieri [Thu, 2 Nov 2023 16:54:02 +0000 (17:54 +0100)]
Inherit outer font in text-in-math environments
Some text-in-math environments such as \text, \mbox, \fbox, and
\makebox, inherit the outer text font. This commit reflects this
in the on-screen representation.
Fixes #12950.
Juergen Spitzmueller [Thu, 2 Nov 2023 09:17:06 +0000 (10:17 +0100)]
Revert "Show full inset context-menu when clicking on text part of collapsible (#10370)"
This reverts commit
6c4afc1ccb90301e7901b574d56335b89a5f4cb7 .
This needs more thinking to get the menus sane.
Enrico Forestieri [Thu, 2 Nov 2023 00:59:54 +0000 (01:59 +0100)]
Revert "Inherit outer font in text-in-math environments"
This reverts commit
d72b9b0238bd33197f0cea4a36d90d78d1cbc666 .
Unfortunately, the font taken into account is the font at the
current cursor position rather than the font of the corresponding
math inset.
Enrico Forestieri [Wed, 1 Nov 2023 21:21:49 +0000 (22:21 +0100)]
Inherit outer font in text-in-math environments
The text-in-math environments such as \text, \mbox, \fbox, \makebox
and so on, inherit the outer text font. This commit reflects this
in the on-screen representation.
Fixes #12950.
Pavel Sanda [Wed, 1 Nov 2023 20:34:46 +0000 (21:34 +0100)]
* RELEASE-NOTES rephrase
Pavel Sanda [Wed, 1 Nov 2023 20:28:31 +0000 (21:28 +0100)]
* RELEASE-NOTES - add wayland & mutter comment.
See https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg219735.html
Juergen Spitzmueller [Mon, 30 Oct 2023 11:54:29 +0000 (12:54 +0100)]
Consider PackageOptions with parskip
Juergen Spitzmueller [Mon, 30 Oct 2023 11:17:14 +0000 (12:17 +0100)]
Amend
9de9ec1e88fab
When setting halfline parskip with parskip provided, we still need
to set this explicitly, as we don't know the current \parskip value.
Also improve code readability.
Juergen Spitzmueller [Mon, 30 Oct 2023 08:22:14 +0000 (09:22 +0100)]
Do not add empty \parskip definition (reported in #12946)
Pavel Sanda [Fri, 27 Oct 2023 19:18:45 +0000 (21:18 +0200)]
Revert "MathML: don't output delimiters in InsetMathBinom and InsetMathDelim if the delimiter is a space."
This reverts commit
be44cb85165 , see #12891.
Pavel Sanda [Thu, 26 Oct 2023 19:30:20 +0000 (21:30 +0200)]
* RELEASE-NOTES
Jean-Marc Lasgouttes [Tue, 24 Oct 2023 12:52:33 +0000 (14:52 +0200)]
Document icon.aliases in Release notes
Jean-Marc Lasgouttes [Tue, 24 Oct 2023 12:33:04 +0000 (14:33 +0200)]
Use same icon for outline-in/out regardeless of "local" argument
Final touch to #12417.
Jean-Marc Lasgouttes [Tue, 24 Oct 2023 11:48:57 +0000 (13:48 +0200)]
fix comment
Juergen Spitzmueller [Mon, 23 Oct 2023 04:54:03 +0000 (06:54 +0200)]
de.po: remerge
Juergen Spitzmueller [Sun, 22 Oct 2023 08:19:50 +0000 (10:19 +0200)]
Enter table after insertion (#12101)
posForward() jumped over the inset, which is not what is wanted here,
I think (cf. other inset insertion methods)
Pavel Sanda [Sat, 21 Oct 2023 21:07:53 +0000 (23:07 +0200)]
Move textstyle-apply icon back to the group of text-style related icons (+ its appearance).
(part of ongoing discussion in #11427)
Kornel Benko [Sat, 21 Oct 2023 15:46:08 +0000 (17:46 +0200)]
Update sk.po
Juergen Spitzmueller [Sat, 21 Oct 2023 11:49:50 +0000 (13:49 +0200)]
Disable OUTLINE functions when min or max toclevel is reached
Juergen Spitzmueller [Sat, 21 Oct 2023 11:48:50 +0000 (13:48 +0200)]
Let OUTLINE functions jump from section to part if there is no chapter
Fixes #12938
Juergen Spitzmueller [Sat, 21 Oct 2023 10:53:31 +0000 (12:53 +0200)]
de.po
Juergen Spitzmueller [Sat, 21 Oct 2023 10:52:49 +0000 (12:52 +0200)]
Make string translatable
Juergen Spitzmueller [Sat, 21 Oct 2023 10:34:47 +0000 (12:34 +0200)]
Disambiguate "Language"
Some translations need a different term for programming languages.
Juergen Spitzmueller [Fri, 20 Oct 2023 07:53:38 +0000 (09:53 +0200)]
Fix tautology spotted by coverity
The if and else paths have been identical since the removal of dvipost
(
a450797b2ab160f5 )
Juergen Spitzmueller [Fri, 20 Oct 2023 07:35:55 +0000 (09:35 +0200)]
Fix coverity-detected issue CID 403672
Error handling issues (CHECKED_RETURN)
Calling "translateString" without checking return value
(as is done elsewhere 15 out of 18 times).
AFAICS we do not need the boolean return value in these two cases.
Jean-Marc Lasgouttes [Wed, 18 Oct 2023 10:28:47 +0000 (12:28 +0200)]
Fixup
65cb9fa4 : avoid extra spacing when selecting math
This was happening whenever a selection started/ended after a fraction
inset.
Scott Kostyshak [Wed, 18 Oct 2023 02:16:11 +0000 (22:16 -0400)]
ctests: uninvert an export fixed in acmart
Fixed after a tlmgr update with acmart version 1.92.
See here for info:
https://github.com/borisveytsman/acmart/issues/505
Juergen Spitzmueller [Mon, 16 Oct 2023 11:40:40 +0000 (13:40 +0200)]
jpc [Mon, 16 Oct 2023 08:58:41 +0000 (10:58 +0200)]
Update fr.po
Juergen Spitzmueller [Mon, 16 Oct 2023 07:48:32 +0000 (09:48 +0200)]
update German UG
Juergen Spitzmueller [Mon, 16 Oct 2023 07:48:17 +0000 (09:48 +0200)]
extend explanation of hyphenation handling
Richard Kimberly Heck [Mon, 16 Oct 2023 01:53:36 +0000 (21:53 -0400)]
Add note on \hyphenation
Richard Kimberly Heck [Mon, 16 Oct 2023 01:48:11 +0000 (21:48 -0400)]
Fix documentation on hyphenation points
Juergen Spitzmueller [Sun, 15 Oct 2023 09:20:49 +0000 (11:20 +0200)]
Only apply ui_style if it has changed
Juergen Spitzmueller [Sun, 15 Oct 2023 09:16:25 +0000 (11:16 +0200)]
de.po
Juergen Spitzmueller [Sun, 15 Oct 2023 09:02:45 +0000 (11:02 +0200)]
Warn user that uistyle reset to default requires restart
Juergen Spitzmueller [Sun, 15 Oct 2023 09:02:35 +0000 (11:02 +0200)]
Simplify
Juergen Spitzmueller [Sun, 15 Oct 2023 07:41:22 +0000 (09:41 +0200)]
Update German User Guide
Juergen Spitzmueller [Sun, 15 Oct 2023 07:40:58 +0000 (09:40 +0200)]
Make new gui element translatable
Juergen Spitzmueller [Sun, 15 Oct 2023 07:19:37 +0000 (09:19 +0200)]
de.po
Juergen Spitzmueller [Sun, 15 Oct 2023 07:17:31 +0000 (09:17 +0200)]
complement tooltip
Eugene Chornyi [Sun, 15 Oct 2023 06:46:12 +0000 (08:46 +0200)]
Implement ui style selection dialog 12832 attempt 2
Daniel Ramoeller [Thu, 6 Jan 2022 06:47:49 +0000 (07:47 +0100)]
Correctly update Outliner icon size
Fix for #12453
jpc [Fri, 13 Oct 2023 09:25:24 +0000 (11:25 +0200)]
Update fr.po
Daniel Ramoeller [Fri, 13 Oct 2023 07:17:39 +0000 (09:17 +0200)]
Add separator between depth and inset stuff
Adds a separator that is missing between depth increase/decrease and inset stuff in the Edit menu
Fix for bug #12931.
Jean-Marc Lasgouttes [Thu, 12 Oct 2023 09:28:44 +0000 (11:28 +0200)]
Do not use Color_selectionmath when selection is gone
It might happen that the selection goes away without recomputing
metrics (for example with char-forward). The added test is a bit of a
band-aid for this situation. A better solution would be to understand
better when metrics computation is triggered in mathed.
Jean-Marc Lasgouttes [Thu, 12 Oct 2023 09:09:46 +0000 (11:09 +0200)]
Use Color_selectionmath as needed for multi-cell selection in math
This is complementary to partial selection implemented at
65cb9fa4 .
Eugene Chornyi [Wed, 11 Oct 2023 21:20:37 +0000 (23:20 +0200)]
Eugene Chornyi [Wed, 11 Oct 2023 20:03:29 +0000 (22:03 +0200)]
Pavel Sanda [Wed, 11 Oct 2023 19:07:12 +0000 (21:07 +0200)]
Add space padding around word count forgotten part of (#12625).
Again from Daniel.
Pavel Sanda [Wed, 11 Oct 2023 19:01:56 +0000 (21:01 +0200)]
Remove ugly frame around word count (#12625).
Requested and tested by Daniel.
Thibaut Cuvelier [Sun, 8 Oct 2023 00:12:35 +0000 (02:12 +0200)]
MathML: don't output delimiters in InsetMathBinom and InsetMathDelim if the delimiter is a space.
Eugene Chornyi [Wed, 11 Oct 2023 18:06:52 +0000 (20:06 +0200)]
Implement ui style selection dialog 12832
Scott Kostyshak [Tue, 10 Oct 2023 14:35:53 +0000 (10:35 -0400)]
ctests: uninvert DocBook test due to recent fix
Scott Kostyshak [Tue, 10 Oct 2023 14:07:23 +0000 (10:07 -0400)]
Fix three sign-compare compiler warning
Fixes three similar warnings. One of them is the following:
src/insets/InsetInfo.cpp:1583:20: error: comparison of integers of different signs: 'int' and 'std::basic_string<wchar_t>::size_type' (aka 'unsigned long') [-Werror,-Wsign-compare]
for (int i = 0; i < sequence.length(); ++i) {
~ ^ ~~~~~~~~~~~~~~~~~
Thibaut Cuvelier [Sun, 8 Oct 2023 20:09:59 +0000 (22:09 +0200)]
XHTML: implement InsetInfo.
Thibaut Cuvelier [Sun, 8 Oct 2023 19:11:17 +0000 (21:11 +0200)]
DocBook: fix a crash in docbookSimpleAllParagraphs.
When having the code preview pane open with examples/Language_Support/Mixing_Japanese_with_other_Languages_(with_CJKutf8), clicking at random on paragraphs sometimes yielded a crash: *par when par is the end of the iterator. LyX could output the whole document as DocBook without this patch and still generates the same output with it (i.e. no text is missing).
Thibaut Cuvelier [Sun, 8 Oct 2023 19:06:46 +0000 (21:06 +0200)]
DocBook: in InsetInfo, ensure that no db:date is inserted within a db:date.
Thibaut Cuvelier [Sat, 7 Oct 2023 23:39:45 +0000 (01:39 +0200)]
DocBook: fix closing formatting after deleted text.
Previously, when closing font tags, only the previous character's font was used. However, if that character is deleted, it had no change of having the right font tags opened/closed. Hence, look further to compare the font of the current character to output with the font of the previously output character.
Thibaut Cuvelier [Sat, 7 Oct 2023 23:38:27 +0000 (01:38 +0200)]
DocBook: fix formatting of TODOs.
The lines were very long; this commit truncates them to 120 characters.
Thibaut Cuvelier [Sat, 7 Oct 2023 23:20:14 +0000 (01:20 +0200)]
DocBook: add support for InsetInfo.
A similar patch would be required for LyXHTML, but it will come later. The main impact is that some text isn't output in XHTML (like DocBook before this patch).
The code isn't as clean as it could be. I avoided touching anything not related to DocBook, as the release of 2.4 is nearing, while leaving comments for parts to improve for the next release cycle. Given that the code compiles, there are no risks for TeX or XHTML outputs; for DocBook, less content is skipped, which is a net improvement for users.
Juergen Spitzmueller [Tue, 10 Oct 2023 06:53:50 +0000 (08:53 +0200)]
de.po
Pavel Sanda [Mon, 9 Oct 2023 18:41:57 +0000 (20:41 +0200)]
Few string fixes from Dan.
Kornel Benko [Mon, 9 Oct 2023 16:05:51 +0000 (18:05 +0200)]
Add missed file "org.lyx.LyX.metainfo.xml" to cmake build
Scott Kostyshak [Sat, 7 Oct 2023 18:57:30 +0000 (14:57 -0400)]
ctests: add test cases for DocBook
Patch from Thibaut Cuvelier.
Kornel Benko [Fri, 6 Oct 2023 09:18:59 +0000 (11:18 +0200)]
Update sk.po
Pavel Sanda [Wed, 4 Oct 2023 12:53:07 +0000 (14:53 +0200)]
* cs.po
Pavel Sanda [Wed, 4 Oct 2023 12:43:50 +0000 (14:43 +0200)]
remerge cs.po
Juergen Spitzmueller [Wed, 4 Oct 2023 11:49:34 +0000 (13:49 +0200)]
Amend
3f0bb8aa43af
Account for the paragraph marker
Juergen Spitzmueller [Wed, 4 Oct 2023 11:40:38 +0000 (13:40 +0200)]
Fix assertion on paste with empty pars
Juergen Spitzmueller [Wed, 4 Oct 2023 11:29:06 +0000 (13:29 +0200)]
document selectionmath color
Juergen Spitzmueller [Wed, 4 Oct 2023 11:22:27 +0000 (13:22 +0200)]
de.po
Juergen Spitzmueller [Wed, 4 Oct 2023 11:10:07 +0000 (13:10 +0200)]
Introduce color_selectionmath
To have a distinctive color for selected math which works in both modes
Also, link color_selectionmath with QPalette::HighlightedText, so we
won't need to special-case on lyxrc.use_system_colors any longer
Jean-Marc Lasgouttes [Tue, 3 Oct 2023 09:38:40 +0000 (11:38 +0200)]
Use Color_selectiontext as needed for partial selection in math
Currently, selected math hull insets use Color_selectiontext when
system colors are in use. This commit implements the same behavior
for partial selection.
This is done by introducing two element types (BEGIN_SEL and END_SEL)
to MathRow.
Kornel Benko [Sun, 1 Oct 2023 18:15:07 +0000 (20:15 +0200)]
Update sk.po
Juergen Spitzmueller [Sun, 1 Oct 2023 10:20:40 +0000 (12:20 +0200)]
Revert the logic of
343a9749abe4f3
It might be better to be explicit also with black, after all.
Juergen Spitzmueller [Sun, 1 Oct 2023 09:38:10 +0000 (11:38 +0200)]
Simplify
Juergen Spitzmueller [Sun, 1 Oct 2023 09:08:11 +0000 (11:08 +0200)]
When box background is "none", frame color != black and page color has been set
then use the page color as box background, not white
Juergen Spitzmueller [Sun, 1 Oct 2023 08:12:52 +0000 (10:12 +0200)]
No need to use \fcolorbox with explicit black frame and no background
White background, however, is always treated explicit (think non-white
page background)
Juergen Spitzmueller [Sun, 1 Oct 2023 07:34:50 +0000 (09:34 +0200)]
Require xcolor whenever we use an \fcolorbox
Juergen Spitzmueller [Sun, 1 Oct 2023 07:26:26 +0000 (09:26 +0200)]
Scott Kostyshak [Sun, 1 Oct 2023 00:43:10 +0000 (20:43 -0400)]
ctests: uninvert couple of suspended tests
Due to recent changes, 'xcolor' is now loaded in the corresponding
document export, which somehow fixes the compilation error that was
occurring.
Scott Kostyshak [Sun, 1 Oct 2023 00:21:22 +0000 (20:21 -0400)]
Amend
087f6bce
Explanation from Udi:
There is a missing validation for the requirement of xcolor in
InsetBox::validate, the case we use Boxed with non-default color.
Patch from Udi.
Scott Kostyshak [Sun, 1 Oct 2023 00:20:03 +0000 (20:20 -0400)]
Amend
04bfbc0f
Patch from Udi.