]>
git.lyx.org Git - lyx.git/log
Scott Kostyshak [Sun, 20 Nov 2022 19:37:11 +0000 (14:37 -0500)]
Comments
Enrico Forestieri [Sun, 20 Nov 2022 18:01:38 +0000 (19:01 +0100)]
Do not allow pasting backslashes in macro names
Backslashes are not allowed in macro names and LyX
enforces this by not allowing entering them by keyboard.
However, it was possible to paste them and this may cause
crashes (see bug #12596).
Juergen Spitzmueller [Sun, 20 Nov 2022 17:18:59 +0000 (18:18 +0100)]
Regenerate previews after zoom (#11919)
Thibaut Cuvelier [Sun, 20 Nov 2022 15:32:58 +0000 (16:32 +0100)]
symbols: fix a type for \Im
Thibaut Cuvelier [Sun, 20 Nov 2022 15:19:17 +0000 (16:19 +0100)]
Amend
48d9d01a : remove debug output
Scott Kostyshak [Sun, 20 Nov 2022 14:48:13 +0000 (09:48 -0500)]
ctests: uninvert two xhtml tests
These exports previously had xmllint errors. These errors seem to
have been fixed thanks to the "features/indexmacros" merge.
Related to #10355.
Thibaut Cuvelier [Sun, 20 Nov 2022 14:20:53 +0000 (15:20 +0100)]
Update the format for some doc pages
Thibaut Cuvelier [Sun, 20 Nov 2022 01:02:13 +0000 (02:02 +0100)]
InsetIndex: when building the IndexNode tree, ignore IndexEntry when empty
The previous code always considered it had at least one term (an assumption that is wrong at least for doc/de/Math.lyx).
Thibaut Cuvelier [Sat, 19 Nov 2022 23:19:53 +0000 (00:19 +0100)]
InsetIndex: enable escaping for terms in the index
The previous code explicitly disabled it and this behaviour caused problems (like "A&A" being output as-is, which is wrong in HTML: it should be "A&A").
Thibaut Cuvelier [Sat, 19 Nov 2022 23:12:06 +0000 (00:12 +0100)]
InsetIndex: improve formatting of resulting XHTML
There was no line feed before the closing </li> for entries, which was inconsistent with the other block tags.
Thibaut Cuvelier [Sat, 19 Nov 2022 22:33:43 +0000 (23:33 +0100)]
Improve wording of RELEASE-NOTES entry
Pavel Sanda [Wed, 16 Nov 2022 20:23:01 +0000 (21:23 +0100)]
Drop C++17 if init-statements to support older compilers.
Jean-Marc Lasgouttes [Wed, 16 Nov 2022 16:43:22 +0000 (17:43 +0100)]
Fix compilation with gcc 4.9
It appears that gcc 4.9 does not implement the following part of C++11:
https://cplusplus.github.io/CWG/issues/1148.html
Therefore, we have to use a special case in C++11 mode that does an
explicit std:move.
With recent compilers (gcc >= 9), this leads in C++11 mode to a warning:
MetricsInfo.cpp: In member function ‘lyx::Changer lyx::MetricsBase::changeFontSet(const string&)’:
../../master/src/MetricsInfo.cpp:83:13: warning: redundant move in return statement [-Wredundant-move]
83 | return move(rc);
| ~~~~^~~~
MetricsInfo.cpp:83:13: note: remove ‘std::move’ call
Partly reverts commit
fff28c57 .
Jean-Marc Lasgouttes [Wed, 16 Nov 2022 09:22:11 +0000 (10:22 +0100)]
Merge branch 'breakspace'
This branch improves handling of spaces on display (see #10117):
* caret is correctly shown in the middle of double spaces in justified rows;
* sequence spaces are correctly shown at the end of rows before
automatic row breaks.
Moreover, this branch:
* streamlines the code that handles spaces in row breaking
* improves display in Qt4 : although the improvements outlined above
are not present in Qt4 for monospaced fonts, some dsplay glitches
are resolved.
* improves performance for very long paragraphs (#12598).
Juergen Spitzmueller [Fri, 11 Nov 2022 07:12:14 +0000 (08:12 +0100)]
Fix tex2lyx corner case (#12537)
Jean-Marc Lasgouttes [Thu, 10 Nov 2022 16:24:56 +0000 (17:24 +0100)]
(almost) Fix Qt4 support
When is it detected that our zero-width characters are not really
zero-width, avoid to use them altogether. Currently, this is known to
happen in Qt4 with monospace fonts.
This allow to remove the special Qt4 code in breaskString_helper.
Related to bug #10117.
Scott Kostyshak [Thu, 10 Nov 2022 15:34:15 +0000 (10:34 -0500)]
CMake build: disable warn about not known policy
This only showed up with -DLYX_EXTERNAL_ICONV=OFF.
Jean-Marc Lasgouttes [Thu, 14 Jul 2022 16:22:46 +0000 (18:22 +0200)]
Use TextLayoutHelper in x2pos and pos2x
This leads to substantial code simplification.
No intended behavior change.
Related to ticket #10117.
Jean-Marc Lasgouttes [Thu, 14 Jul 2022 15:24:33 +0000 (17:24 +0200)]
Refactor GuiFontMetrics::getLayout
This allows to create a new version that takes an already built
TextLayoutHelper struct as parameter.
No intended change.
See discussion in bug #10117.
Jean-Marc Lasgouttes [Mon, 11 Jul 2022 21:56:35 +0000 (23:56 +0200)]
Handle multiple spaces at row break
In order to work around the Qt row breaking algorithm, which considers
multiple spaces as one at QTextLine break, we insert word_joiner unicode
characters beteween each pair of spaces.
The TextLayoutHelper class makes it easy to handle that.
Update Row::Element::rtrim() to only remove one space at row end.
Update support::countExpanders() to count all spaces, without special
handling for consecutive ones.
Fixes bug #10117.
Jean-Marc Lasgouttes [Sun, 10 Jul 2022 20:44:23 +0000 (22:44 +0200)]
Introduce a struct to handle docstring <-> QString index translation
This new code allows to get rid of some hardcoded stuff and will be a
foundation for handling of consecutive spaces.
This code can be used in the future for getTextLayout, x2pos, and
pos2x in order to streamline code. Actually some features as the naked
parameter are here to prepare for this second set of changes.
No change intended. The modified code is much clearer, though.
Related to bug #10117.
Jean-Marc Lasgouttes [Mon, 7 Nov 2022 23:10:18 +0000 (00:10 +0100)]
Revert "Fixup
572b06d6 : reduce cache size for breakString"
10MB cache is not so large after all, and it can be helpful with
Scott's perverse examples.
This reverts commit
2abe7714078a0f772af2e3e2675d6f2b3c054e08 .
Fixes part of bug #12598.
Jean-Marc Lasgouttes [Mon, 7 Nov 2022 23:06:18 +0000 (00:06 +0100)]
Fix expensive thinko: operator++ returns a reference, not a copy
This accounts for 45% of the row breaking time on the (huge) paragraph
of the MWE in bug #12598.
Fixes part of bug #12598.
Kornel Benko [Mon, 7 Nov 2022 10:28:15 +0000 (11:28 +0100)]
Update sk.po
Juergen Spitzmueller [Sun, 6 Nov 2022 16:17:33 +0000 (17:17 +0100)]
Revert "Try to be more pedantic wrt blank lines in lyx2lyx output"
This reverts commit
9ce0ff50c1a96b276fa1a74f358718bf571f3dfb .
Juergen Spitzmueller [Sun, 6 Nov 2022 15:40:12 +0000 (16:40 +0100)]
Try to be more pedantic wrt blank lines in lyx2lyx output
Hopefully to the tests' please
Scott Kostyshak [Sun, 6 Nov 2022 15:06:50 +0000 (10:06 -0500)]
Correct typos of "occurred" in warnings/errors
Change "occured" and "ocurred" to "occurred".
Jean-Marc Lasgouttes [Thu, 27 Oct 2022 15:26:53 +0000 (17:26 +0200)]
Fix pasting as LaTeX in documents with no modules
When there is no module, the old code would invoke tex2lyx with option
-m
instead of
-m ""
and an error would ensue.
This is because the QProcess command line parser used in Systemcall is
broken and does not recognize empty parameters as such. The solution
is to rewrite our parsecmd() parser to generate a list of parameters.
This is post-2.4.0 work.
The workaround used here is:
- set the list of modules to "," when it should be empty. In effect,
this is a list of two empty modules.
- change tex2lyx to accept empty module names and ignore them; this is
good in terms of robustness anyway.
Additionally, when there is no receiving buffer, set the defaults as
the BufferParams defaults instead of empty (this is cleaner, but
should not make a difference in practice).
In the long term, we should switch to use the QStringList-based API of
QProcess in Systemcall (see QTBUG-80640).
jpc [Sun, 6 Nov 2022 10:15:08 +0000 (11:15 +0100)]
Update fr.po
Juergen Spitzmueller [Sun, 6 Nov 2022 08:11:18 +0000 (09:11 +0100)]
de/UserGuide: document index-tag-all
Juergen Spitzmueller [Sun, 6 Nov 2022 08:09:12 +0000 (09:09 +0100)]
de.po
Scott Kostyshak [Sat, 5 Nov 2022 18:50:34 +0000 (14:50 -0400)]
ctests: ignore a couple more roundtrip tests
Export fails after compilation with the following error:
ERROR: CHAR: index 0 should be less than the length of the string
Scott Kostyshak [Sat, 5 Nov 2022 18:26:43 +0000 (14:26 -0400)]
Guard some debug code
Amend
f352a375 and
3bf1b97a .
Juergen Spitzmueller [Sat, 5 Nov 2022 17:39:33 +0000 (18:39 +0100)]
Introduce index-tag-all lfun
This is a convenience function for indexing. It adds a copy of the
index inset under cursor after any word in the buffer that is equal
(case-insensitively) to the word preceding the index inset.
The function can be easily used to generate bad indexes (and I warn
about that in the UserGuide), but if used with care, it can also be
extremely convenient.
Scott Kostyshak [Sat, 5 Nov 2022 14:36:35 +0000 (10:36 -0400)]
ctests: log a waste
Scott Kostyshak [Sat, 5 Nov 2022 14:34:18 +0000 (10:34 -0400)]
ctests: ignore a couple fragile lyx2lyx tests
From Kornel [1]:
Exporting to 2.3 format and exporting from the exported differ in extra lines and
in changed sequence of 2 lines at begin.
$ diff doc/fr/UserGuide.23.lyx fr/UserGuide.23.23.lyx
[1] https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg218252.html
Juergen Spitzmueller [Sat, 5 Nov 2022 07:34:36 +0000 (08:34 +0100)]
Update RELEASE_NOTES
Daniel Ramoeller [Sat, 6 Aug 2022 05:13:51 +0000 (07:13 +0200)]
Show suggestions containing the input in the command buffer
Previously, only the suggestions starting with the current input were
shown.
Contains the following minor improvements:
- Add space to indicate when only one suggestion is found
- Select first item in suggestion-list in order to make selecting with
arrow keys more intuitive
- Fix selection with Shift+Up/Down in text-field
Fix for bug #12572.
Jean-Marc Lasgouttes [Fri, 4 Nov 2022 20:52:46 +0000 (21:52 +0100)]
New lfun to copy index insets from ToC
The new function inset-insert-copy can only be invoked from the ToC.
It is currently only implemented for Index inset.
It is a special lfun because Inset::dispatch is called directly from
the ToC widget with cursor pointing to the inset, whereas the patch
happens in the workarea at caret position. This function cannot be
called directly.
Add an entry for this function in the toc context menu.
Fixes bug #4582.
Jean-Marc Lasgouttes [Fri, 4 Nov 2022 20:46:32 +0000 (21:46 +0100)]
When Inset::dispatch is called from TOC, process screen flags
This is needed because we are not using the complete dispatch
machinery here.
Part of bug #4582.
Jean-Marc Lasgouttes [Fri, 4 Nov 2022 20:44:24 +0000 (21:44 +0100)]
Introduce new function copyInsetToTemp
This is a version of copyInset that does touch the cut stack and the X
selection.
Part of bug #4582.
Jean-Marc Lasgouttes [Fri, 4 Nov 2022 20:36:43 +0000 (21:36 +0100)]
Fix another use of unqualified std::move
jpc [Fri, 4 Nov 2022 17:05:43 +0000 (18:05 +0100)]
Update fr.po
Kornel Benko [Fri, 4 Nov 2022 14:34:49 +0000 (15:34 +0100)]
Amend
9be6a425 , Workaround for advanced search in 'uncover'-inset.
Use getInset(i)->toString() instead of getInset(i)->plaintext()
if searching, so that we get the option of 'uncover' visible to the search engine.
Kornel Benko [Fri, 4 Nov 2022 11:47:35 +0000 (12:47 +0100)]
Update sk.po
Juergen Spitzmueller [Fri, 4 Nov 2022 10:37:38 +0000 (11:37 +0100)]
de.po
Juergen Spitzmueller [Fri, 4 Nov 2022 10:29:56 +0000 (11:29 +0100)]
Add some options to index context menu
Juergen Spitzmueller [Fri, 4 Nov 2022 08:03:55 +0000 (09:03 +0100)]
Adapt French docs to new index features
Juergen Spitzmueller [Fri, 4 Nov 2022 07:32:34 +0000 (08:32 +0100)]
Do not \protect stuff in index when we postpone the index
\protect us not needed here and affects sorting
Juergen Spitzmueller [Fri, 4 Nov 2022 06:57:56 +0000 (07:57 +0100)]
Fix page range without page format
Scott Kostyshak [Thu, 3 Nov 2022 20:02:22 +0000 (16:02 -0400)]
ctests: log a waste and a success
A couple of the lyx2lyx tests were helpful, and a couple did not
lead to a fix. In particular, testing compilation was not helpful in
this case.
Scott Kostyshak [Thu, 3 Nov 2022 20:00:22 +0000 (16:00 -0400)]
ctests: ignore some lyx2lyx tests that fail
From Jürgen [1]:
These are old problems. One is related to a questionable nomencl change
which we addressed in master but not in stable, see
https://www.lyx.org/trac/ticket/10634#comment:2
The other is due to CJK quotation marks which are not supported in 2.3.
We ignore, rather than invert, since no plans to fix these.
[1] https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg218237.html
Juergen Spitzmueller [Thu, 3 Nov 2022 06:14:14 +0000 (07:14 +0100)]
Juergen Spitzmueller [Thu, 3 Nov 2022 04:54:50 +0000 (05:54 +0100)]
Fix glitch in index reversion routine
Juergen Spitzmueller [Wed, 2 Nov 2022 14:56:59 +0000 (15:56 +0100)]
Indicate see[also] refs in label and outliner
Juergen Spitzmueller [Wed, 2 Nov 2022 14:24:13 +0000 (15:24 +0100)]
Adapt all German and English manuals to new index features
Juergen Spitzmueller [Wed, 2 Nov 2022 11:33:20 +0000 (12:33 +0100)]
Do not unnecessarily reset the outliner to TOC on internal model changes
The activated() signal is only issued on user changes, what we want here,
not internal model changes (as with currentIndexChanged())
Juergen Spitzmueller [Wed, 2 Nov 2022 09:46:11 +0000 (10:46 +0100)]
Remove wrong count comment
Kornel Benko [Wed, 2 Nov 2022 09:33:29 +0000 (10:33 +0100)]
Workaround for advanced search in 'uncover'-inset.
Allows for matches inside style Uncover if used
Settings->Adhere to search string formatting
This does not cover all of #12594 though.
Kornel Benko [Wed, 2 Nov 2022 09:33:06 +0000 (10:33 +0100)]
Update sk.po
Juergen Spitzmueller [Wed, 2 Nov 2022 08:33:09 +0000 (09:33 +0100)]
lyx2lyx: fix index reversion
This was only a warning, but it made the tests fail
jpc [Tue, 1 Nov 2022 15:51:01 +0000 (16:51 +0100)]
Update fr.po
Juergen Spitzmueller [Tue, 1 Nov 2022 13:45:37 +0000 (14:45 +0100)]
German documentation of new index features
Juergen Spitzmueller [Tue, 1 Nov 2022 11:13:45 +0000 (12:13 +0100)]
de.po
Juergen Spitzmueller [Tue, 1 Nov 2022 10:55:57 +0000 (11:55 +0100)]
Fix output of subentry with sortkey
Juergen Spitzmueller [Tue, 1 Nov 2022 10:06:50 +0000 (11:06 +0100)]
UserGuide: use new features for all index entries
Juergen Spitzmueller [Tue, 1 Nov 2022 09:20:50 +0000 (10:20 +0100)]
Handle empty index subentries (#7820)
Thibaut Cuvelier [Mon, 31 Oct 2022 22:57:41 +0000 (23:57 +0100)]
InsetIndex: hide printTree behind a LYX_INSET_INDEX_DEBUG flag
The change ensures that the function is not seen by the compiler when
the debug mode is not enabled. The flag is not set by default, because
it might have a significant performance impact for large indices.
The reason for the flag is that the default configuration under Linux
forbids the definition of unused functions.
Kornel Benko [Mon, 31 Oct 2022 21:57:02 +0000 (22:57 +0100)]
Update sk.po
Juergen Spitzmueller [Mon, 31 Oct 2022 20:11:07 +0000 (21:11 +0100)]
Update tex2lyx tests
Juergen Spitzmueller [Mon, 31 Oct 2022 18:32:52 +0000 (19:32 +0100)]
Merge branch 'features/indexmacros'
Juergen Spitzmueller [Mon, 31 Oct 2022 18:26:39 +0000 (19:26 +0100)]
Document new inset features
Juergen Spitzmueller [Mon, 31 Oct 2022 06:52:11 +0000 (07:52 +0100)]
Typo
Juergen Spitzmueller [Mon, 31 Oct 2022 05:51:38 +0000 (06:51 +0100)]
Rename subindex to subentry
Makes more sense, and distinguishes it better from printsubindex
Juergen Spitzmueller [Mon, 31 Oct 2022 05:04:13 +0000 (06:04 +0100)]
Display subinsets in inset button and outliner
Juergen Spitzmueller [Mon, 31 Oct 2022 04:25:04 +0000 (05:25 +0100)]
Enter subindex on Enter in index
Juergen Spitzmueller [Mon, 31 Oct 2022 03:33:07 +0000 (04:33 +0100)]
Add Christopher Hillenbrand to the credits
Juergen Spitzmueller [Sat, 29 Oct 2022 13:40:06 +0000 (15:40 +0200)]
Add some comments
jpc [Sat, 29 Oct 2022 13:17:32 +0000 (15:17 +0200)]
Update fr.po
Juergen Spitzmueller [Sat, 29 Oct 2022 13:11:11 +0000 (15:11 +0200)]
Add last missing bit to insetindexmacros: file format change and lyx2lyx
The feature is now ready for primetime!
Juergen Spitzmueller [Sat, 29 Oct 2022 10:51:17 +0000 (12:51 +0200)]
format change stub (to be updated before merge)
Juergen Spitzmueller [Sat, 29 Oct 2022 10:48:45 +0000 (12:48 +0200)]
Enable pagination property with inset sortkey
Kornel Benko [Sat, 29 Oct 2022 09:52:02 +0000 (11:52 +0200)]
Update sk.po
Juergen Spitzmueller [Sat, 29 Oct 2022 09:42:14 +0000 (11:42 +0200)]
Merge branch 'master' into features/indexmacros
Juergen Spitzmueller [Sat, 29 Oct 2022 09:20:50 +0000 (11:20 +0200)]
de.po
Juergen Spitzmueller [Sat, 29 Oct 2022 09:17:22 +0000 (11:17 +0200)]
Minor improvements to the screen width UI
* fix order of input and unit widgets
* remove redundant "Screen used" label
* Add tooltip
Scott Kostyshak [Fri, 28 Oct 2022 22:28:31 +0000 (18:28 -0400)]
Whitespace
jpc [Fri, 28 Oct 2022 16:43:00 +0000 (18:43 +0200)]
Update fr.po
Jean-Marc Lasgouttes [Fri, 28 Oct 2022 16:04:45 +0000 (18:04 +0200)]
Revert "WIP: refactor Systemcall"
This reverts commit
c8015878e1375f83574a8497faadd7e8c6aa8859 .
Committed by mistake obviously!
Jean-Marc Lasgouttes [Fri, 28 Oct 2022 16:03:50 +0000 (18:03 +0200)]
constify
Jean-Marc Lasgouttes [Fri, 28 Oct 2022 15:21:33 +0000 (17:21 +0200)]
WIP: refactor Systemcall
**WARNING; only compilation has been ested; even that does not work**
The goal of this commit is to use the list-based API to
QProcess::start, to avoid annoying syntax issues (see issues with
pasting from LaTeX).
* Create a new latexEnvironment() in filetools.h that returns a
map<string, string> containing the variables and their values.
* Rewrite parsecmd() so that it returns a QStringList of tokenized parameters.
* Use this in startProcess. This is the part is is not finished yet.
Obviously, this will not be possible to get right for 2.4.0.
chillenb [Fri, 21 Oct 2022 22:11:12 +0000 (18:11 -0400)]
adjust text display width in windowed mode
Jean-Marc Lasgouttes [Thu, 27 Oct 2022 15:16:27 +0000 (17:16 +0200)]
Remove unused method
Jean-Marc Lasgouttes [Tue, 25 Oct 2022 16:18:49 +0000 (18:18 +0200)]
Revert "Always remove selection after cursor up/down"
This reverts commit
008a0825e8d67b9c0a3d31b906f04cd7b8fd18a8 .
This commit was part of bug #12310. The goal was to remove the
selection when using "up" at the start of selection (so that the
cursor cannot move). Unfortunately, it creates navigation issues for
insets inside tabulars.
Since the fix was minor, the safest decision is to revert.
The part of ticket #12310 that resets selection with
char-forwars/backward when moving is not possible still works.
Fixes bug #12593.
Juergen Spitzmueller [Wed, 26 Oct 2022 09:21:27 +0000 (11:21 +0200)]
de.po
Juergen Spitzmueller [Wed, 26 Oct 2022 08:52:21 +0000 (10:52 +0200)]
Sync with master
Jean-Marc Lasgouttes [Fri, 21 Oct 2022 12:11:36 +0000 (14:11 +0200)]
Always qualify calls to std::move()
This quashes a new warning in clang++ 15, when std::move() (the
one-parameter version) is used as simply move(). There is a strong
recommendation from WG21 to avoid that.
Details here: https://reviews.llvm.org/
D119670
It might be that we should not use that many move()s. I am not
competent to decide on that.
I also used this occasion to get rid of a spacial casing for C++11
that does not seem necessary after all.
Juergen Spitzmueller [Sun, 16 Oct 2022 10:08:21 +0000 (12:08 +0200)]
GuiLog: don't miss package warnings for packages with dashes
(e.g. scrlayer-scrpage)
jpc [Fri, 14 Oct 2022 14:54:52 +0000 (16:54 +0200)]
Update fr.po
Juergen Spitzmueller [Thu, 13 Oct 2022 14:05:03 +0000 (16:05 +0200)]
Only load subscript package with LaTeX < 2005/12/01 (#12387)