]>
git.lyx.org Git - features.git/log
Jean-Marc Lasgouttes [Thu, 19 Jul 2018 21:05:00 +0000 (23:05 +0200)]
Use a unicode character for menu separator on screen
Additionally, use a left pointing character in a RtL setting.
Jean-Marc Lasgouttes [Thu, 19 Jul 2018 20:16:40 +0000 (22:16 +0200)]
Introduce FontMetrics::xHeight
Use it instead of measuring the height of character 'x'.
Jean-Marc Lasgouttes [Thu, 19 Jul 2018 19:02:31 +0000 (21:02 +0200)]
Fixup
30ec879d and
41ebc3fc
Remove the #if 0 area, which does not seem really useful. Some tweaks
to the code.
Kornel Benko [Wed, 18 Jul 2018 20:04:22 +0000 (22:04 +0200)]
Update sk.po, revize many accelerators
Kornel Benko [Wed, 18 Jul 2018 20:02:50 +0000 (22:02 +0200)]
Amend
30ec879 , Add a translator as a fallback to Qt inner one
Add the needed strings to GuiApplication.cpp
Jean-Marc Lasgouttes [Tue, 17 Jul 2018 22:41:09 +0000 (00:41 +0200)]
Add a translator as a fallback to Qt inner one
This reuses code intended only for mac manus and generalizes it. The
list of strings to add to po files is found in
GuiTranslator::translate.
This is useful now that LyX relies on QDialogButtonBox class for its
dialogs. Indeed many languages are not covered natively by Qt.
It is possible to enable the "locace" debug channel to see what
strings are not covered and should be added to our own translation
tables.
In order to make things easier, a new method getIfFound() has been
added to the Messages class, which returns an empty string when no
translation has been found, as Qt's translate() does.
Scott Kostyshak [Mon, 16 Jul 2018 08:58:22 +0000 (04:58 -0400)]
Hebrew docs: No need to mark logos as English
Thanks to the fix to #10423, we can leave e.g. \LyX and \LaTeX as
the default language (which is Hebrew for these document).
Juergen Spitzmueller [Sun, 15 Jul 2018 18:56:55 +0000 (20:56 +0200)]
Proper logos with RTL
Fixes #10423
Juergen Spitzmueller [Sun, 15 Jul 2018 17:23:19 +0000 (19:23 +0200)]
Par alignment in floats must be swapped for all RTL langs, not only Hebrew
Fixes: #11029
Kornel Benko [Sun, 15 Jul 2018 16:13:18 +0000 (18:13 +0200)]
Update sk.po
Enrico Forestieri [Sun, 15 Jul 2018 15:15:10 +0000 (17:15 +0200)]
Update it.po
Juergen Spitzmueller [Sun, 15 Jul 2018 12:47:29 +0000 (14:47 +0200)]
de.po: update
Juergen Spitzmueller [Sun, 15 Jul 2018 12:26:29 +0000 (14:26 +0200)]
Fix bracket output in RTL languages
This is a real mess!
Fixes: #11187
Juergen Spitzmueller [Sun, 15 Jul 2018 10:11:10 +0000 (12:11 +0200)]
Fix quotation marks in RTL script
Fixes: #11188
Juergen Spitzmueller [Fri, 13 Jul 2018 08:20:26 +0000 (10:20 +0200)]
Fix command line output of convertDefault.py for ImageMagick
Part of #11186
Juergen Spitzmueller [Tue, 10 Jul 2018 13:00:25 +0000 (15:00 +0200)]
Use QMessageBox for toggleWarning if possible
Qt 5.2 introduces the possibility to place a checkbox on a QMessageBox,
so we need no longer to use our own crude dialog.
Juergen Spitzmueller [Tue, 10 Jul 2018 11:04:02 +0000 (13:04 +0200)]
QDialogButtonBox for the remaining dialogs.
Juergen Spitzmueller [Tue, 10 Jul 2018 09:01:49 +0000 (11:01 +0200)]
Fix creationCode() of GuiPrintNomencl
This fixes "New Inset" in that dialog.
Candidate for stable
Juergen Spitzmueller [Tue, 10 Jul 2018 07:04:42 +0000 (09:04 +0200)]
More QDialogButtonBox
Listings through Prefs.
Juergen Spitzmueller [Tue, 10 Jul 2018 05:11:59 +0000 (07:11 +0200)]
Disallow any inset inside ERT
Attempting to do this crashes in master, and is not supported anyway.
Richard Kimberly Heck [Mon, 9 Jul 2018 01:38:00 +0000 (21:38 -0400)]
Fix bug #10177.
The left margin given at class level should apply only to the main text.
Juergen Spitzmueller [Mon, 9 Jul 2018 07:46:39 +0000 (09:46 +0200)]
More QDialogButtonBox transformation
GuiDelimiter through GuiIndex
See #11003
Juergen Spitzmueller [Sun, 8 Jul 2018 14:48:58 +0000 (16:48 +0200)]
Amend
0570d16a3b211
When slot[Ok|Apply|Cancel]() from GuiDialog are re-implemented, we also
need to re-implement slotButtonBox()
Juergen Spitzmueller [Sun, 8 Jul 2018 14:35:38 +0000 (16:35 +0200)]
Start using QDialogButtonGroup rather than manual OK etc. buttons
This assures the OK/Apply/Cancel/Restore buttons use the layout/style
of the OS (button order, icons).
The goal is to move all dialogs to this for 2.4.
See #11003
Kornel Benko [Sun, 8 Jul 2018 11:45:02 +0000 (13:45 +0200)]
Update sk.po
Juergen Spitzmueller [Sun, 8 Jul 2018 10:38:56 +0000 (12:38 +0200)]
Minor doc tweaks/corrections
Juergen Spitzmueller [Sun, 8 Jul 2018 10:20:21 +0000 (12:20 +0200)]
de.po: update
Juergen Spitzmueller [Sun, 8 Jul 2018 10:13:47 +0000 (12:13 +0200)]
Polish Bib(la)TeX dialog
Kornel Benko [Sat, 7 Jul 2018 14:14:34 +0000 (16:14 +0200)]
Update sk.po
Kornel Benko [Sat, 7 Jul 2018 14:08:48 +0000 (16:08 +0200)]
Revert "Remove dependences from .layout files"
Some styles are not second-level dependencies
This reverts commit
92c8a864071f02eb98bccc466bd5e98a9098fa91 .
Juergen Spitzmueller [Sat, 7 Jul 2018 13:36:00 +0000 (15:36 +0200)]
de.po: update
Juergen Spitzmueller [Sat, 7 Jul 2018 13:28:40 +0000 (15:28 +0200)]
update tex2lyx tests
Juergen Spitzmueller [Sat, 7 Jul 2018 13:25:35 +0000 (15:25 +0200)]
Add support for bib files encoding
File format change.
Fixes: #6223
Kornel Benko [Sat, 7 Jul 2018 12:13:40 +0000 (14:13 +0200)]
Remove dependences from .layout files
Kornel Benko [Sat, 7 Jul 2018 09:32:16 +0000 (11:32 +0200)]
sk.po, some shortcut corrections
Kornel Benko [Sat, 7 Jul 2018 09:29:40 +0000 (11:29 +0200)]
Amend
8da02501 , Add bindings for inset-settings
Added binding to emacs.bind too
Kornel Benko [Sat, 7 Jul 2018 09:25:36 +0000 (11:25 +0200)]
Cmake tests: Simplify creation of batch tests
Kornel Benko [Sat, 7 Jul 2018 09:10:20 +0000 (11:10 +0200)]
Cmake key tests: Corrected test findadv-21
Uses the correct shortcuts from lib/bind/sk/menus.bind, but fails nonetheless
because the regex for advanced search cannot find the correct list type.
(That is: it cannot distinguish between 'enumerate', 'itemize', 'labeling', etc.)
Juergen Spitzmueller [Sat, 7 Jul 2018 07:18:47 +0000 (09:18 +0200)]
Correctly calculate cell metrics with xtabular columns
Fixes rest of #11182
Juergen Spitzmueller [Fri, 6 Jul 2018 14:15:13 +0000 (16:15 +0200)]
Do not expand tabular cells to maxwidth on line break
Fixes part of #11182.
Juergen Spitzmueller [Fri, 6 Jul 2018 12:36:41 +0000 (14:36 +0200)]
Amend
9f9041db7a7e
move cl2emult to obsolete category
Kornel Benko [Fri, 6 Jul 2018 09:06:46 +0000 (11:06 +0200)]
Update sk.po
Juergen Spitzmueller [Fri, 6 Jul 2018 08:18:06 +0000 (10:18 +0200)]
de.po: update
Juergen Spitzmueller [Fri, 6 Jul 2018 08:12:51 +0000 (10:12 +0200)]
Remove entry for obsolete class.
Juergen Spitzmueller [Fri, 6 Jul 2018 08:09:13 +0000 (10:09 +0200)]
Use more informative descriptions fro Springer layouts
Juergen Spitzmueller [Thu, 5 Jul 2018 17:28:15 +0000 (19:28 +0200)]
Update elsarticle entry in LaTeXConfig
Kornel Benko [Thu, 5 Jul 2018 15:53:15 +0000 (17:53 +0200)]
dtk.layout: Remove secondary dependencies due to change in TL2018
Juergen Spitzmueller [Thu, 5 Jul 2018 15:49:46 +0000 (17:49 +0200)]
Fix typo
Jean-Marc Lasgouttes [Thu, 5 Jul 2018 12:01:56 +0000 (14:01 +0200)]
Fixes to input method handling
The goal of this patch is to make "self-insert <string>" act as a
sequence of individual self-insert calls. Once it is done, the
insertion of the commit string in GuiWorkArea can use that, which
fixes the issues described in bug 11183.
1/ in InsetMathNest, SELF_INSERT is rewritten to be a proper loop of
interpretChar, instead of inserting the string as characters. This
solves the issue of interpreting ^ properly.
2/ the text version does not need to be changed (the loop is rewritten
using a range, though).
3/ Then {{{GuiWorkArea::inputMethodEvent}}} is changed to invoke
directly self-insert. This removes the update issues.
Fixes bug 11183.
Enrico Forestieri [Wed, 4 Jul 2018 17:52:13 +0000 (19:52 +0200)]
Autodetect the EMF format
Otherwise it will be recognized only by the file extension, because
libmagic returns "application/octet-stream" as mime type. Moreover,
if the emf encapsulates a binary image format, it can be confused
with this other format and its preview on screen fails.
Jean-Marc Lasgouttes [Wed, 4 Jul 2018 10:11:24 +0000 (12:11 +0200)]
Make toolbar icons like Itemize toggle
Copy the old layout_* icons to layout-toggle_*
Fixes bug 9864.
Enrico Forestieri [Wed, 4 Jul 2018 07:42:04 +0000 (09:42 +0200)]
Fix compilation on case insensitive filesystems
In such filesystems, including either Magic.h or magic.h does not
make any difference and the one or other file is included depending
on the search order. In this case, Magic.h was trying to include
itself instead of including magic.h.
Jean-Marc Lasgouttes [Tue, 3 Jul 2018 19:18:26 +0000 (21:18 +0200)]
fix compilation when libmagic is not used
Jean-Marc Lasgouttes [Tue, 3 Jul 2018 14:53:15 +0000 (16:53 +0200)]
Do not allow completion when there is an active selection
We do it in texted only, mathed is more difficult and not so relevant IMO.
Juergen Spitzmueller [Tue, 3 Jul 2018 10:36:29 +0000 (12:36 +0200)]
Fix another encoding problem in ja/
Jean-Marc Lasgouttes [Tue, 3 Jul 2018 09:36:12 +0000 (11:36 +0200)]
Encapsulate libmagic support in a class
This makes the code much easier to read and, additionally, allows to
parse the magic file with magic_load() only once per session.
As a result, getFormatFromFile is slightly faster.
Juergen Spitzmueller [Tue, 3 Jul 2018 09:31:39 +0000 (11:31 +0200)]
Fix input encoding issue with German example text
pLaTeX requires SJIS encoding, so only ASCII latin is possible.
Juergen Spitzmueller [Mon, 2 Jul 2018 17:16:22 +0000 (19:16 +0200)]
Amend
e5c79a43ee781
Consider some tabularx specifics for the display of tabular/column widths
in the workarea.
Juergen Spitzmueller [Mon, 2 Jul 2018 15:05:46 +0000 (17:05 +0200)]
Attempt to reflect tabular width in workarea
This is not perfect, since variable width columns will break at a certain
treshold, but it is better than what we have now (no tabular width
indication at all)
Jean-Marc Lasgouttes [Mon, 2 Jul 2018 08:49:58 +0000 (10:49 +0200)]
Do not force lfun argument to be pure ascii
Fixes bug #11167.
Juergen Spitzmueller [Sun, 1 Jul 2018 17:18:38 +0000 (19:18 +0200)]
Support varwidth's V tabular column type
This effectively enables linebreaks, multipars and layout changes in
non-fixed width (i.e., standard) table columns.
Fixes: #6577
TODO: metrics are wrong (too wide) on screen with linebreaks.
Kornel Benko [Sat, 30 Jun 2018 15:00:56 +0000 (17:00 +0200)]
Amend
88e5e5f : Wrap rotated cells with linebreaks in varwidth
Added testcase from #8085
Juergen Spitzmueller [Sat, 30 Jun 2018 12:32:27 +0000 (14:32 +0200)]
Wrap rotated cells with linebreaks in varwidth
Fixes: #8085
Juergen Spitzmueller [Tue, 26 Jun 2018 08:51:16 +0000 (10:51 +0200)]
Handle correctly zero table special arguments.
Fixes: #10247
Richard Kimberly Heck [Tue, 26 Jun 2018 04:26:35 +0000 (00:26 -0400)]
update assertion.
Kornel Benko [Mon, 25 Jun 2018 10:01:44 +0000 (12:01 +0200)]
Cmake tests: Added tex2lyx test for xltabular and tabularx
Juergen Spitzmueller [Mon, 25 Jun 2018 10:01:26 +0000 (12:01 +0200)]
Fix definition of boolean
Juergen Spitzmueller [Mon, 25 Jun 2018 09:52:56 +0000 (11:52 +0200)]
tex2lyx: tabular width in longtable is now possible (via xltabular).
Juergen Spitzmueller [Mon, 25 Jun 2018 08:53:40 +0000 (10:53 +0200)]
With xltabular, multi-page tables can have a fixed width
Juergen Spitzmueller [Mon, 25 Jun 2018 08:34:57 +0000 (10:34 +0200)]
GuiTabular: set focus on column width LE if custom is selected
Juergen Spitzmueller [Mon, 25 Jun 2018 08:27:27 +0000 (10:27 +0200)]
de.po
Enrico Forestieri [Sun, 24 Jun 2018 18:06:40 +0000 (20:06 +0200)]
Fix bug #11180
When a raster image with an advertised pixel density different
from 72 dpi is included in a latex file, the output image dimensions
are scaled by the ratio 72/pixel_density. Hence, if a clipping
bounding box is specified, it has to be scaled by the same ratio,
otherwise the images will be clipped differently on screen and output.
Here we use the extractbb command (present in any TeX distribution)
to ask about the output dimensions of the image as dictated by the
pixel density and compute the scaling ratio by the knowledge of the
actual dimensions. If, for whatever reason, extractbb is not found,
everything goes as before, because the clipping bounding box will
simply not be corrected.
Juergen Spitzmueller [Sun, 24 Jun 2018 16:13:03 +0000 (18:13 +0200)]
tex2lyx: Add support for multirow
Fixes: #11164
Kornel Benko [Sun, 24 Jun 2018 08:49:29 +0000 (10:49 +0200)]
Update sk.po
Juergen Spitzmueller [Sun, 24 Jun 2018 08:34:44 +0000 (10:34 +0200)]
de.po: update
Juergen Spitzmueller [Sun, 24 Jun 2018 08:23:30 +0000 (10:23 +0200)]
tex2lyx: check for \maketitle also if other titlename is specified
Beamer for instance supports \maketitle, although we use \makebeamertitle
Juergen Spitzmueller [Sun, 24 Jun 2018 08:09:39 +0000 (10:09 +0200)]
Update tex2lyx tests.
Juergen Spitzmueller [Sun, 24 Jun 2018 08:05:15 +0000 (10:05 +0200)]
Add support for tabularx/xltabular
I.e., variable width columns in single and multiple page tables
Files format change.
Fixes: #4154, #4155
Kornel Benko [Sat, 23 Jun 2018 17:00:04 +0000 (19:00 +0200)]
Cmake tests: Adapt some keytests due to changed key-bindings
Pavel Sanda [Tue, 19 Jun 2018 21:53:36 +0000 (23:53 +0200)]
lyx-build: check sig in case one really uses download instead of local tarball.
Enrico Forestieri [Sat, 16 Jun 2018 18:55:38 +0000 (20:55 +0200)]
Fix bug #11174
Apparently, a new paragraph is started after a float even if
no blank line is actually present. So, account for this fact.
Stephan Witt [Tue, 12 Jun 2018 20:42:48 +0000 (22:42 +0200)]
Extend Clang compiler detection to cover Apple CLang
CMake 3.0 and above recognize that Apple Clang is a different compiler than upstream Clang and so it gets a different CMAKE_CXX_COMPILER_ID.
Scott Kostyshak [Sun, 10 Jun 2018 18:21:23 +0000 (14:21 -0400)]
INSTALL.cmake: update min. CMake version to 3.1.0
As of
72a2f922 , we require at least CMake version 3.1.0.
Kornel Benko [Sun, 10 Jun 2018 09:40:12 +0000 (11:40 +0200)]
Cmake build: Disable possible warn about not known policy
Kornel Benko [Sat, 9 Jun 2018 21:59:47 +0000 (23:59 +0200)]
Cmake build: Simplify use of qt5 modules
According to this page:
http://doc.qt.io/qt-5/cmake-manual.html
the way to replace use of qt5_use_modules() for module "_mod" and target "_target"
is to use
1.) cmake_minimum_required(VERSION 3.1.0)
2.) find_package(Qt5${_mod} CONFIG REQUIRED)
3.) target_link_libraries(${_target} Qt5::${_mod})
The last one sets all reguired libraries, compile flags and needed includes for the ${_target}
Kornel Benko [Sat, 9 Jun 2018 14:52:15 +0000 (16:52 +0200)]
Cmake build: Adapt to compile with qt5.11
Since qt5_use_modules() is removed from QT5 (as spotted
by Jürgen Spitzmüller), we had to create own version
of this macro.
Juergen Spitzmueller [Sat, 9 Jun 2018 09:52:55 +0000 (11:52 +0200)]
Support input of non-ASCII characters in hyperlinks
We transform them to hex representation via
QByteArray::toPercentEncoding()
Fixes: #11165
Kornel Benko [Sat, 9 Jun 2018 07:48:41 +0000 (09:48 +0200)]
Cmate tests: Amend
aca3031
The script checkKeys.pl.in was mentioned but not added to the previous commit.
Kornel Benko [Sat, 9 Jun 2018 07:08:42 +0000 (09:08 +0200)]
Cmake tests: Added check to inspect created pdf in test "AMS-import"
If the command "comparepdf" is found, it will be used.
Also the script lyx_batch.pl is now easier to expand for
possible new comparision tools.
jpc [Fri, 8 Jun 2018 16:24:47 +0000 (18:24 +0200)]
Update fr.po
Jean-Marc Lasgouttes [Fri, 8 Jun 2018 08:32:47 +0000 (10:32 +0200)]
Unbreak completion in text mode
Completion uses a complicated async scheme based on timers to update
itself. This is probably not necessary anymore and is fragile to
event order changes.
This is what happens with the new painting scheme. Therefore the
asyncHideXXX() methods have to be made more robust and detect whether
completion state has changed by the time they are triggered.
Richard Kimberly Heck [Wed, 6 Jun 2018 17:55:59 +0000 (13:55 -0400)]
Enrico Forestieri [Wed, 6 Jun 2018 16:59:37 +0000 (18:59 +0200)]
Avoid duplicate generation of the same preview
When an image has to be loaded a second time and the cache
is not used or the image is not in the cache, its preview is
going to be regenerated again. Hence, if the same image
appears more than once on screen, avoid requesting simultaneous
generation of the same preview.
See also this thread:
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg205057.html
Kornel Benko [Wed, 6 Jun 2018 15:03:12 +0000 (17:03 +0200)]
Cmake build: make editing of po-files on unix easier
Editing created po-file with a lokalization program like "linguist"
needs a hint to find the referenced sources.
Creating symbolic links helps.
Kornel Benko [Wed, 6 Jun 2018 09:48:33 +0000 (11:48 +0200)]
Update sk.po
Richard Heck [Mon, 2 Apr 2018 02:40:00 +0000 (22:40 -0400)]
Fix bug #7404.
This allows for external editing of ERT insets. Original patch
by Georg Baum. Updated to 2.4dev by Riki Heck.
Richard Heck [Fri, 20 Apr 2018 03:33:40 +0000 (23:33 -0400)]
Fix bug #991.
Patch adapts Georg's work on #7404 to this case.
Jean-Marc Lasgouttes [Tue, 5 Jun 2018 09:24:05 +0000 (11:24 +0200)]
Use getArg to read math-extern arguments
This avoids a use of istringstream that coverity dislikes.
Scott Kostyshak [Mon, 4 Jun 2018 16:45:09 +0000 (12:45 -0400)]
configure.ac: update LYX_DATE
We update the date to 2018-02-24, which is the date of the 2.3.0
release. For discussion, see:
https://www.mail-archive.com/search?l=mid&q=
11760986 .J1Atc1jgU7%40amd64
Jean-Marc Lasgouttes [Mon, 4 Jun 2018 08:51:11 +0000 (10:51 +0200)]
Catch exception in replaceEnvironmentPath
This exception in the regex constructor is only theoretical (our regex
are hardcoded), but this is creating coverity noise.
Additionally, revert the following commits that are not needed anymore:
6b6fa94c : Catch exceptions to please coverity
c2ed75fd : Fixup
6b6fa94c : coverity says there are more possible exceptions.
This commit is better viewed with 'git show -b'.