]>
git.lyx.org Git - lyx.git/log
Juergen Spitzmueller [Sun, 12 Jun 2022 12:21:05 +0000 (14:21 +0200)]
de.po
Juergen Spitzmueller [Sun, 12 Jun 2022 11:35:52 +0000 (13:35 +0200)]
Merge branch 'master' of git.lyx.org:lyx
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
Scott Kostyshak [Fri, 10 Jun 2022 13:15:41 +0000 (09:15 -0400)]
ctests: log fix for an upstream LaTeX2e issue
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.
Jean-Marc Lasgouttes [Thu, 9 Jun 2022 19:29:21 +0000 (21:29 +0200)]
Allow to break rows before and after label and index insets
Since they are elements that do not appear in output, there is no
reason to make breaking around them difficult.
Jean-Marc Lasgouttes [Thu, 9 Jun 2022 19:27:43 +0000 (21:27 +0200)]
Implement CanBreakBefore row flag
This is used for elements that allow to break a row before them
(similar to CanBreakAfter).
Kornel Benko [Mon, 6 Jun 2022 11:18:08 +0000 (13:18 +0200)]
FindAdv: Remove needless functions
jpc [Sat, 4 Jun 2022 09:27:33 +0000 (11:27 +0200)]
Update fr.po
Daniel Ramoeller [Thu, 2 Jun 2022 07:49:16 +0000 (09:49 +0200)]
Show size of named spaces in dialog
Fix for bug #12467.
Kornel Benko [Thu, 2 Jun 2022 10:16:07 +0000 (12:16 +0200)]
Amend
9d8dfe934ba : Check _all_ visited dirs
Enrico Forestieri [Tue, 31 May 2022 20:13:52 +0000 (22:13 +0200)]
Always validate a macro definition
If a user-defined macro appears only in the argument of another
macro its definition is not validated and this leads to errors.
Fixes bug #12524.
Scott Kostyshak [Tue, 31 May 2022 18:21:03 +0000 (14:21 -0400)]
ctests: log a confirmed upstream LaTeX2e issue
Jean-Marc Lasgouttes [Tue, 31 May 2022 15:04:01 +0000 (17:04 +0200)]
Fix documentation of Row::splitAt
Kornel Benko [Sun, 29 May 2022 12:12:38 +0000 (14:12 +0200)]
FindAdv: Use modified check to determine if char is a word-char.
Amends
652ffc9c (3)
Kornel Benko [Sun, 29 May 2022 12:08:36 +0000 (14:08 +0200)]
Guard 'isNumberChar()' from char outside ucs4-range
Kornel Benko [Sun, 29 May 2022 10:06:18 +0000 (12:06 +0200)]
Introduce isNumberChar(char_type) function
In FindAdv we use Qt to interpret regular expressions.
Regex uses for instance '\w', '\d' etc.
'\d' finds not just '0-9' but also e.g. '߂' (Nko Digit Two: U+07c2)
'\w' includes also such numbers.
ATM, only FindAdv uses this function.
Enrico Forestieri [Sun, 29 May 2022 09:57:58 +0000 (11:57 +0200)]
Force absolute paths with qmake
When generating makefiles, by default qmake tries to use
relative paths if it can replace at most 4 subdirs with "../"
to reach the QTDIR from the project file location.
This maximum can be changed by defining QMAKE_PROJECT_DEPTH, and
setting it to zero forces qmake to always use absolute paths.
This is necessary because the paths for includes and libs are
generated by a temporary project file located in a temporary dir
not corresponding to the real source dir.
Kornel Benko [Sat, 28 May 2022 19:17:13 +0000 (21:17 +0200)]
FindAdv: Amend
652ffc9c (2): Fix handling search for whole words if in mathed.
Didn't know, how to get char-value cursor is pointing to.
Hopefully someone knows a better way as in this patch.
Juergen Spitzmueller [Sat, 28 May 2022 18:40:16 +0000 (20:40 +0200)]
Forgot to pass third parameter
Juergen Spitzmueller [Fri, 27 May 2022 07:26:40 +0000 (09:26 +0200)]
Fix subfloat inset label (#11757)
This was broken at
9b7ccbfc /lyxgit
Kornel Benko [Thu, 26 May 2022 15:17:49 +0000 (17:17 +0200)]
FindAdv: Amend
652ffc9c : have to check inTexted() before using Paragraph
Kornel Benko [Thu, 26 May 2022 12:05:49 +0000 (14:05 +0200)]
Amend
b73ab025 : Fix compilation with gcc-12
Kornel Benko [Thu, 26 May 2022 11:32:25 +0000 (13:32 +0200)]
FindAdv: If searching for whole words, handle also the case that we are starting in the mid of a word.
In this case we skip the undesired word-characters before starting the search.
There are still some inconsistencies between LyX and Qt of 'what counts as a word-character',
but too hard to resolve.
Kornel Benko [Wed, 25 May 2022 19:34:17 +0000 (21:34 +0200)]
FindAdv: Fix expression checking for 'int' as if it were bool
Since the element 'match_len' in class MatchResult is an integer,
the check 'if (!match(...).match_len))' is changed to
'if (match(...).match_len) <= 0)'
Kornel Benko [Wed, 25 May 2022 18:43:49 +0000 (20:43 +0200)]
FindAdv: Attempt to make the code less crabbed
1.) The type of variable at_begin changes from bool to enum matchType
true -> MatchStringAdv::MatchFromStart,
false -> MatchStringAdv::MatchAnyPlace
2.) discard default parameter-values of
MatchStringAdv::operator()
MatchStringAdv::findAux()
Kornel Benko [Tue, 24 May 2022 21:41:31 +0000 (23:41 +0200)]
FindAdv:
1.) Changed arrays dept and closes to vector-type because of runtime error in UserGuide.lyx
with a big paragraph (size > 8900 chars) contained too many opening parentheses
2.) Removed one creation 'textcyrillic'-key because it is later anyway created
3.) Most important (thanks to Scott who found the failure)
Move the check if the found string really is part of MATH to
the relevant place.
Without this change the search using 'Search only in maths' will fail miserably.
Scott Kostyshak [Tue, 24 May 2022 13:44:51 +0000 (09:44 -0400)]
Revert "User Guide: add quotes to a PackageOptions command"
Jürgen fixed the core issue at
a77c84a0 so this workaround is not
needed anymore. It is more intuitive, and easier to remember, to not
use the double-quotes.
This reverts commit
67e9add6d0794c2b84bfedfbcee3cc7f3447a4ad .
Juergen Spitzmueller [Mon, 23 May 2022 12:32:01 +0000 (14:32 +0200)]
BufferParams::copyForAdvFR(): include quote style
Kornel Benko [Fri, 20 May 2022 10:46:26 +0000 (12:46 +0200)]
FindAdv: Do not search for accents if the command-parameter contains '\\'
The only exception are command-parameters '\\i', '\\imath' or '\\jmath'.
Example '\ddot{\\imath}'
Jean-Marc Lasgouttes [Thu, 19 May 2022 14:03:57 +0000 (16:03 +0200)]
Fixup
d723b903 : Fix slow display of large paragraphs
When implementing multi-row string breaking, an extra createLine()
statement, which made sense in the original code, was kept by mistake.
This basically made the mechanism ineffective, because it created one
row with the correct length, plus a second one with all the remaining
text, which would have to be itself broken. This went undetected
because the display is still correct.
Additionally, this issue polluted the break cache to the extent that
the hit rate could be 0%.
Together, these two effects created a major slowdown with a document
containing a single ~30000 characters paragraph.
Fixes bug #12534.
Jean-Marc Lasgouttes [Thu, 19 May 2022 09:35:39 +0000 (11:35 +0200)]
pmprof: fix missing output in the 100% miss case
Also update to the latest version of pmprof.
Juergen Spitzmueller [Thu, 19 May 2022 08:31:37 +0000 (10:31 +0200)]
Allow for several (comma-separated) PackageOptions
Scott Kostyshak [Thu, 19 May 2022 01:09:58 +0000 (21:09 -0400)]
User Guide: add quotes to a PackageOptions command
The double-quotes are needed when there are two options.
Thanks to Jürgen.
Scott Kostyshak [Wed, 18 May 2022 01:24:05 +0000 (21:24 -0400)]
Typo in User Guide
"option1,option1" -> "option1,option2"
Jean-Marc Lasgouttes [Tue, 17 May 2022 21:07:10 +0000 (23:07 +0200)]
Fixup
5f8959d4 : keep cursor font when there was no selection
When toggleFree is called without a selection, the only result is to
change the cursor currentfont.
In the other cases (selection or implicit selection), we want to reset
the cursor font from the text font.
Fixes bug #12518.
Daniel Ramoeller [Mon, 16 May 2022 01:57:03 +0000 (03:57 +0200)]
Word selection on mouse motion
Partial fix for bug #9160.
Jean-Marc Lasgouttes [Sun, 15 May 2022 21:14:02 +0000 (23:14 +0200)]
Make sure that current cursor font is updated when changing font
Fixes bug #12518.
Kornel Benko [Sat, 14 May 2022 12:49:52 +0000 (14:49 +0200)]
FindAdv: Amend(2)
f845a4e9
Removing '\n' like in previous version with utf8-strings
This is needed e.g. for display math, which comes as
"\n\\[\n.....\n\\]\n"
Kornel Benko [Sat, 14 May 2022 12:49:03 +0000 (14:49 +0200)]
Ctests: Adapt test 06 to changed shortcut
Kornel Benko [Sat, 14 May 2022 07:51:23 +0000 (09:51 +0200)]
FindAdv: Amend
f845a4e9
Also do not remove '\n' if in non-format-search mode. Otherwise
'\n' cannot be found with regex '\s'
Kornel Benko [Sat, 14 May 2022 07:25:06 +0000 (09:25 +0200)]
FindAdv: Do not handle stale empty latex commands if not in format-search mode
In non-format-search mode, we do not have any latex commands here.
Kornel Benko [Sat, 14 May 2022 06:56:00 +0000 (08:56 +0200)]
FindAdv: Don't check on '\\\\\n' if ignoring format
Since it can only happen if the lyx source contains two backslasches before
the inserted newline. And here it is the wrong case.
Kornel Benko [Fri, 13 May 2022 10:00:47 +0000 (12:00 +0200)]
FindAdv: Amend
6c735efb : Resolve some conflicts regex vs. math meaning of '$'
Kornel Benko [Fri, 13 May 2022 07:30:30 +0000 (09:30 +0200)]
FindAdv: In format search could '$'-char be interpreted as math-start.
To handle this case, we use '\lyxdollar' string instead.
Also try to handle '\n' in the docstring directly instead in the
string already converted to utf8.
(The utf8-version is still there, but commented out)
jpc [Thu, 12 May 2022 12:44:16 +0000 (14:44 +0200)]
Update fr.po
Kornel Benko [Thu, 12 May 2022 11:22:21 +0000 (13:22 +0200)]
FindAdv: Remove invalid closings
If the searched area contains deleted parts, there may be more closing
as opening parentheses in latex output. We have to remove them before
further processing.
Kornel Benko [Thu, 12 May 2022 11:20:24 +0000 (13:20 +0200)]
FindAdv: Use unicode for space where possible
Search for different space-types should be done with
regular expression '\s'
Kornel Benko [Thu, 12 May 2022 11:20:10 +0000 (13:20 +0200)]
Update sk.po
Daniel Ramoeller [Sun, 27 Mar 2022 09:40:54 +0000 (11:40 +0200)]
Use "Auto" value on cursor width spinbox
Fix for bug #12515.
Kornel Benko [Wed, 11 May 2022 15:42:50 +0000 (17:42 +0200)]
FindAdv: Do not insert space for '\n' if there already are spaces around
Kornel Benko [Tue, 10 May 2022 13:03:11 +0000 (15:03 +0200)]
FindAdv tests: update to new shortcuts
Kornel Benko [Tue, 10 May 2022 13:02:16 +0000 (15:02 +0200)]
Update sk.po
jpc [Tue, 10 May 2022 12:38:56 +0000 (14:38 +0200)]
Update fr.po
Juergen Spitzmueller [Tue, 10 May 2022 11:48:59 +0000 (13:48 +0200)]
de.po
Juergen Spitzmueller [Tue, 10 May 2022 11:29:51 +0000 (13:29 +0200)]
Shuffle and add some shortcuts
Kornel Benko [Tue, 10 May 2022 09:37:39 +0000 (11:37 +0200)]
Amend
a7c58e2f : Do not output hyperref option unicode with recent hyperref versions
Kornel Benko [Mon, 9 May 2022 20:06:02 +0000 (22:06 +0200)]
FindAdv: Use private variable for_search
Using the new inline statements
find_effective(), find_with_non_output(), find_with_deleted(),
find_set_feature(), find_add_feature() and find_clean_features()
makes the code a slightly better readable.
Jean-Marc Lasgouttes [Mon, 9 May 2022 08:23:54 +0000 (10:23 +0200)]
Fix crash with LFUN_LAYOUT with multicell selection
This lfun (like several others) does not work with multicell
selection. Disable the lfun in this this case for now, until a nice
solution is found.
Fixes bug #12530.
Kornel Benko [Sun, 8 May 2022 20:43:56 +0000 (22:43 +0200)]
FindAdv: Amend
64af721a
The space handling is a nightmare.
Kornel Benko [Sun, 8 May 2022 18:24:43 +0000 (20:24 +0200)]
FindAdv: Handle normal and protected space also inside regular expression
Kornel Benko [Sun, 8 May 2022 13:32:13 +0000 (15:32 +0200)]
FindAdv: Correct the 'fix' in
4bb427a2
:(
Kornel Benko [Sun, 8 May 2022 12:30:45 +0000 (14:30 +0200)]
FindAdv: Amend
627cd6de : Use '~' instead of "\\ " for search if possible
Also fix a thinko in interpreting the found values.
The match_len describes the length of the second regex field,
while matchend is the length of the search field 0.
Kornel Benko [Fri, 6 May 2022 15:16:49 +0000 (17:16 +0200)]
FindAdv: Simplify search for space also if not using regex
In the pattern-string convert occurences of
' ', '~'
and the values we get with
space-insert normal
space-insert protected
to "\s+".
Kornel Benko [Thu, 5 May 2022 13:56:15 +0000 (15:56 +0200)]
FindAdv: Small improvements
Jean-Marc Lasgouttes [Thu, 5 May 2022 08:44:45 +0000 (10:44 +0200)]
Avoid crash when extending word selection
This happens when the cursor goes into a deeper inset, since
selectWord() was called on the wrong Text object.
Additionally, fix the new word selection when cursor goes before
existing selection.
Fixes bug #12529.
Kornel Benko [Wed, 4 May 2022 13:59:57 +0000 (15:59 +0200)]
FindAdv: Partly revert
02c7dbb8 . Handle the space in Paragraph.cpp instead.
Kornel Benko [Tue, 3 May 2022 14:31:52 +0000 (16:31 +0200)]
FindAdv: Better handling of lists
Still not optimal if searching different languages inside a list.
jpc [Mon, 2 May 2022 16:43:16 +0000 (18:43 +0200)]
Update fr.po
Kornel Benko [Sun, 1 May 2022 14:03:45 +0000 (16:03 +0200)]
FindAdv: Debug messages
Kornel Benko [Sun, 1 May 2022 08:34:12 +0000 (10:34 +0200)]
Small addition concerning advanced find and regular expression
Kornel Benko [Sat, 30 Apr 2022 18:00:38 +0000 (20:00 +0200)]
Update sk.po
Juergen Spitzmueller [Sat, 30 Apr 2022 15:52:09 +0000 (17:52 +0200)]
de.po
Juergen Spitzmueller [Sat, 30 Apr 2022 12:23:54 +0000 (14:23 +0200)]
Add GUI for search-ignore
Kornel Benko [Sat, 30 Apr 2022 07:30:15 +0000 (09:30 +0200)]
FindAdv: Re-add 'size' to the list of possible ignored formats
Scott Kostyshak [Sat, 30 Apr 2022 01:11:10 +0000 (21:11 -0400)]
ctests: categorize testfile for #6197 as resolved
The actual LyX bug was fixed a while ago. There was a remaining
missing symbols error, but that has been fixed in the latest
TeX Live 2022.
Scott Kostyshak [Sat, 30 Apr 2022 01:09:33 +0000 (21:09 -0400)]
ctests: update description for lyxbugs/6197
With an updated TeX Live 2022, LuaTeX no longer gives a missing
symbol for this test file (manual inspection confirms the symbols
are correctly displayed).
Scott Kostyshak [Sat, 30 Apr 2022 00:42:07 +0000 (20:42 -0400)]
ctests: adapt ignored warnings for lyx2lyx tests
This commit does the same as
a8dd4db5 but for the explicit lyx2lyx
tests.
This commit amends
ae31e169 .
Scott Kostyshak [Fri, 29 Apr 2022 23:01:27 +0000 (19:01 -0400)]
ctests: adapt ignored warnings to new messages
The change of the warning messages was introduced at
ae31e169 , which
broke several lyx2lyx tests. The tests are now fixed with this
commit.
Kornel Benko [Fri, 29 Apr 2022 17:56:12 +0000 (19:56 +0200)]
Amend
a83159f0 : Use logical operator ||.
Clang is not mocking here, but it looks more consistent.
Kornel Benko [Fri, 29 Apr 2022 17:23:50 +0000 (19:23 +0200)]
FindAdv: Fix the length of leading string
We are removing leading values from the start of string, so
the size of removed data was wrong because s.find() could find
a position inside the leading part.
Scott Kostyshak [Fri, 29 Apr 2022 01:06:37 +0000 (21:06 -0400)]
Fix Clang 14 warning -Wbitwise-instead-of-logical
Use the boolean operator '||' with bools instead of the bitwise
operator '|'.
Jean-Marc Lasgouttes [Thu, 28 Apr 2022 12:36:11 +0000 (14:36 +0200)]
Fix configure with autoconf 2.71
This fixes two issues with autoconf 2.71
* a new version of eilseq.m4 from libiconv is required ;
* the AC_CHECK_HEADER last `-' argument is obsloleted, but I do not
think that we needed it in the first place.
Kornel Benko [Wed, 27 Apr 2022 13:57:24 +0000 (15:57 +0200)]
FindAdv: Avoid some duplicated code
Also handle (== ignore) \textgreek{} and \textcyrillic{} commands
Kornel Benko [Sun, 24 Apr 2022 15:38:33 +0000 (17:38 +0200)]
Update sk.po
jpc [Sun, 24 Apr 2022 15:24:26 +0000 (17:24 +0200)]
Update fr.po
Juergen Spitzmueller [Sun, 24 Apr 2022 15:05:31 +0000 (17:05 +0200)]
de.po
Juergen Spitzmueller [Sun, 24 Apr 2022 14:51:42 +0000 (16:51 +0200)]
Mark aliases in the description
Juergen Spitzmueller [Sun, 24 Apr 2022 14:51:16 +0000 (16:51 +0200)]
Amend
d8f540f51
Properly handle aliases
Juergen Spitzmueller [Sun, 24 Apr 2022 12:21:56 +0000 (14:21 +0200)]
Properly ignore debug levels in the GUI
Not only none and any, but also the aliases.
Kornel Benko [Sun, 24 Apr 2022 11:52:46 +0000 (13:52 +0200)]
Amend
3b7a79f1 : Use Debug::base_type instead of 'unsigned long long' where possible
Kornel Benko [Sun, 24 Apr 2022 11:27:36 +0000 (13:27 +0200)]
FindAdv: Amend
d09f5ce1 : Added new debug level :findverbose
Fix the GUI handling for the new value using now 'unsigned long long' instead of 'int'
Kornel Benko [Sat, 23 Apr 2022 18:33:47 +0000 (20:33 +0200)]
FindAdv: Search also if layout of the searched paragraph has 'inpreamble' set
Using 'force' in call to TeXOnePar() enables the search of any string in document.
Juergen Spitzmueller [Wed, 20 Apr 2022 06:04:15 +0000 (08:04 +0200)]
de.po
Kornel Benko [Tue, 19 Apr 2022 21:35:31 +0000 (23:35 +0200)]
Update sk.po
Kornel Benko [Tue, 19 Apr 2022 21:28:27 +0000 (23:28 +0200)]
FindAdv: Fix search for '}'
Problem occured if
1.) not using regex and
2.) search without format and
3.) the search pattern ended with '}'.
then this last char '}' in the search pattern was discarded.
jpc [Tue, 19 Apr 2022 16:22:53 +0000 (18:22 +0200)]
Update fr.po
Juergen Spitzmueller [Tue, 19 Apr 2022 13:12:56 +0000 (15:12 +0200)]
Improve string
Kornel Benko [Tue, 19 Apr 2022 11:53:44 +0000 (13:53 +0200)]
Update sk.po
Kornel Benko [Tue, 19 Apr 2022 11:41:38 +0000 (13:41 +0200)]
FindAdv, Debug: Added new debug level :findverbose
With the debug-level 'find' there are now less output.
The original output can be received now with debig-level 'findverbose'
Also constructions like
LYXERR(Debug::FIND|Debug::FINDVERBOSE, "...");
are now possible.