]>
git.lyx.org Git - lyx.git/log
Kornel Benko [Sun, 28 Oct 2018 18:40:14 +0000 (19:40 +0100)]
Changes to match math equations
Now tests findadv-01 ... findadv-20 pass too.
keytest.py: Expanded time for controll keys (like \[Return])
findadv*: expanded time for normal keys
lyxfind.cpp: Handle math equations
Scott Kostyshak [Sun, 28 Oct 2018 15:43:47 +0000 (11:43 -0400)]
Revert "Comment out unused functions to restore -Werror"
This reverts commit
bceb2390b473db347b72f9fc16f63a60223daa9d .
For details, see:
https://www.mail-archive.com/search?l=mid&q=
4724814 .5HqUF52VLN%40amd64
Scott Kostyshak [Sun, 28 Oct 2018 00:46:54 +0000 (20:46 -0400)]
Comment out unused functions to restore -Werror
This commit restores compilation with -Werror and g++ version 7.3.0.
Consistent with
6dc450bc .
Scott Kostyshak [Sat, 27 Oct 2018 23:16:36 +0000 (19:16 -0400)]
Amend
23041f53 : remove extra parenthesis
Kornel Benko [Sat, 27 Oct 2018 18:51:57 +0000 (20:51 +0200)]
Amend
4459603 , MSVC versions >= 1915 allow std::regex
Kornel Benko [Sat, 27 Oct 2018 14:57:42 +0000 (16:57 +0200)]
Amend(4)
74c849d Advanced search with format
Prepare for use with func request. For instance to
ignore language while searching:
setIgnoreFormat("language", true);
Stephan Witt [Sat, 27 Oct 2018 14:12:02 +0000 (16:12 +0200)]
Add dummy implementation for Messages::getIfFound (used when ENABLE_NLS is false)
Kornel Benko [Thu, 25 Oct 2018 08:14:49 +0000 (10:14 +0200)]
Allow std::regex for MSVC10
Kornel Benko [Wed, 24 Oct 2018 09:07:11 +0000 (11:07 +0200)]
Amend(3)
74c849d Advanced search with format
* Discard now unneeded code
* Remove macro '\uldepth=...'
Kornel Benko [Tue, 23 Oct 2018 19:12:22 +0000 (21:12 +0200)]
Amend(2)
74c849d Advanced search with format
Added missing handling for chapter/chapter*
Also added frontmatter (title, author etc), but disabled ATM
Kornel Benko [Tue, 23 Oct 2018 17:59:08 +0000 (19:59 +0200)]
Amend
74c849d , Advanced search with format
Remove macros like '\tiny ' or '\tiny{}' or '\tiny' followed by
any other non-alpha char correctly
Scott Kostyshak [Tue, 23 Oct 2018 01:16:56 +0000 (21:16 -0400)]
Use underline in (+ bold) for char match in layout
When showing the match characters in, e.g., the layout box, we now
underline (in addition to bold) the matched characters. This makes
the matched characters stand out even more.
See
4b716dd6 and the following ML thread:
https://www.mail-archive.com/search?l=mid&q=
20181019155649 .dqqk6u25wdcdimrj%40barna
Kornel Benko [Mon, 22 Oct 2018 18:19:36 +0000 (20:19 +0200)]
Advanced search with format, preparing for selective searching
As it is now, searching with format needs ALL the features set
in order to match the pattern.
What needs to be done is a GUI specifying which of the features are
important.
1.) language
2.) font (series, shape)
3.) markup, underline, strikeout
4.) color
Having this info, the implementation is easy. Set
some variables and be done
Jean-Marc Lasgouttes [Mon, 22 Oct 2018 13:29:08 +0000 (15:29 +0200)]
Amend
8d8988de : it is too early for skipping the updateMacros call
Kornel Benko [Sat, 20 Oct 2018 10:47:37 +0000 (12:47 +0200)]
Advanced search with format, consider also sectioning macros
Kornel Benko [Fri, 19 Oct 2018 17:11:20 +0000 (19:11 +0200)]
Advanced search with format, refactoring
Kornel Benko [Fri, 19 Oct 2018 09:10:54 +0000 (11:10 +0200)]
Commented out an unused function to please a picky compiler
Jean-Marc Lasgouttes [Fri, 19 Oct 2018 08:02:02 +0000 (10:02 +0200)]
Compilation fix (with qt4 at least).
Richard Kimberly Heck [Fri, 19 Oct 2018 01:47:22 +0000 (21:47 -0400)]
Use bold instead of underlining to mark the characters we're matching.
Richard Kimberly Heck [Fri, 19 Oct 2018 01:41:20 +0000 (21:41 -0400)]
Simplify the code that adds underlining to the layout combo.
Richard Kimberly Heck [Fri, 19 Oct 2018 01:11:14 +0000 (21:11 -0400)]
Refactor
Richard Kimberly Heck [Tue, 16 Oct 2018 02:52:53 +0000 (22:52 -0400)]
Re-organize and simplify now.
Richard Kimberly Heck [Tue, 16 Oct 2018 02:46:31 +0000 (22:46 -0400)]
Whitespace.
Richard Kimberly Heck [Tue, 16 Oct 2018 02:41:22 +0000 (22:41 -0400)]
Fix bug #6096.
We used to need a hack to set the size of the layout combo, but
the code was changed in Qt 4.5 or so. Hence the appearance of this
bug in 2009. We can now just remove this hack, and all seems to
work correctly.
Richard Kimberly Heck [Tue, 16 Oct 2018 00:51:34 +0000 (20:51 -0400)]
Filter on consecutive sequences of characters.
The filters for the layout combo and document class combo share a
problem: If you type "beam", e.g, in the latter case, then we will
show any document class that contains those letters, in that order,
but not necessarily consecutively. This is extremely confusing and,
as José put it, just weird. So let's fix it.
I'd call this a bug so would be happy to see this in stable, too.
Kornel Benko [Thu, 18 Oct 2018 15:37:15 +0000 (17:37 +0200)]
Amend(4)
7a03fa6 : Advanced search with format:
Further normalize the latex input in case of enabled format search.
It was not enough to split the latex input on \foreignlanguage and \textcolor
macros only.
Instead also macros like \textt, or \noun etc had to be accounted for.
This patch uses therefore a different algorithm.
Kornel Benko [Mon, 15 Oct 2018 06:09:19 +0000 (08:09 +0200)]
Amend(3)
7a03fa6 : Advanced search with format:
Grrr... enable the search without format again
Kornel Benko [Sun, 14 Oct 2018 18:39:13 +0000 (20:39 +0200)]
Amend(2)
7a03fa6 : Advanced search with format:
Further tweeking.
Kornel Benko [Sat, 13 Oct 2018 20:22:48 +0000 (22:22 +0200)]
Amend
edca2e0 : copy && paste error
Kornel Benko [Sat, 13 Oct 2018 19:02:53 +0000 (21:02 +0200)]
Amend
7a03fa6 : Advanced search with format:
In the latexified text:
* Check and handle contained regex properly
* Discard superfluos '{' preventing our search engine
to match with the search pattern
Juergen Spitzmueller [Sat, 13 Oct 2018 11:51:00 +0000 (13:51 +0200)]
Amend
a754912 once more
Do not use LTR environment (bidi) at all, since it adds unwanted
paragraph breaks.
Fixes: #11338
Juergen Spitzmueller [Sat, 13 Oct 2018 09:06:24 +0000 (11:06 +0200)]
Clear bibfile cache when set of bibliography files change
Part of #9158
Kornel Benko [Fri, 12 Oct 2018 14:47:07 +0000 (16:47 +0200)]
Advanced search with format: Prepare latex for find
Our findadv expects something like
prefix + 'search'
so that the regex (which is latexified too)
can work on 'search'
(In the source, the prefix is denoted by lead_as_string)
The latex output contains structs like
\foreignlaguage(abc}{xx\textbf{boldxx\textcolor{blue}{blue 1 blue 2} XX}}
which would never match the simple prefix.
Now the above is converted to
\foreignlaguage(abc}{xx}\\
\foreignlaguage(abc}{\textbf{boldxx}}
\foreignlaguage(abc}{\textbf{\textcolor{blue}{blue 1 blue 2}}}\\
\foreignlaguage(abc}{\textbf{ XX}}
Of course, more than one language or color in an inset can be searched for now.
Enrico Forestieri [Wed, 10 Oct 2018 17:41:31 +0000 (19:41 +0200)]
Fix bug #11332
Add the "hyperref-driver=dvips" option to the extra flags of the
latex->dvi converter so that the breakurl package is automatically
loaded when needed.
Juergen Spitzmueller [Tue, 9 Oct 2018 16:04:51 +0000 (18:04 +0200)]
Amend
a754912
Switch logic, since isStyle() does not cover inline math
Fixes: #11338
Juergen Spitzmueller [Tue, 9 Oct 2018 08:42:38 +0000 (10:42 +0200)]
Load covington later
This solves a loading order conflict with beamer-article.
Jean-Marc Lasgouttes [Mon, 8 Oct 2018 14:03:20 +0000 (16:03 +0200)]
Followup to
9fe101e8 : remove unused method.
Jean-Marc Lasgouttes [Sun, 7 Oct 2018 12:48:05 +0000 (14:48 +0200)]
Remove support for pixmap cache
This code has issues and there is no evidence that it improves performance.
Remove LyXRC variable \use_pixmap_cache and update rc format to 29.
Now the global pixmap cache is only used by GuiCompleter. Therefore
there is no need to reset it when fonts change.
Kornel Benko [Sat, 6 Oct 2018 21:50:50 +0000 (23:50 +0200)]
Amend(2)
b78bdf8
Modified language handling
Still, there are problems, because sometimes the search pattern
does not contain the the requested info. So the 'find' often fails
for strings inside a list environment.
Kornel Benko [Sat, 6 Oct 2018 07:58:29 +0000 (09:58 +0200)]
Amend(1)
b78bdf8
In advanced search:
* Ignore font sizes
* ignore \\[a-z]+par{} macros
* ignore \\inputencoding{...} macros
Kornel Benko [Fri, 5 Oct 2018 18:26:44 +0000 (20:26 +0200)]
Added better handling for languages and colors for advanced F&R
The change is significant if the search format is not disabled.
We try to analyze the pattern string first to get needed features
for the search.
We try to analyse the searched string and if it does not
contain all expected featers (color, language, char style, char decoration)
Still some problems though
Richard Kimberly Heck [Fri, 5 Oct 2018 01:02:51 +0000 (21:02 -0400)]
Fix part of bug #8521.
Richard Kimberly Heck [Fri, 5 Oct 2018 00:37:03 +0000 (20:37 -0400)]
Fix bug #9004.
I'm not entirely happy with this way of doing it. It seems messy.
But there is not another clear option right now.
Richard Kimberly Heck [Fri, 4 May 2018 17:05:36 +0000 (13:05 -0400)]
Update the Advanced F&R document class when switching buffers.
Richard Kimberly Heck [Fri, 4 May 2018 16:37:52 +0000 (12:37 -0400)]
Copy modules into the Advanced F&R pane as well.
Guillaume Munch [Thu, 4 Oct 2018 23:52:21 +0000 (19:52 -0400)]
Make tab movement visible (#10733)
The nice hand-made solution for moving tabs has made its time. Use Qt's feature
instead from now on.
Richard Kimberly Heck [Thu, 4 Oct 2018 21:56:14 +0000 (17:56 -0400)]
Richard Kimberly Heck [Thu, 4 Oct 2018 21:32:48 +0000 (17:32 -0400)]
Fix context menu for external edit.
Richard Heck [Sat, 7 Apr 2018 02:29:04 +0000 (22:29 -0400)]
Fix bug 9798.
Nameref support for math references.
Richard Kimberly Heck [Thu, 4 Oct 2018 18:02:01 +0000 (14:02 -0400)]
Fix bug #11275.
Show module name with description.
Richard Kimberly Heck [Thu, 4 Oct 2018 17:36:01 +0000 (13:36 -0400)]
Extend fix for #7404 to allow any inset collapsible to be edited
externally.
Jean-Marc Lasgouttes [Thu, 4 Oct 2018 14:05:46 +0000 (16:05 +0200)]
Fix display of gather in lefteqn mode
The column is flushed when the display of equations is flushed.
Not sure what to do with RtL languages.
Fixes bug 11324.
Jean-Marc Lasgouttes [Thu, 4 Oct 2018 12:27:43 +0000 (14:27 +0200)]
Fixup
38f09c177b7 : limit to paint rectangle
Jean-Marc Lasgouttes [Wed, 3 Oct 2018 13:57:11 +0000 (15:57 +0200)]
When ignoring an update, request one for later
If we were not ready to paint the screen, this does not mean that we
should give up on repainting, just potpone it.
I thought that it was bad to call update() in the paint event, but I
cannot find reference to this anymore and everything seems to work as
intended.
Jean-Marc Lasgouttes [Wed, 3 Oct 2018 08:39:09 +0000 (10:39 +0200)]
Make sure inset buffer is correctly set in math grid
Make MathData::setBuffer set the buffer of insets that it contains.
Remove corresponding code from InsetMathNest.
update the buffer() property in the following tabular-feature
actions : copy-row, add-row, copy-col, add-col.
Enrico Forestieri [Tue, 2 Oct 2018 19:35:06 +0000 (21:35 +0200)]
Update it.po
Kornel Benko [Tue, 2 Oct 2018 15:24:47 +0000 (17:24 +0200)]
Increment version to 565 due to add of adobe source pro fonts
Kornel Benko [Tue, 2 Oct 2018 09:53:01 +0000 (11:53 +0200)]
Advaced search: Added handling to search for colored text
if used with format enabled
Kornel Benko [Tue, 2 Oct 2018 09:28:46 +0000 (11:28 +0200)]
Added Adobe Source Pro fonts to lyx-GUI
Kornel Benko [Mon, 1 Oct 2018 10:06:42 +0000 (12:06 +0200)]
Amend(4)
73188e3
* Added textsl, texttt, uline, uuline, sout, xout to the list of possible
leading strings.
* Account for correct number of open braces in regex.
Now the search works for enbled format too.
This is hopefully the last amend
Richard Kimberly Heck [Sat, 29 Sep 2018 21:44:25 +0000 (17:44 -0400)]
mingw build script
Richard Kimberly Heck [Sat, 29 Sep 2018 21:26:14 +0000 (17:26 -0400)]
Try to make Windows use a versioned directory for the user dir.
(cherry picked from commit
802fd7932b713ee80bf384facd45f45a5ac22de4 )
(cherry picked from commit
4478451ea164a4de891b1d26ad3b1c04ad770337 )
Kornel Benko [Sun, 30 Sep 2018 16:37:55 +0000 (18:37 +0200)]
Amend(3)
73188e3
Adapt the positional references in regex supplied by user
so that for instance '([a-z]+)\s\1' to find identical words in sequence
is changed to '([a-z]+)\s\2'.
Kornel Benko [Sun, 30 Sep 2018 14:08:47 +0000 (16:08 +0200)]
Amend(2)
73188e3 .
Added noun, textsf and texit to the list of possible
leading strings if searche with format enabled.
Searching seems to work as intended now.
Richard Kimberly Heck [Sat, 29 Sep 2018 21:30:09 +0000 (17:30 -0400)]
Revert "Check for old "LyX 2.3" user directory when configuring."
This reverts commit
1fe6352d4f75776d40b17f714af772e97a039409 .
Kornel Benko [Sat, 29 Sep 2018 16:46:21 +0000 (18:46 +0200)]
Amend(1)
73188e3 .
This is slightly better, but still not satisfying.
Enable format search
Given the latexified string
\emph{Fox jUMps}
and using emphasized regex '\w*', we find 'Fox'. That is OK.
But the next find finds ' ', which is not OK.
In contrast, searching with '\w+', we find the correct string 'jUMps'.
Kornel Benko [Sat, 29 Sep 2018 10:54:22 +0000 (12:54 +0200)]
keytests: regex correction in test findadv-re-04
Use '+' instead of not working '*' as quantifier
for advanced search with format enabled
Kornel Benko [Sat, 29 Sep 2018 09:07:50 +0000 (11:07 +0200)]
Update sk.po
Juergen Spitzmueller [Sat, 29 Sep 2018 08:27:20 +0000 (10:27 +0200)]
Juergen Spitzmueller [Sat, 29 Sep 2018 08:26:11 +0000 (10:26 +0200)]
de.po
Kornel Benko [Sat, 29 Sep 2018 07:23:30 +0000 (09:23 +0200)]
Try to make findadv more robust if not ignoring format
If searching for instance '.+' , the found string expanded
to the end of search buffer. So we have to replace
'.' with '[^\}]'.
Also all constructs like '[^abc]' had to be changed to '[^abc\}]'
to not go behind the actual format.
There is still problem using '*', but constructs usin '+' seem to work now.
('.*' finds everything from first char in correct format
to (including) end of next format change
while '.+' find _only_ characters in correct format)
Juergen Spitzmueller [Sat, 29 Sep 2018 07:18:26 +0000 (09:18 +0200)]
GuiCitation: Add some tooltips for the sake of keyboard users
Addresses #11317
Richard Kimberly Heck [Sat, 29 Sep 2018 02:19:39 +0000 (22:19 -0400)]
Copy over Windows installer updates from stable.
Richard Kimberly Heck [Sat, 29 Sep 2018 02:18:15 +0000 (22:18 -0400)]
Copy over cmake packaging updates from 2.3.x.
Richard Kimberly Heck [Sat, 29 Sep 2018 01:42:49 +0000 (21:42 -0400)]
Check for old "LyX 2.3" user directory when configuring.
This is due to the bad packaging in the early 2.3.x installers. We
normally do not use version suffixes on Windows, but did.
(cherry picked from commit
b738aa53d13780a4e271459d72171700cba304fa )
Richard Kimberly Heck [Sat, 29 Sep 2018 01:50:25 +0000 (21:50 -0400)]
Windows packaging updates.
The main change here is that we need to delete LyX2.3.exe and
tex2lyx2.3.exe from the install directory, so they are not left
there (from previous, versioned installs).
(cherry picked from commit
0cbde8a8342bf55d431133b7acdfe88b655492f0 )
Juergen Spitzmueller [Fri, 28 Sep 2018 06:36:44 +0000 (08:36 +0200)]
Use LTR environment for forceLTR content with polyglossia
Fixes: #10548
Richard Kimberly Heck [Fri, 28 Sep 2018 01:56:29 +0000 (21:56 -0400)]
Allow 'module in child not used in master' warning to be disabled.
Enrico Forestieri [Thu, 27 Sep 2018 19:21:49 +0000 (21:21 +0200)]
Fix bug #11210
On Windows, start viewers in detached processes in order to avoid
a crash of the QProcess destructor when their thread terminates.
The opening of a console window is avoided by redirecting to the
null device all standard I/O channels.
Kornel Benko [Thu, 27 Sep 2018 06:36:55 +0000 (08:36 +0200)]
Added some char styles to sk/menus.bind
Juergen Spitzmueller [Tue, 25 Sep 2018 13:24:46 +0000 (15:24 +0200)]
Add bibtex inset to outliner if "add to toc" is checked.
Fixes #11309
Juergen Spitzmueller [Tue, 25 Sep 2018 11:13:56 +0000 (13:13 +0200)]
Do not store empty posttext for qualified citations
Fixes: #11308
Kornel Benko [Sun, 23 Sep 2018 14:34:58 +0000 (16:34 +0200)]
Update sk.po
Juergen Spitzmueller [Sun, 23 Sep 2018 12:11:53 +0000 (14:11 +0200)]
Layout fixes
Juergen Spitzmueller [Sun, 23 Sep 2018 11:29:19 +0000 (13:29 +0200)]
Juergen Spitzmueller [Sun, 23 Sep 2018 11:02:57 +0000 (13:02 +0200)]
chessgame.lyx: correct advice
(lyx)skak requires the ps route for the movement indication.
Candidate for stable.
Juergen Spitzmueller [Sun, 23 Sep 2018 10:26:43 +0000 (12:26 +0200)]
Rework chessboard support
* Use a module rather than a layout, since this package can be used with
any class
* Do not hardcode options and settings. The package is very flexible,
there is no need to limit this in LyX
Juergen Spitzmueller [Sat, 22 Sep 2018 08:37:22 +0000 (10:37 +0200)]
GuiCitation: don't reset filter on show
Addresses #11291
Stephan Witt [Fri, 21 Sep 2018 19:50:21 +0000 (21:50 +0200)]
Less verbose framework relocation support output.
Stephan Witt [Fri, 21 Sep 2018 19:48:48 +0000 (21:48 +0200)]
Add the option build with different compiler and linker flag extensions.
Stephan Witt [Fri, 21 Sep 2018 19:47:29 +0000 (21:47 +0200)]
Check exit state of install_name_tool calls.
Stephan Witt [Fri, 21 Sep 2018 19:46:47 +0000 (21:46 +0200)]
Add -headerpad_max_install_names option to linker calls and make run path configuration consistent.
This avoids failures when running install_name_tool on Mac when creating relocatable binaries using the bundled private frameworks.
Juergen Spitzmueller [Fri, 21 Sep 2018 16:24:21 +0000 (18:24 +0200)]
de.po
Jean-Marc Lasgouttes [Thu, 20 Sep 2018 21:51:21 +0000 (23:51 +0200)]
Avoid space before completion in mathed
This can happen if the current element has space after it (e.g. before
a relation).
Fixes bug #11283.
Jean-Marc Lasgouttes [Thu, 20 Sep 2018 21:21:41 +0000 (23:21 +0200)]
Ignore horizontal wheel scrolling in workarea
We do not know what to do with horizontal scrolling events, so we ignore them.
Note that the code has to be different between Qt4 and Qt5.
Fixes bug #11257.
Jean-Marc Lasgouttes [Thu, 20 Sep 2018 20:15:12 +0000 (22:15 +0200)]
Avoid crash with cursor down in math
This can happen when the inset that contains the cursor is outside of
the screen.
THis is only a workaround. The real solution would be a
processUpdateFlags(FitCursor) call, but the code is not ready for that
yet.
Fixes bug #11296.
Jean-Marc Lasgouttes [Thu, 20 Sep 2018 09:31:23 +0000 (11:31 +0200)]
Paint underline for insets too.
Fixes bug 11297.
Juergen Spitzmueller [Thu, 20 Sep 2018 09:34:44 +0000 (11:34 +0200)]
Customization: use info-inset for layout format
Juergen Spitzmueller [Thu, 20 Sep 2018 09:33:03 +0000 (11:33 +0200)]
Implement layout format in insetinfo
The docs refer to the outdated layout formats. The inset prevents this.
Juergen Spitzmueller [Thu, 20 Sep 2018 09:11:44 +0000 (11:11 +0200)]
info-insert without arg is valid
it opens the info dialog.