]>
git.lyx.org Git - features.git/log
Richard Kimberly Heck [Thu, 14 Jan 2021 08:07:33 +0000 (03:07 -0500)]
Revert "Add move constructor and move assignment operator for FileName class"
For now, since it's causing problems on OSX particularly.
This reverts commit
854c9de8faf9eb357adc353fc9116996445d5e38 .
Juergen Spitzmueller [Thu, 14 Jan 2021 07:57:15 +0000 (08:57 +0100)]
Fix comment
Juergen Spitzmueller [Thu, 14 Jan 2021 07:55:15 +0000 (08:55 +0100)]
Strip % characters from nomenclWidest()
This character now (oddly) serves as escape char in newer nomencl versions
but it still comments out in all other contexts.
See #10634
Richard Kimberly Heck [Thu, 14 Jan 2021 06:28:42 +0000 (01:28 -0500)]
Whitespace
Richard Kimberly Heck [Thu, 14 Jan 2021 06:15:19 +0000 (01:15 -0500)]
Fix bug #12068
Richard Kimberly Heck [Wed, 13 Jan 2021 19:42:26 +0000 (14:42 -0500)]
Simplify and polish
Richard Kimberly Heck [Wed, 13 Jan 2021 19:38:48 +0000 (14:38 -0500)]
Fix bug #10635
Jean-Marc Lasgouttes [Wed, 13 Jan 2021 10:41:29 +0000 (11:41 +0100)]
Record undo properly when inserting math script
The current code did not always record undo at the right level.
Fixes bug #10843.
Juergen Spitzmueller [Wed, 13 Jan 2021 07:19:54 +0000 (08:19 +0100)]
Simple Search: find isChar() insets (#11462)
Kornel Benko [Tue, 12 Jan 2021 18:33:29 +0000 (19:33 +0100)]
FindAdv: Refactoring some routines which was hard to understand
Most of the previous code is only commented out, will remove them completely later.
(Debugging this code was extremely exhausting)
Eugene Chornyi [Tue, 12 Jan 2021 16:33:44 +0000 (17:33 +0100)]
Wininstaller: remove (old) installer, installer2 becomes (new) installer
Juergen Spitzmueller [Tue, 12 Jan 2021 15:45:32 +0000 (16:45 +0100)]
Consider inset strings in simple find/replaceAll (#12049)
Juergen Spitzmueller [Tue, 12 Jan 2021 15:13:47 +0000 (16:13 +0100)]
Ignore tracked deletions in simple replace (#11194)
Juergen Spitzmueller [Tue, 12 Jan 2021 15:11:58 +0000 (16:11 +0100)]
Ignore tracked deletions in simple find (#11051)
Kornel Benko [Mon, 11 Jan 2021 13:50:03 +0000 (14:50 +0100)]
FindAdv: Allow regex searches at start of paragraph
For example regex '^\w+' finds now only the first word in any paragraph
even if searching without 'ignore format' is set.
Kornel Benko [Sun, 10 Jan 2021 22:31:08 +0000 (23:31 +0100)]
Update sk.po
Kornel Benko [Sun, 10 Jan 2021 21:58:58 +0000 (22:58 +0100)]
FindAdv: Search for 'whole words' with help of modified regex.
Stephan Witt [Sun, 10 Jan 2021 21:02:53 +0000 (22:02 +0100)]
drop unintented static declaration from local temporary variable (formerly a global static constant)
Kornel Benko [Sun, 10 Jan 2021 16:17:37 +0000 (17:17 +0100)]
FindAdv: Converting patterns without regex to use regex instead
Makes the code with less exceptions
(no need to differentiate beteen use_regex and !use_regex)
Move the creation of regexes to own subroutine (Handles '#if QTSEARCH ... #endif')
Use cursor position differences instead of length of matched string. This is important for putSelectionAt()
Juergen Spitzmueller [Sun, 10 Jan 2021 08:55:45 +0000 (09:55 +0100)]
Avoid \@ifundefined after user preamble
Users might have used \makeatother (#11163).
\ifdefined (of e-tex) can be considered available nowadays.
Richard Kimberly Heck [Sun, 10 Jan 2021 07:40:12 +0000 (02:40 -0500)]
Fix bug #6128.
Richard Kimberly Heck [Sun, 10 Jan 2021 07:08:18 +0000 (02:08 -0500)]
Fix problem with display of include insets with non-existent files.
Richard Kimberly Heck [Sun, 10 Jan 2021 06:50:01 +0000 (01:50 -0500)]
Count words in hyperlink
Richard Kimberly Heck [Sun, 10 Jan 2021 06:43:34 +0000 (01:43 -0500)]
Fix bug #5972: Count words in citations (approximately).
Richard Kimberly Heck [Sun, 10 Jan 2021 05:43:01 +0000 (00:43 -0500)]
Fix bug #3205.
Allows external edit of non-existent files.
Richard Kimberly Heck [Sun, 10 Jan 2021 03:17:52 +0000 (22:17 -0500)]
Fix bug #4241: Addition to Intro
Richard Kimberly Heck [Sun, 10 Jan 2021 01:33:23 +0000 (20:33 -0500)]
Fix bug #11030.
Factor out the code that connects to a newly created dialog and then
use that also in GuiGraphics.
There must be many other dialogs that need this same treatment....
Richard Kimberly Heck [Sun, 10 Jan 2021 00:17:47 +0000 (19:17 -0500)]
Fix bug #11010.
Handle LFUN_PHANTOM_INSERT in math.
Richard Kimberly Heck [Sun, 10 Jan 2021 00:02:19 +0000 (19:02 -0500)]
nullptr
Richard Kimberly Heck [Sat, 9 Jan 2021 23:06:50 +0000 (18:06 -0500)]
Show plural and caps status for formatted references. Rest of #11073.
Patch from Daniel, more or less.
Richard Kimberly Heck [Sat, 9 Jan 2021 22:59:07 +0000 (17:59 -0500)]
Update buffer after changing reference options. Part of #11073.
Richard Kimberly Heck [Sat, 9 Jan 2021 22:41:42 +0000 (17:41 -0500)]
Fix bug #11097
Scott Kostyshak [Sat, 9 Jan 2021 18:01:26 +0000 (13:01 -0500)]
ctests: invert old lyx2lyx tests for ar Beamer
This is consistent with the lyx2lyx tests for Beamer in other
languages.
Kornel Benko [Sat, 9 Jan 2021 16:01:50 +0000 (17:01 +0100)]
FindAdv: Amend
474cb42e , implement sub-match replace.
Yuriy Skalko [Sat, 9 Jan 2021 10:35:27 +0000 (12:35 +0200)]
Update ru.po
Yuriy Skalko [Thu, 7 Jan 2021 00:27:31 +0000 (02:27 +0200)]
Add move constructor and move assignment operator for FileName class
Juergen Spitzmueller [Sat, 9 Jan 2021 08:44:38 +0000 (09:44 +0100)]
Disambiguate homographic inflections
These are not homographic in other languages
(e.g. German "Öffnen" vs. "Geöffnet")
Juergen Spitzmueller [Sat, 9 Jan 2021 08:43:10 +0000 (09:43 +0100)]
de.po
Juergen Spitzmueller [Sat, 9 Jan 2021 08:17:41 +0000 (09:17 +0100)]
Juergen Spitzmueller [Sat, 9 Jan 2021 08:07:25 +0000 (09:07 +0100)]
Arabic Beamer: set XeTeX as Default Output Format
LuaTeX (luabidi, for that matter) does not work well.
Also set some command texts in ERT, for readability.
Jean-Marc Lasgouttes [Fri, 8 Jan 2021 18:27:19 +0000 (19:27 +0100)]
Move handling of LFUN_COPY to BufferView
It turns out that the code is the same in texted ans mathed and that
whatever is done in InsetTabular is not useful.
This means that we do not need to deal Text::dispatch idiosyncrasies
(in particular forcing the cursor to be visible).
Fix bug #11225.
Kornel Benko [Fri, 8 Jan 2021 11:23:49 +0000 (12:23 +0100)]
Update sk.po
Kornel Benko [Fri, 8 Jan 2021 11:05:51 +0000 (12:05 +0100)]
FindAdv: Save sub-matches in MatchStringAdv class
Prepare for use while replacing:
(backslashed numbers in the replace buffer should be replaced with the relevant
sub-matched strings.)
Juergen Spitzmueller [Fri, 8 Jan 2021 10:17:31 +0000 (11:17 +0100)]
Use nomath font also if other font package is selected (#11733)
Jean-Marc Lasgouttes [Fri, 8 Jan 2021 09:11:23 +0000 (10:11 +0100)]
Fixup
2a80b0ac01bed2 : fix the StartupWMClass in desktop file
Juergen Spitzmueller [Fri, 8 Jan 2021 08:46:59 +0000 (09:46 +0100)]
Make Arabic Beamer compile
Juergen Spitzmueller [Fri, 8 Jan 2021 08:22:55 +0000 (09:22 +0100)]
Amend [
6887bc5c /lyxgit]
Use a more specific storage command
Scott Kostyshak [Thu, 7 Jan 2021 22:36:44 +0000 (17:36 -0500)]
ctests: invert ru Shortcuts failures from varioref
Consistent with ru Math and Additional.
Richard Kimberly Heck [Thu, 7 Jan 2021 20:56:55 +0000 (15:56 -0500)]
Richard Kimberly Heck [Thu, 7 Jan 2021 16:19:12 +0000 (11:19 -0500)]
Fix bug #8921
Kornel Benko [Thu, 7 Jan 2021 16:04:27 +0000 (17:04 +0100)]
FindAdv: Save found matches (e.g. \0, \1, \2, ...)
Only while debugging for now. Later we may use the saved values in replace string
Juergen Spitzmueller [Thu, 7 Jan 2021 15:37:12 +0000 (16:37 +0100)]
Remove wrong dots from hu.po (#11573)
Juergen Spitzmueller [Thu, 7 Jan 2021 12:28:10 +0000 (13:28 +0100)]
Properly disable Apply/OK in InsetParamsDialog (#11440)
Juergen Spitzmueller [Thu, 7 Jan 2021 12:05:37 +0000 (13:05 +0100)]
GuiParagraph: apply pending changes when setting "immediate apply" (#11592)
Jean-Marc Lasgouttes [Thu, 7 Jan 2021 11:36:36 +0000 (12:36 +0100)]
typo
Juergen Spitzmueller [Thu, 7 Jan 2021 11:08:59 +0000 (12:08 +0100)]
Hint to deleted included file in ct output (#11809)
Juergen Spitzmueller [Thu, 7 Jan 2021 10:53:35 +0000 (11:53 +0100)]
Fix nesting issue in environment-split (#11971)
Scott Kostyshak [Thu, 7 Jan 2021 03:53:44 +0000 (22:53 -0500)]
ctests: invert ar Beamer template
DocBook export is not expected to work with Beamer templates.
Enrico Forestieri [Wed, 6 Jan 2021 23:57:36 +0000 (00:57 +0100)]
Correctly terminate a user math macro in certain circumstances
If a macro has only optionals and none is specified and a [ immediately
follows, we have to terminate the macro with {}, otherwise what follows
is taken to be an optional argument.
Fixes #11665.
Jean-Marc Lasgouttes [Wed, 6 Jan 2021 18:21:26 +0000 (19:21 +0100)]
Display bookmarks in the workarea.
The bookmarks are added as virtual elements in display Rows. Bookmarks
are shown with circled numbers. A new color "bookmarks" has been
added. Currently bookmark 0 (the return position) is not displayed
because it is very disturbing in practice.
To make this work, a new method BookmarksSection::bookmarksInPar
retuns the list of bookmarks in a paragraph along with their position.
Force redraw when using bookmark-save and bookmark-clear.
Fixes bug #2496.
Jean-Marc Lasgouttes [Wed, 6 Jan 2021 18:18:25 +0000 (19:18 +0100)]
Fix use of BookmarkSection::size()
The value was 9 instead of 10, which forced its users to use unusual code.
Jean-Marc Lasgouttes [Wed, 6 Jan 2021 17:49:41 +0000 (18:49 +0100)]
fix Row::findElement when there is a Virtual element
Jean-Marc Lasgouttes [Wed, 6 Jan 2021 17:14:49 +0000 (18:14 +0100)]
Remove some useless Row:: prefixes
Jean-Marc Lasgouttes [Wed, 6 Jan 2021 13:18:25 +0000 (14:18 +0100)]
Style cleanup to bookmark code
Kornel Benko [Wed, 6 Jan 2021 13:22:26 +0000 (14:22 +0100)]
Amend
6211469b : FindAdv: Fine tuning
Handle gracefully multiple '\\'
Thibaut Cuvelier [Wed, 6 Jan 2021 03:28:15 +0000 (04:28 +0100)]
When previewing a document, use the right kind of comment.
This avoids generating % for HTML or DocBook: % indicates a comment in TeX, but not in XML, it's just a character. The snippet that is shown is therefore not valid.
Thibaut Cuvelier [Mon, 4 Jan 2021 21:36:01 +0000 (22:36 +0100)]
Implement \case for AASTeX.
Jean-Marc Lasgouttes [Wed, 6 Jan 2021 10:57:22 +0000 (11:57 +0100)]
Fix unused paramaters warnings
Jean-Marc Lasgouttes [Wed, 6 Jan 2021 10:09:38 +0000 (11:09 +0100)]
Remove extra spaces
Yuriy Skalko [Sat, 2 Jan 2021 09:34:39 +0000 (11:34 +0200)]
Add Russian translation of Shortcuts.lyx
Yuriy Skalko [Wed, 6 Jan 2021 08:48:27 +0000 (10:48 +0200)]
Remove duplicated words in en/ru manuals
Thanks Kornel for suggesting regexp "\b(\w+)\s+\1\b".
Richard Kimberly Heck [Wed, 6 Jan 2021 08:50:47 +0000 (03:50 -0500)]
Fix bug #3964.
As suggested there, we attach ourselves to the newly created inset,
if we in fact just created an inset. (This will only matter if Apply
was clicked, so the dialog is still open, but I did the calcuation
anyway, as it seems cheap enough.) This allows the user to modify
that inset (e.g., change the format) and also prevents another click
on Apply, or OK, from creating another dialog.
I've also removed the override of disconnectOnApply(). It does not
work, anyway, I think because it only works with GuiDialog, not with
DialogView-based dialogs.
Richard Kimberly Heck [Wed, 6 Jan 2021 06:58:30 +0000 (01:58 -0500)]
Update tex2lyx tests
Kornel Benko [Wed, 6 Jan 2021 01:12:58 +0000 (02:12 +0100)]
FindAdv: A try to handle backslashes in text
Otherwise we are unable to distinguish text from latex commands.
For instance '\color{blue}' in text-part is normal text, while othervise
it defines following characters as being blue colored)
Enrico Forestieri [Wed, 6 Jan 2021 01:07:25 +0000 (02:07 +0100)]
Make paste in ensuremath work as in simple math hulls
The ensuremath math inset derives from InsetMathNest, so that only the
first cell of a grid gets pasted. This patch makes it a fixed 1x1 grid
inset so that pasting works as in normal simple math hulls, i.e., all
cells are pasted, one after the other.
Fixes #11617.
Scott Kostyshak [Tue, 5 Jan 2021 23:51:51 +0000 (18:51 -0500)]
ctests: uninvert two docbook exports
These exports now succeed. Perhaps the broken references that were
causing them to fail were fixed.
Richard Kimberly Heck [Tue, 5 Jan 2021 23:22:09 +0000 (18:22 -0500)]
Move assignment where needed
Richard Kimberly Heck [Tue, 5 Jan 2021 22:25:27 +0000 (17:25 -0500)]
Fix bug #11104. Activate refstyle support for InsetMathRef.
At the moment, there is no support for plurals and capitalization.
A long comment explains why. Support could be added for that without
a format change.
Richard Kimberly Heck [Tue, 5 Jan 2021 18:31:45 +0000 (13:31 -0500)]
Micro optimization and constness
Richard Kimberly Heck [Tue, 5 Jan 2021 17:27:20 +0000 (12:27 -0500)]
Fix comment
Jean-Marc Lasgouttes [Tue, 5 Jan 2021 13:53:15 +0000 (14:53 +0100)]
Re-implement display of MARGIN_RIGHT_ADDRESS_BOX
The correct way of implementing this is at paragraph level. Once this
is clear, the implementation is straightforward.
Note that RtL is not handled correctly by the \lyxrightaddress macro.
Fixes bug #11918 and #8152.
Jean-Marc Lasgouttes [Tue, 5 Jan 2021 13:53:15 +0000 (14:53 +0100)]
Fixup
294e4884 : center correctly Abstract label when paragraph is empty
When a paragraph is empty, it was not possible to query what the left
margin would be for an hypothetical second row.
Modify TextMetrics::leftMargin so that it does not test
whether position is after the last position of the paragraph.
Cosmetics: set the size of label to "small" for Abstract layout in
standard classes and reduce the spacing between label and text.
Fixes remainder of #11939.
Jean-Marc Lasgouttes [Tue, 5 Jan 2021 14:14:41 +0000 (15:14 +0100)]
Revert "Center correctly centered top labels (e.g. abstract)"
This reverts commit
6c1855313cef2fac19022ddc4c8eccaee66088e6 .
Jean-Marc Lasgouttes [Tue, 5 Jan 2021 13:53:15 +0000 (14:53 +0100)]
Center correctly centered top labels (e.g. abstract)
Since the first row may be indented, it is necessary to find out what
the left margin would be on the next row (even if this next row does
not exst.
To this end, modify TextMetrics::leftMargin so that it does not test
whether position is after the last position of the paragraph.
Cosmetics: set the size of label to "small" for Abstract layout in
standard classes and reduce the spacing between label and text.
Fixes remainder of #11939.
Kornel Benko [Tue, 5 Jan 2021 09:41:06 +0000 (10:41 +0100)]
Fix file-path
Enrico Forestieri [Mon, 4 Jan 2021 22:00:42 +0000 (23:00 +0100)]
Do not replace nonexistent environment variables
References to environment variables embedded in a filename are expanded
and replaced by their value. However, if a variable does not exist, its
reference is simply erased from the filename, causing havoc (see #7801).
This has been like that since ever and cannot be changed, both for
backward compatibility and because this feature is currently used in
the Windows installer.
A possible backward compatible strategy is leaving as is the reference
to the environment variable (introduced by a $ sign) in the filename
if it does not exist. This is done in this patch, which also assumes
that an escape character is never used in a filename (inserting a $ in
the filename is easy, but I don't think one is able to easily insert
an escape character).
Richard Kimberly Heck [Mon, 4 Jan 2021 19:53:41 +0000 (14:53 -0500)]
Remove elipses from "Open" buttons in About LyX dialog. Fixes #12019.
Richard Kimberly Heck [Mon, 4 Jan 2021 19:52:20 +0000 (14:52 -0500)]
Revert "Remove elipses after 'Open'"
I totally misread this bug report! (#12019)
This reverts commit
8871229f5f0cab072e587282d5e6a32a14da481f .
Richard Kimberly Heck [Mon, 4 Jan 2021 18:47:11 +0000 (13:47 -0500)]
Makefile for Arabi beamer
Richard Kimberly Heck [Mon, 4 Jan 2021 07:58:20 +0000 (02:58 -0500)]
nullptr
Jean-Marc Lasgouttes [Mon, 4 Jan 2021 16:58:11 +0000 (17:58 +0100)]
Fixup
22f599250e9 : missing wildcard
Now all the old gcc 4.x versions (x < 9) are correctly tagged as
obsolete.
Kornel Benko [Mon, 4 Jan 2021 15:57:56 +0000 (16:57 +0100)]
FindAdv: Small refactoring
Yuriy Skalko [Mon, 4 Jan 2021 13:41:53 +0000 (15:41 +0200)]
Show caught exception message in findAdv
Yuriy Skalko [Fri, 9 Oct 2020 14:51:51 +0000 (17:51 +0300)]
Add bindings for Russian keyboard layout (same keys as English)
Yuriy Skalko [Tue, 15 Sep 2020 17:21:54 +0000 (20:21 +0300)]
Define keyboard codes for Cyrillic letters, enable shortcuts using them
Kornel Benko [Mon, 4 Jan 2021 07:28:21 +0000 (08:28 +0100)]
Update sk.po
Richard Kimberly Heck [Mon, 4 Jan 2021 06:39:01 +0000 (01:39 -0500)]
Simplify
Kornel Benko [Mon, 4 Jan 2021 06:16:59 +0000 (07:16 +0100)]
Amend(2)
8c67cb8c : (FindAdv: Try to make regex search with format enabled somehow faster)
Use innermost nesting to start searches.
Some fine tuning to determine correct match.
(If the regex contains '(\S)\1' at the end, then this regex would match '}}',
but this is often the case at and of examined string. We have to disable this invalid match.
)
Richard Kimberly Heck [Mon, 4 Jan 2021 06:06:33 +0000 (01:06 -0500)]
Pop a message if the search fails. Fixes #11441
Richard Kimberly Heck [Mon, 4 Jan 2021 05:12:10 +0000 (00:12 -0500)]
Fix bug #11500