]> git.lyx.org Git - lyx.git/log
lyx.git
5 years agoUpdate to boost 1.68
Jean-Marc Lasgouttes [Fri, 23 Nov 2018 15:14:23 +0000 (16:14 +0100)]
Update to boost 1.68

This avoids warnings from gcc 8

5 years agoShow cursor correctly whn loading file
Jean-Marc Lasgouttes [Wed, 21 Nov 2018 12:49:20 +0000 (13:49 +0100)]
Show cursor correctly whn loading file

This is a fixup to 8d8988de4. When a file is loaded and the cursor is
set, it is required to first compute metrics to be able to scroll the
screen correctly.

Fixes bug #11377.

5 years agoFindAdv: Optimization
Kornel Benko [Tue, 20 Nov 2018 13:36:11 +0000 (14:36 +0100)]
FindAdv: Optimization

A try to decrement the number of tests for a match.

Also a try to handle Hebrew documents. Unfortunatelly
the latex output is missing the language specification
(only the change of encoding is available there).
I failed to find a proper place to add the lang.
That means, searching for e.g. English text in Hebrew documents
is not satisfying.

5 years agoFindAdv: Enable search for different languages in Korean documents too
Kornel Benko [Sun, 18 Nov 2018 09:37:12 +0000 (10:37 +0100)]
FindAdv: Enable search for different languages in Korean documents too
The problem here was that for european languages only the encoding
was visible in latex output. Now also the language is provided.

5 years agoFix reloading of local layout file (bug #11120)
Enrico Forestieri [Fri, 16 Nov 2018 20:47:24 +0000 (21:47 +0100)]
Fix reloading of local layout file (bug #11120)

5 years agoFindAdv: Remove left over comment character
Kornel Benko [Fri, 16 Nov 2018 11:12:06 +0000 (12:12 +0100)]
FindAdv: Remove left over comment character

Sometimes language spec starts with "% ". This happens in Japaneese documents
containig English text at start of paragraph.

5 years agoFindAdv: Added lyx-function search-ignore
Kornel Benko [Thu, 15 Nov 2018 13:20:50 +0000 (14:20 +0100)]
FindAdv: Added lyx-function search-ignore

Enable/disable ignoring the specified type
language: e.g. british, slovak, latin, ...
color: blue, red, ...
sectioning: part, chapter, ..
font:
series: bold, ...
shape: upright, italic, slanted
family: serif, monospace ...
markup: enphasize, noun
underline:
strike:

Examples:
search-ignore language true
search-ignore shape true

5 years agoFindAdv: Significantly increase the search speed
Kornel Benko [Tue, 13 Nov 2018 11:11:33 +0000 (12:11 +0100)]
FindAdv: Significantly increase the search speed

The needed time to find a simple string dependes on the
paragraph length was O(n^2)
Now it is down to O(n).
Before:
To determine if the pattern matches we compared the
paragraph from current position to the its end.
Increment current position if no match
Now:
Check if the character at current position has at least
the needed features (text, color, language etc)
If not, Increment current position
else proceed as before

5 years agoFix cursor left/right navigation in overset, underset, and stackrel
Enrico Forestieri [Mon, 12 Nov 2018 18:05:09 +0000 (19:05 +0100)]
Fix cursor left/right navigation in overset, underset, and stackrel

Before this commit, navigating with the cursor was visiting either
the nucleus or the script depending on the direction (left or right)
of the cursor movement. Now the 2.3.x behavior of always going through
the nucleus is restored (at least for overset and underset, as stackrel
seems to behave oddly also in 2.3.x).

5 years agoFindAdv: Polishing search with regex containing '.'
Kornel Benko [Mon, 12 Nov 2018 11:17:16 +0000 (12:17 +0100)]
FindAdv: Polishing search with regex containing '.'

Also added missing math env alignat
Modified handling of longtable/tabular
Added a routine to count for valid chars. This is needed
for detection of word boundaries.

Due to detection conflicts
regex '.*' vs match of word-boundaries in MatchStringAdv::operator()
we need to use '\b' in regex explicitly. E.g. '\b.*\b'

The backward search works, but
1.) only in current paragraph (this is the same as before)
2.) only in the same language environment.

5 years agoTypo
Jean-Marc Lasgouttes [Mon, 12 Nov 2018 10:41:54 +0000 (11:41 +0100)]
Typo

5 years agoUpdate layout format number
Enrico Forestieri [Sat, 10 Nov 2018 15:07:07 +0000 (16:07 +0100)]
Update layout format number

5 years agoFix bug #11367
Enrico Forestieri [Sat, 10 Nov 2018 14:50:51 +0000 (15:50 +0100)]
Fix bug #11367

The overset, underset, and stackrel insets behave like the script
rather than the fraction inset.

5 years agoRestore correct left/right navigation in root inset
Enrico Forestieri [Sat, 10 Nov 2018 13:55:00 +0000 (14:55 +0100)]
Restore correct left/right navigation in root inset

Now all cells are correctly visited in sequence when moving with
cursor left/right.

5 years agoMake cell-forward/backward cycle in math
Jean-Marc Lasgouttes [Fri, 9 Nov 2018 15:21:55 +0000 (15:21 +0000)]
Make cell-forward/backward cycle in math

Make cell-backward put the cursor at the end of cell when using
mac-like cursor movement.

5 years agoimprove left/right navigation in root inset
Jean-Marc Lasgouttes [Fri, 9 Nov 2018 05:22:04 +0000 (21:22 -0800)]
improve left/right navigation in root inset

Now the cursor is correctly set when changing cell with xursor left/right.

5 years agoChange IgnoreFormats to a proper class
Jean-Marc Lasgouttes [Fri, 9 Nov 2018 05:07:17 +0000 (21:07 -0800)]
Change IgnoreFormats to a proper class

Instantiate a global variabble holding the formats and allow to modify
it using the helper function setIgnoreFormat.

5 years agoFindAdv: Polishing
Kornel Benko [Fri, 9 Nov 2018 12:36:47 +0000 (13:36 +0100)]
FindAdv: Polishing

1.) Added \textmd to be ignored (sometimes it is used and sometimes not)
2.) Typo: multiline --> multline. Searching in 'multline' caused a crash
because processing all of the '{' and '}' in the content of this math
exceeded the size of the interval field.

5 years agomissed this.
Juergen Spitzmueller [Fri, 9 Nov 2018 10:47:51 +0000 (11:47 +0100)]
missed this.

5 years agoFix thinko
Juergen Spitzmueller [Fri, 9 Nov 2018 10:28:38 +0000 (11:28 +0100)]
Fix thinko

Actually use the replaced path string :-/

5 years agoFindAdv: Polishing
Kornel Benko [Thu, 8 Nov 2018 08:59:51 +0000 (09:59 +0100)]
FindAdv: Polishing

1.) Handle some unclosed parentheses
Sometimes \shortcut is not correctly closed
2.) Added \ldots as known char
3.) Discard some shapes (circlepar, droppar, ...)
4.) Omit resulting empty string and use some value
which cannot be matched instead

5 years agoFixup 097da3a9: fix horizontal navigatiion in InsetMathRoot
Jean-Marc Lasgouttes [Wed, 7 Nov 2018 21:53:00 +0000 (11:53 -1000)]
Fixup 097da3a9: fix horizontal navigatiion in InsetMathRoot

Exchanging cells 0 and 1 requires to implement idxBackWard/Forward.

5 years agoFixup 097da3a9: update the math parser
Jean-Marc Lasgouttes [Wed, 7 Nov 2018 18:24:54 +0000 (08:24 -1000)]
Fixup 097da3a9: update the math parser

One has to account for the change in cell numbering.

5 years agoFindAdv: Optimize for long matches
Kornel Benko [Wed, 7 Nov 2018 12:14:50 +0000 (13:14 +0100)]
FindAdv: Optimize for long matches

Still, if the matched string is at a rear part of a very long
paragraph, the search is way too slow.

5 years agoWhen inserting math inset over selection, place cursor better
Jean-Marc Lasgouttes [Tue, 6 Nov 2018 07:29:22 +0000 (21:29 -1000)]
When inserting math inset over selection, place cursor better

This is a follow up to 503c7c16.

The new argument for placing cursor after insertion of inset is:
* if inset has no cell, do nothing
* otherwise, place inset in entry cell.
  + if entry cell is not empty (we pasted a selection), go to next cell
  + if this next cell does not exit, stay after the inset.

5 years agoChange cell numbers so that 0 is the main cell
Jean-Marc Lasgouttes [Tue, 6 Nov 2018 07:29:47 +0000 (21:29 -1000)]
Change cell numbers so that 0 is the main cell

This leads to code simplification in overset, root and underset.
Further simplification is possible.

5 years agoFindAdv: Discard table decorations
Kornel Benko [Wed, 7 Nov 2018 08:35:16 +0000 (09:35 +0100)]
FindAdv: Discard table decorations

That way we do not match the whole table but only the cell contents.
The problem I had was
1.) Document language Spanish
2.) Table (copied from English doc) => language English
3.) All cell contents Spanish

Now search for English text led to a selection of the whole
table, although there was no English content in any cell.

5 years agoFindadv: Initialize the position of first unprocessed open parentheses
Kornel Benko [Tue, 6 Nov 2018 14:28:43 +0000 (15:28 +0100)]
Findadv: Initialize the position of first unprocessed open parentheses

Not initializing caused some wrong matches.

5 years agoFindadv: Polishing
Kornel Benko [Mon, 5 Nov 2018 11:58:45 +0000 (12:58 +0100)]
Findadv: Polishing

1.) Do not remove '{}' unconditionally from \item parameter
2.) Do not output last empty entry

5 years agoAvoid extra space in tooltips
Jean-Marc Lasgouttes [Sun, 4 Nov 2018 23:53:36 +0000 (13:53 -1000)]
Avoid extra space in tooltips

When using QTextDocument to check the natutal size of a text, one has
to remove the text margin, which is not useful here.

Fixes bug #11353.

5 years agoFindadv: Some glitches found while searching for English text in fr/UserGuide.lyx
Kornel Benko [Sun, 4 Nov 2018 20:41:04 +0000 (21:41 +0100)]
Findadv: Some glitches found while searching for English text in fr/UserGuide.lyx

Ignore \index
Handle \og and \bg as characters
Remove space in empty list-item (description or labeling)

5 years agoFindadv: 'Optimized' detection of matched string
Kornel Benko [Sun, 4 Nov 2018 13:54:06 +0000 (14:54 +0100)]
Findadv: 'Optimized' detection of matched string

This is clearly a hack, because I don't understand why the
previous code did not work.

5 years agoFix selection of unmarked RtL text
Jean-Marc Lasgouttes [Sat, 3 Nov 2018 15:55:33 +0000 (15:55 +0000)]
Fix selection of unmarked RtL text

With Qt 5.11 at least, RtL text will be drawn RtL even when the
(undocumented) flag Qt::TextForceLeftToRight is applied to the
QTextLayout object. This creates selection issues for Hebrew text
marked as English.

The solution is to do the same as in breakAt_helper, that is prepend
the string with a direction override unicode character.

Doing this requires to introduce a TEXTLAYOUT_OFFSET constant that has
to be used wisely to account for this extra character.

Fixes bug #11284.

5 years agoRemove old workaround that is not needed anymore
Jean-Marc Lasgouttes [Sat, 3 Nov 2018 14:29:10 +0000 (14:29 +0000)]
Remove old workaround that is not needed anymore

This causes a compilation error with boost 1.69.

Fixes bug #11349.

5 years agofindadv: Output language chage in ANY case, if outputting for search
Kornel Benko [Sat, 3 Nov 2018 14:00:58 +0000 (15:00 +0100)]
findadv: Output language chage in ANY case, if outputting for search

Without this, the first \item entry in a list does not specify the language
in latex output. But we need it if we do not ignore language in search.

5 years agoMinor fixes
Richard Kimberly Heck [Sat, 3 Nov 2018 14:00:48 +0000 (10:00 -0400)]
Minor fixes

5 years agoSpeed up parenthesis conversion routine for Hebrew. Patch from Guy.
Richard Kimberly Heck [Sat, 3 Nov 2018 13:58:32 +0000 (09:58 -0400)]
Speed up parenthesis conversion routine for Hebrew. Patch from Guy.

5 years agofindadv tests: Remaining test passes now too
Kornel Benko [Sat, 3 Nov 2018 11:30:07 +0000 (12:30 +0100)]
findadv tests: Remaining test passes now too

5 years agoFindadv: Handle the problem with list environments
Kornel Benko [Sat, 3 Nov 2018 10:15:12 +0000 (11:15 +0100)]
Findadv: Handle the problem with list environments

The problem was, that the different list ennvironments
did not look different in tha latex output used for
search.
So the input of "\item ..." did not give information
if it is description, lyxlist, enumeration or labeling.

In search modus we use now "\item{enumeration}" etc.

5 years agoFindadv: Use '\n' as delimiter for end of data with same features
Kornel Benko [Fri, 2 Nov 2018 09:32:28 +0000 (10:32 +0100)]
Findadv: Use '\n' as delimiter for end of data with same features

This allows to use '.' in regex without matching also wrong data.

Also added modified patch from ajd (see #11241).

5 years agoAdded test findadv-22
Kornel Benko [Wed, 31 Oct 2018 10:19:47 +0000 (11:19 +0100)]
Added test findadv-22

Related to https://www.lyx.org/trac/ticket/11241
(Find and replace doesn't find a wedge of two things in a subscript.)

5 years agoFindadv: Allow multiple math statements in a line
Kornel Benko [Tue, 30 Oct 2018 19:52:29 +0000 (20:52 +0100)]
Findadv: Allow multiple math statements in a line

5 years agoDispay pre- and posttext widgets if non-empty also if unapplied
Juergen Spitzmueller [Tue, 30 Oct 2018 16:23:08 +0000 (17:23 +0100)]
Dispay pre- and posttext widgets if non-empty also if unapplied

Fixes: #11352
5 years agoFix parentheses with Hebrew
Juergen Spitzmueller [Tue, 30 Oct 2018 11:33:35 +0000 (12:33 +0100)]
Fix parentheses with Hebrew

Patch by Guy Rutenberg, with some changes of mine.

Fixes: #11191
5 years agoFindadv: Remaining findadv tests pass now
Kornel Benko [Mon, 29 Oct 2018 12:17:54 +0000 (13:17 +0100)]
Findadv: Remaining findadv tests pass now

Exception: findadv-21, but it is not a regression,
because this one never passed.
The problem here is, that we cannot differentiate
between enumeration, itemize, description and labeling
environment here.

5 years agoFindadv: Adapt search for special chars '[', ']', '%' and '#'
Kornel Benko [Mon, 29 Oct 2018 06:37:32 +0000 (07:37 +0100)]
Findadv: Adapt search for special chars '[', ']', '%' and '#'

5 years agoChanges to match math equations
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

5 years agoRevert "Comment out unused functions to restore -Werror"
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

5 years agoComment out unused functions to restore -Werror
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.

5 years agoAmend 23041f53: remove extra parenthesis
Scott Kostyshak [Sat, 27 Oct 2018 23:16:36 +0000 (19:16 -0400)]
Amend 23041f53: remove extra parenthesis

5 years agoAmend 4459603, MSVC versions >= 1915 allow std::regex
Kornel Benko [Sat, 27 Oct 2018 18:51:57 +0000 (20:51 +0200)]
Amend 4459603, MSVC versions >= 1915 allow std::regex

5 years agoAmend(4) 74c849d Advanced search with format
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);

5 years agoAdd dummy implementation for Messages::getIfFound (used when ENABLE_NLS is false)
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)

5 years agoAllow std::regex for MSVC10
Kornel Benko [Thu, 25 Oct 2018 08:14:49 +0000 (10:14 +0200)]
Allow std::regex for MSVC10

5 years agoAmend(3) 74c849d Advanced search with format
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=...'

5 years agoAmend(2) 74c849d Advanced search with format
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

5 years agoAmend 74c849d, Advanced search with format
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

5 years agoUse underline in (+ bold) for char match in layout
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

5 years agoAdvanced search with format, preparing for selective searching
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

5 years agoAmend 8d8988de: it is too early for skipping the updateMacros call
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

5 years agoAdvanced search with format, consider also sectioning macros
Kornel Benko [Sat, 20 Oct 2018 10:47:37 +0000 (12:47 +0200)]
Advanced search with format, consider also sectioning macros

5 years agoAdvanced search with format, refactoring
Kornel Benko [Fri, 19 Oct 2018 17:11:20 +0000 (19:11 +0200)]
Advanced search with format, refactoring

5 years agoCommented out an unused function to please a picky compiler
Kornel Benko [Fri, 19 Oct 2018 09:10:54 +0000 (11:10 +0200)]
Commented out an unused function to please a picky compiler

5 years agoCompilation fix (with qt4 at least).
Jean-Marc Lasgouttes [Fri, 19 Oct 2018 08:02:02 +0000 (10:02 +0200)]
Compilation fix (with qt4 at least).

5 years agoUse bold instead of underlining to mark the characters we're matching.
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.

5 years agoSimplify the code that adds underlining to the layout combo.
Richard Kimberly Heck [Fri, 19 Oct 2018 01:41:20 +0000 (21:41 -0400)]
Simplify the code that adds underlining to the layout combo.

5 years agoRefactor
Richard Kimberly Heck [Fri, 19 Oct 2018 01:11:14 +0000 (21:11 -0400)]
Refactor

5 years agoRe-organize and simplify now.
Richard Kimberly Heck [Tue, 16 Oct 2018 02:52:53 +0000 (22:52 -0400)]
Re-organize and simplify now.

5 years agoWhitespace.
Richard Kimberly Heck [Tue, 16 Oct 2018 02:46:31 +0000 (22:46 -0400)]
Whitespace.

5 years agoFix bug #6096.
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.

5 years agoFilter on consecutive sequences of characters.
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.

5 years agoAmend(4) 7a03fa6: Advanced search with format:
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.

5 years agoAmend(3) 7a03fa6: Advanced search with format:
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

5 years agoAmend(2) 7a03fa6: Advanced search with format:
Kornel Benko [Sun, 14 Oct 2018 18:39:13 +0000 (20:39 +0200)]
Amend(2) 7a03fa6: Advanced search with format:

Further tweeking.

5 years agoAmend edca2e0: copy && paste error
Kornel Benko [Sat, 13 Oct 2018 20:22:48 +0000 (22:22 +0200)]
Amend edca2e0: copy && paste error

5 years agoAmend 7a03fa6: Advanced search with format:
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

5 years agoAmend a754912 once more
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
5 years agoClear bibfile cache when set of bibliography files change
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

5 years agoAdvanced search with format: Prepare latex for find
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.

5 years agoFix bug #11332
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.

5 years agoAmend a754912
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
5 years agoLoad covington later
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.

5 years agoFollowup to 9fe101e8: remove unused method.
Jean-Marc Lasgouttes [Mon, 8 Oct 2018 14:03:20 +0000 (16:03 +0200)]
Followup to 9fe101e8: remove unused method.

5 years agoRemove support for pixmap cache
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.

5 years agoAmend(2) b78bdf8
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.

5 years agoAmend(1) b78bdf8
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

5 years agoAdded better handling for languages and colors for advanced F&R
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

5 years agoFix part of bug #8521.
Richard Kimberly Heck [Fri, 5 Oct 2018 01:02:51 +0000 (21:02 -0400)]
Fix part of bug #8521.

5 years agoFix bug #9004.
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.

5 years agoUpdate the Advanced F&R document class when switching buffers.
Richard Kimberly Heck [Fri, 4 May 2018 17:05:36 +0000 (13:05 -0400)]
Update the Advanced F&R document class when switching buffers.

5 years agoCopy modules into the Advanced F&R pane as well.
Richard Kimberly Heck [Fri, 4 May 2018 16:37:52 +0000 (12:37 -0400)]
Copy modules into the Advanced F&R pane as well.

5 years agoMake tab movement visible (#10733)
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.

5 years agoFix up e5fc7327.
Richard Kimberly Heck [Thu, 4 Oct 2018 21:56:14 +0000 (17:56 -0400)]
Fix up e5fc7327.

5 years agoFix context menu for external edit.
Richard Kimberly Heck [Thu, 4 Oct 2018 21:32:48 +0000 (17:32 -0400)]
Fix context menu for external edit.

5 years agoFix bug 9798.
Richard Heck [Sat, 7 Apr 2018 02:29:04 +0000 (22:29 -0400)]
Fix bug 9798.

Nameref support for math references.

5 years agoFix bug #11275.
Richard Kimberly Heck [Thu, 4 Oct 2018 18:02:01 +0000 (14:02 -0400)]
Fix bug #11275.

Show module name with description.

5 years agoExtend fix for #7404 to allow any inset collapsible to be edited
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.

5 years agoFix display of gather in lefteqn mode
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.

5 years agoFixup 38f09c177b7: limit to paint rectangle
Jean-Marc Lasgouttes [Thu, 4 Oct 2018 12:27:43 +0000 (14:27 +0200)]
Fixup 38f09c177b7: limit to paint rectangle

5 years agoWhen ignoring an update, request one for later
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.