]>
git.lyx.org Git - lyx.git/log
Jean-Marc Lasgouttes [Thu, 5 Sep 2024 20:05:38 +0000 (22:05 +0200)]
Add ScrollType BOTTOM and TOGGLE for BufferView::scrollToCursor()
BOTTOM shows the paragraph containing the cursor at the bottom of the
work area.
TOGGLE does CENTER, then TOP, BOTTOM and finally cycles to CENTER.
This is a feature copied from emacs's C-l binding.
Add new argument "caret" to lfun "scroll" that can be used like
scroll caret center
Change the keys (either C-l, M-l or F5) bound to screen-recenter to
"scroll caret toggle".
As an experiment, change paragraph-goto to use this scrolling method.
This can be tested when going to a heading in the outline pane.
Jean-Marc Lasgouttes [Wed, 4 Sep 2024 13:48:38 +0000 (15:48 +0200)]
Cleanup Page Up/Down code
Since BufferView::scroll() does not correct scrolling amount at
top/bottom anymore, remove its return value and add a new one to
BufferView::updateMetrics(bool) that returns this correction.
Rely on updateMetrics(false) to set the metrics straight after moving
the anchor y position.
Use assert_in_view = false when calling TextMetrics::editXY() because
this parameter does not work as advertised: if an inset not totally
visible, the code will not try to go inside it to look for a smaller
row that is totally visible.
Two small (hopfully useful) modifications:
- take into account the cursor X target instead of its screen position
- adapt the cursor position depending on
lyxrc.mac_like_cursor_movement when hitting start or end of
document.
Jean-Marc Lasgouttes [Tue, 3 Sep 2024 16:13:02 +0000 (18:13 +0200)]
Get rid of BufferView::scrollUp/Down
LFUN_SCROLL was the last user, change it to use only scroll(). Take
this opportunity to improve a bit this dispatch code.
Also improve somewhat the methods documentation.
Jean-Marc Lasgouttes [Tue, 3 Sep 2024 14:21:32 +0000 (16:21 +0200)]
Streamline BufferView::scrollToCursor
There are two parts in this patch :
1/ in the part where the cursor is already visible, replace calls to
scroll/scrollUp/scrollDown by direct manipulation of the anchor
vertical position. Reasoning in terms of new position rather than
amount of pixels to scroll makes work easier.
2/ in the part where the cursor is set to a new TOP or CENTER
position, move the code around in order to prepare for new ScrollType
enums.
No change intended, except that CENTER now relies on the contents
dimension of the row that holds the iterator, that is without spacing
and labels.
Jean-Marc Lasgouttes [Tue, 3 Sep 2024 13:55:34 +0000 (15:55 +0200)]
Simplify greatly Buffer::scroll/Up/Down methods
The code there that checks whether we scroll beyond the top/bottom of
document is not needed anymore, this is handled later by
BufferView::update(bool).
Note that this methods may disappear with time.
No change intended.
Jean-Marc Lasgouttes [Fri, 30 Aug 2024 14:56:16 +0000 (16:56 +0200)]
Fix update of cursor in tab-delete when there is a selection
The position of the cursor should not be decreased if it is already at
the start of the paragraph. This can lead to a crash when trying to
display the caret.
Jean-Marc Lasgouttes [Fri, 30 Aug 2024 13:07:03 +0000 (15:07 +0200)]
Fixup
999fb37e : fix thinko
The current buffer is part of allRelatives(), contrary to what I
thought. Therefore updateId() increased the buffer id by two.
Jean-Marc Lasgouttes [Fri, 30 Aug 2024 12:53:07 +0000 (14:53 +0200)]
update comments
Jean-Marc Lasgouttes [Fri, 30 Aug 2024 12:31:47 +0000 (14:31 +0200)]
Remove legacy code to compute geometry
This code is not necessary anymore after the fix to #13069.
Remove the first QString argument to createView(). Set the autoShow
parameter to false by default and rename createView(id) to
createAndShowView(id) to avoid member function overloading issues.
Remove optional <GEOMETRY> argument of window-new lfun.
Document the removal of the argument in release notes.
Kornel Benko [Fri, 30 Aug 2024 12:08:05 +0000 (14:08 +0200)]
Amend
18c310a8 for cmake build: Get rid of QPA_XCB define
Jean-Marc Lasgouttes [Thu, 29 Aug 2024 09:15:26 +0000 (11:15 +0200)]
Get rid of QPA_XCB define
Since the platform is selected at run time (e.g. xcb vs. Wayland), it
is not a good idea to decide at compile time what code is run. Another
example is on macOS, where having xcb libraries available will lead to
lauching the Xquartz whenever LyX is running.
With this patch, things are separated:
- the code is run when run-time platform is "xcb".
- the support code is compiled in when xcb header and libraries are
available.
Fixes ticket #13086.
Jean-Marc Lasgouttes [Thu, 29 Aug 2024 09:10:31 +0000 (11:10 +0200)]
Streamline -geometry command-line option support
Instead of baking our own support for -geometry command line option on
Windows (Qt only does that for Xcb), use the fact that Qt 5 provides
the equivalent -qwindowgeometry flag.
All we need to do is to replace the -geometry option with -qwindowgeometry.
This is part of the effort in ticket #13086 to get rid of the
compile-time QPA_XCB define.
Kornel Benko [Thu, 29 Aug 2024 12:13:12 +0000 (14:13 +0200)]
Amend
f1fddd86
Add defines for HAVE_XCB_XCB_H and HAVE_LIBXCB to cmake build
Kornel Benko [Thu, 29 Aug 2024 12:08:39 +0000 (14:08 +0200)]
Cmake build: Add defines for HAVE_XCB_XCB_H and HAVE_LIBXCB
Jürgen Spitzmüller [Wed, 28 Aug 2024 07:23:35 +0000 (09:23 +0200)]
Add missing Spanish modifier
Jean-Marc Lasgouttes [Mon, 26 Aug 2024 22:09:04 +0000 (00:09 +0200)]
Force a metrics update of buffer after reload
It makes reload more robust and is in any case good enough to avoid
crash in #139091.
Fixes bug #13091.
Enrico Forestieri [Mon, 26 Aug 2024 12:29:15 +0000 (14:29 +0200)]
Update it.po
Kornel Benko [Mon, 26 Aug 2024 10:10:28 +0000 (12:10 +0200)]
Update sk.po
Juergen Spitzmueller [Mon, 26 Aug 2024 05:35:34 +0000 (07:35 +0200)]
Reset lang_options before reading headers
Juergen Spitzmueller [Mon, 26 Aug 2024 05:20:58 +0000 (07:20 +0200)]
output babel options via \babelprovide in all cases needed
Juergen Spitzmueller [Sun, 25 Aug 2024 16:01:26 +0000 (18:01 +0200)]
Amend
fc605cf138c
Use proper option if main and a secondary language have BabelProvide 2
Juergen Spitzmueller [Sun, 25 Aug 2024 14:20:42 +0000 (16:20 +0200)]
Another language GUI string improvement
Juergen Spitzmueller [Sun, 25 Aug 2024 13:50:30 +0000 (15:50 +0200)]
de.po
Juergen Spitzmueller [Sun, 25 Aug 2024 13:45:18 +0000 (15:45 +0200)]
Clarify usablity of language support variants in GUI string
Juergen Spitzmueller [Sun, 25 Aug 2024 13:31:14 +0000 (15:31 +0200)]
Farsi and Arabic need BabelProvide 2, too
Juergen Spitzmueller [Sun, 25 Aug 2024 13:21:56 +0000 (15:21 +0200)]
Properly set the babel bidi option (#12862)
Juergen Spitzmueller [Sun, 25 Aug 2024 12:56:05 +0000 (14:56 +0200)]
Add proper support for BabelProvide 2
We need to instruct babel not to load an existing ldf in this case
Juergen Spitzmueller [Sun, 25 Aug 2024 12:08:33 +0000 (14:08 +0200)]
Fix typo
Juergen Spitzmueller [Sun, 25 Aug 2024 12:06:54 +0000 (14:06 +0200)]
de.po
Juergen Spitzmueller [Sun, 25 Aug 2024 12:00:44 +0000 (14:00 +0200)]
Fix GUI string
Juergen Spitzmueller [Sun, 25 Aug 2024 11:39:18 +0000 (13:39 +0200)]
Fix typo in UI file
Juergen Spitzmueller [Sun, 25 Aug 2024 11:26:06 +0000 (13:26 +0200)]
Update tex2lyx tests
Juergen Spitzmueller [Sun, 25 Aug 2024 11:23:57 +0000 (13:23 +0200)]
Avoid empty option in babelCall
Juergen Spitzmueller [Sun, 25 Aug 2024 11:22:07 +0000 (13:22 +0200)]
Add support for the following languages
Polyglossia:
Chinese (Simplified), Chinese (Traditional), Japanese, Kurdish (Sorani),
Latin (Classic), Latin (Ecclesiastic), Latin (Medieval), N'ko, Odia,
Punjabi, and Uyghur
Babel:
Amharic, Armenian, Asturian, Bengali, Church Slavonic, Coptic, Divehi,
Kannada, Kazakh, Khmer, Kurdish (Sorani), Lao, Latin (Classic),
Latin (Ecclesiastic), Latin (Medieval), Malayalam, Marathi, N'ko,
Occitan, Odia, Punjabi, Russian (Petrine orthography), Sanskrit, Syriac,
Tamil, Telugu, Tibetan, Urdu, and Uyghur
José Matos [Sun, 25 Aug 2024 09:14:18 +0000 (10:14 +0100)]
Python 3.13 removed the pipes module from the standard library
That module was a wrapper over the popen module and it was scheduled to
be removed in Python 3.11.
This code is also compatible with Python 2.
Kornel Benko [Sun, 25 Aug 2024 09:15:01 +0000 (11:15 +0200)]
Update sk.po
Juergen Spitzmueller [Sun, 25 Aug 2024 08:18:38 +0000 (10:18 +0200)]
Assure OK/Apply button is initially disabled in InsetParamsDialogs (#8927)
Juergen Spitzmueller [Sun, 25 Aug 2024 08:06:56 +0000 (10:06 +0200)]
Some more language TODOs
Obviously, we can support all languages that have so far only been
provided via polyglossia with babel(provide)
Juergen Spitzmueller [Sun, 25 Aug 2024 07:48:04 +0000 (09:48 +0200)]
Load Ancient Greek and Mexican Spanish via \babelprovide
In classic babel, these varieties are only available via modifiers
or attributes, which means that they could only be used instead rather
than in addition to the default variety
Juergen Spitzmueller [Sun, 25 Aug 2024 07:46:29 +0000 (09:46 +0200)]
Basic support for \babelprovide
This is the new(er) babel mechanism to load languages via babel *.ini
files.
Some languages (or varieties) are only supported this way, some work
better with unicode engines this way (for the latter case, we have
BabelProvide 2)
Juergen Spitzmueller [Sat, 24 Aug 2024 13:53:01 +0000 (15:53 +0200)]
spell out all polyglossia variants (required if varieties are mixed)
Juergen Spitzmueller [Sat, 24 Aug 2024 13:43:58 +0000 (15:43 +0200)]
Some more language TODOs
Juergen Spitzmueller [Sat, 24 Aug 2024 13:10:20 +0000 (15:10 +0200)]
Update some polyglossia names
and add TODOs for not yet supported polyglossia languages
Juergen Spitzmueller [Sat, 24 Aug 2024 12:30:37 +0000 (14:30 +0200)]
Add BabelOpts to languages
This way, some settings that were hardcoded in BabelPreamble are
customizable in document settings
Juergen Spitzmueller [Sat, 24 Aug 2024 03:54:54 +0000 (05:54 +0200)]
Avoid duplicate option passing with babel
Juergen Spitzmueller [Sat, 24 Aug 2024 03:45:17 +0000 (05:45 +0200)]
NomenclUI: fix spacer
This seems t be a bug in my Qt designer
Juergen Spitzmueller [Sat, 24 Aug 2024 02:51:45 +0000 (04:51 +0200)]
Provide babel language options only for languages that have options
Pavel Sanda [Fri, 23 Aug 2024 19:35:53 +0000 (21:35 +0200)]
Not needed anymore.
Juergen Spitzmueller [Fri, 23 Aug 2024 16:00:58 +0000 (18:00 +0200)]
No need to decorate roots in one-level tree widgets
Juergen Spitzmueller [Fri, 23 Aug 2024 15:15:04 +0000 (17:15 +0200)]
More languages that use babel modifiers
Juergen Spitzmueller [Fri, 23 Aug 2024 14:50:30 +0000 (16:50 +0200)]
de.po
Juergen Spitzmueller [Fri, 23 Aug 2024 14:46:37 +0000 (16:46 +0200)]
babel-german uses modifiers
Juergen Spitzmueller [Fri, 23 Aug 2024 14:45:52 +0000 (16:45 +0200)]
Fix language options glitches
Juergen Spitzmueller [Fri, 23 Aug 2024 14:13:54 +0000 (16:13 +0200)]
update tex2lyx tests
Juergen Spitzmueller [Fri, 23 Aug 2024 14:08:37 +0000 (16:08 +0200)]
Document language options
Juergen Spitzmueller [Fri, 23 Aug 2024 14:06:50 +0000 (16:06 +0200)]
Juergen Spitzmueller [Fri, 23 Aug 2024 13:52:34 +0000 (15:52 +0200)]
Add support for language options (#8034)
File format change.
Note that this cannot be properly reverted to LyX 2.4, so any options
will simply vanish on reversion or roundtrip
Pavel Sanda [Fri, 23 Aug 2024 06:16:08 +0000 (08:16 +0200)]
Copy zh_CN.po from branch
Pavel Sanda [Thu, 22 Aug 2024 21:00:50 +0000 (23:00 +0200)]
* postats.py description
Scott Kostyshak [Thu, 22 Aug 2024 16:04:11 +0000 (12:04 -0400)]
Update tex2lyx tests
Scott Kostyshak [Thu, 22 Aug 2024 14:51:09 +0000 (10:51 -0400)]
Fix Python SyntaxWarning
Use raw strings to avoid the following syntax warnings that show up
in LastTest.log after running tex2lyx ctests:
src/tex2lyx/test/runtests.py:135: SyntaxWarning: invalid escape sequence '\o'
if linex[:-1] == '\origin ' + inputdir + '/':
src/tex2lyx/test/runtests.py:136: SyntaxWarning: invalid escape sequence '\o'
lines1[i1] = '\origin ' + outputdir + '/' + "\n"
Kornel Benko [Thu, 22 Aug 2024 09:41:21 +0000 (11:41 +0200)]
Update sk.po
Juergen Spitzmueller [Thu, 22 Aug 2024 07:42:40 +0000 (09:42 +0200)]
typos
Juergen Spitzmueller [Thu, 22 Aug 2024 07:41:28 +0000 (09:41 +0200)]
de.po
Juergen Spitzmueller [Thu, 22 Aug 2024 07:30:48 +0000 (09:30 +0200)]
Oops ...
Juergen Spitzmueller [Thu, 22 Aug 2024 07:19:43 +0000 (09:19 +0200)]
clarify use of subgroups
Juergen Spitzmueller [Thu, 22 Aug 2024 06:17:33 +0000 (08:17 +0200)]
The InsetPrintNomenclature settings make no sense with nomentbl
Juergen Spitzmueller [Thu, 22 Aug 2024 06:11:18 +0000 (08:11 +0200)]
Add GUI support for nomencl options
Juergen Spitzmueller [Thu, 22 Aug 2024 03:35:47 +0000 (05:35 +0200)]
\use_nomentbl -> \nomencl_opts
This allows for support of more options
As the param is only a few hours old, no lyx2lyx handling is needed
Juergen Spitzmueller [Wed, 21 Aug 2024 16:07:47 +0000 (18:07 +0200)]
disambiguate string
Juergen Spitzmueller [Wed, 21 Aug 2024 16:07:13 +0000 (18:07 +0200)]
de.po
Juergen Spitzmueller [Wed, 21 Aug 2024 15:54:06 +0000 (17:54 +0200)]
Amend
13ee0bc8cd1025
Improve tex2lyx handling
Juergen Spitzmueller [Wed, 21 Aug 2024 15:38:49 +0000 (17:38 +0200)]
update tex2lyx tests
Juergen Spitzmueller [Wed, 21 Aug 2024 15:35:48 +0000 (17:35 +0200)]
Add support for the nomentbl nomenclature option
file format change
Richard Kimberly Heck [Wed, 21 Aug 2024 15:14:41 +0000 (11:14 -0400)]
Replace lyx2lyx code with native solution
(cherry picked from commit
46f2fd1a7457ae92b9382d23d15579c68761a997 )
Juergen Spitzmueller [Wed, 21 Aug 2024 04:19:45 +0000 (06:19 +0200)]
Fix erroneous self-nesting
Juergen Spitzmueller [Tue, 20 Aug 2024 15:38:28 +0000 (17:38 +0200)]
fix A&A template
Koji Yokota [Tue, 20 Aug 2024 13:44:39 +0000 (22:44 +0900)]
Fix wrong preedit cursor position in Qt5
Kornel Benko [Tue, 20 Aug 2024 10:48:33 +0000 (12:48 +0200)]
Update sk.po
Pavel Sanda [Mon, 19 Aug 2024 20:03:16 +0000 (22:03 +0200)]
Fix regression introduced via #12819.
We will mark buffer as modified only in case of removal,
not when just externally modified.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg222715.html
Pavel Sanda [Mon, 19 Aug 2024 19:47:16 +0000 (21:47 +0200)]
Header not needed anymore.
Juergen Spitzmueller [Sun, 18 Aug 2024 16:41:52 +0000 (18:41 +0200)]
de.po
Juergen Spitzmueller [Sun, 18 Aug 2024 16:18:07 +0000 (18:18 +0200)]
Improve output pane, as discussed in #12372
* The image scale param is shared by XHTML and DocBook
* It does not only apply to math
* Get rid of redundant group headers (#12902)
Juergen Spitzmueller [Sun, 18 Aug 2024 15:53:51 +0000 (17:53 +0200)]
Add "needcopiesfrom" converter flag
This is needed to provide ePub and other DocBook-based exports with
the right (renamed) images (fixes #12372)
Juergen Spitzmueller [Sun, 18 Aug 2024 07:59:37 +0000 (09:59 +0200)]
Assure widest nomencl label is encodable
Juergen Spitzmueller [Sat, 17 Aug 2024 14:55:23 +0000 (16:55 +0200)]
another lyx2lyx fix for index
Juergen Spitzmueller [Sat, 17 Aug 2024 14:19:10 +0000 (16:19 +0200)]
fix lyx2lyx functions
Juergen Spitzmueller [Sat, 17 Aug 2024 14:15:11 +0000 (16:15 +0200)]
remove useless warning
Juergen Spitzmueller [Sat, 17 Aug 2024 11:22:42 +0000 (13:22 +0200)]
harmonize indendation
José Matos [Fri, 16 Aug 2024 16:33:14 +0000 (17:33 +0100)]
Add another option to get python by using the unversioned name
Juergen Spitzmueller [Fri, 16 Aug 2024 09:23:57 +0000 (11:23 +0200)]
Consider known latex text macros (basically the logos) in convertaTeXCommands()
Juergen Spitzmueller [Thu, 15 Aug 2024 15:44:01 +0000 (17:44 +0200)]
further improve get_quoted_value
as per José's suggestion
Thibaut Cuvelier [Thu, 15 Aug 2024 13:40:31 +0000 (15:40 +0200)]
Fix typo in comment.
Juergen Spitzmueller [Thu, 15 Aug 2024 11:11:20 +0000 (13:11 +0200)]
style
Juergen Spitzmueller [Thu, 15 Aug 2024 07:06:14 +0000 (09:06 +0200)]
revert_nomencl: escape " and \ for command inset
Juergen Spitzmueller [Thu, 15 Aug 2024 06:51:18 +0000 (08:51 +0200)]
forgotten subindex
Juergen Spitzmueller [Thu, 15 Aug 2024 06:05:31 +0000 (08:05 +0200)]
fix convert_index_sc method
Juergen Spitzmueller [Thu, 15 Aug 2024 06:04:48 +0000 (08:04 +0200)]
fix get_quoted_value
The previous version also stripped quotes that are part of the string
Juergen Spitzmueller [Wed, 14 Aug 2024 14:28:15 +0000 (16:28 +0200)]
Disable valign widget in tabularx tables
See https://marc.info/?l=lyx-users&m=
172363857509065 &w=2
Juergen Spitzmueller [Wed, 14 Aug 2024 14:27:20 +0000 (16:27 +0200)]
Unbreak GuiTabular::fucEnabled()
I wonder how long this has been broken (if it ever worked)