Commit Graph

42554 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
eda3219662 Remove unneeded space for \nolimits 2020-09-09 10:35:35 +02:00
Yuriy Skalko
dbb97050b5 Update Russian Beamer docs 2020-09-09 07:37:27 +02:00
Enrico Forestieri
fcd14df230 Avoid spurious requirements
The macros defined in the symbols file are only used for on-screen
representation, so that their definition should not require the use
on any latex package. Their definition should be taken into account
only when they are overridden by user macros with same name.
2020-09-09 01:32:51 +02:00
Enrico Forestieri
0762b52334 Try to use the right width for math symbols
The rules for typesetting math differ from the rules for typesetting
text. For example, two italic 'f' chars have to be typeset more closely
than two 'o' chars in text mode, but not in math mode. Qt provides a
method that returns the distance appropriate for drawing a subsequent
character in text mode, but nothing for math mode. Typically, the
distance appropriate for drawing the next character in math mode is
the actual width span by the character, corrected by the rules of
an appendix in the TeXbook. Recently, those rules are followed more
closely in LyX but not exactly, and we have to find a way to adapt to them.
Some symbols may need more spacing around them than the width they span.
So, we use the distance suggested by Qt, unless it is less than the
width of the rectangle bounding the symbol. Before Qt 5.11 the used method
was QFontMetrics::width(), but since then it has been declared obsolete
in favor of QFontMetrics::horizontalAdvance(), whose name conveys better
its meaning.
2020-09-08 22:30:02 +02:00
Eugene Chornyi
6fac3144d5 Fix warnings in DTL targets on Windows (use STDC) 2020-09-07 21:27:37 +02:00
Kornel Benko
aadfb58374 Cmake build: Try to omit using directory names as source-files in po
Previously there are po-entries like
  #: lib/examples/Articles:0 src/TocBackend.cpp:296
  #:src/frontends/qt/GuiExternal.cpp:87
  msgid "External Material"
  msgstr ""

now:
  #: src/TocBackend.cpp:296 src/frontends/qt/GuiExternal.cpp:87
  #: lib/examples/Articles:0
  msgid "External Material"
  msgstr ""

(The string at 'lib/examples/Articles:0' proceeds also from the directory name 'lib/examples/External_Material')

This makes it easier to use some po-editors like 'linguist'
2020-09-07 21:12:22 +02:00
Yuriy Skalko
b2109b9d39 Add Russian translation of Beamer manual, by Henry Chern 2020-09-07 18:58:34 +02:00
Jean-Marc Lasgouttes
b744c3e28a Revert "Fixup 5202d44e: make caret geometry update lazy"
Something is wrong with the cursor.

This reverts commit dc35f1ddf4.
2020-09-07 16:02:50 +02:00
Jean-Marc Lasgouttes
dc35f1ddf4 Fixup 5202d44e: make caret geometry update lazy
Instead of working around crashes in update of caret geometry, only
request it as needed. The actual computaiton will take place just
before painting the caret.

It might be that this is overkill and that caret geometry should be
updated unconditionally. One would have to to some timing while idle to
ascertain that.

Fixes bug #11912.
2020-09-07 15:52:43 +02:00
Jean-Marc Lasgouttes
9b18a9b609 Fixup e1be71da5: avoid duplication of layout
If the containing paragraph has kept its layout, reset the layout of
the first paragraph of the newly inserted inset.
2020-09-07 14:16:47 +02:00
Jean-Marc Lasgouttes
a58bcf1d27 Fixup f96b99dcb3: read correctly \limits after macros
Move InsetMacro::limits_ to InsetMacro::Private, where it should have
been from the start. This means that limits_ is now copied when the
macro is cloned.
2020-09-07 12:13:42 +02:00
Enrico Forestieri
062d94c5da Fix on-screen display of special math fonts
Make sure that the on-screen representation of the special math fonts
mathbb, mathds, mathfrak, mathcal, and mathscr matches the latex output.
2020-09-06 18:16:04 +02:00
Juergen Spitzmueller
61739e5aef Add some hspacers 2020-09-05 08:23:56 +02:00
Juergen Spitzmueller
199fb4b934 set defaults for float_placement and float_alignment 2020-09-05 08:09:02 +02:00
Stephan Witt
45e8ea4acc #11756 Respect system preferences for tabbing on Mac 2020-09-04 23:28:27 +02:00
Yuriy Skalko
ace9fbb6a0 Update Russian localization 2020-09-04 19:01:50 +02:00
Pavel Sanda
a218f64a56 Fix dist 2020-09-04 09:29:56 +02:00
Enrico Forestieri
50294f6442 Rename and update description of fonts 2020-09-03 21:46:16 +02:00
Pavel Sanda
bc93c6f99e Update check_glyphs.lyx. 2020-09-03 18:39:05 +02:00
Kornel Benko
838853f99e Cmake build: Amend a9afdbb7 and 46fca4dc
Partly revert installing fonds in system dir, not needed after
a9afdbb7 (Personalize fonts)
2020-09-03 18:27:12 +02:00
Enrico Forestieri
a9afdbb73c Personalize fonts
When the fonts distributed with texlive with same family name
as ours are also managed by fontconfig, Qt is not able to
discriminate ours by the style only. In order to be sure Qt
will load our fonts, we change the foundry name from 'PfEd'
to 'LyEd' and augment the font family name with this foundry
name. This only works on *nix, because adding a foundry name
seemingly breaks things on Windows. However, this is a *nix
only problem, seemingly.
2020-09-03 17:46:30 +02:00
Jean-Marc Lasgouttes
efc8d44d09 Fixup 2e784b2f: consider default layout too.
And simplify the test at the same time.
2020-09-03 12:56:33 +02:00
Kornel Benko
5b43b84e43 Update sk.po 2020-09-03 12:03:11 +02:00
Kornel Benko
a45f539bb5 Tools(listFontWithLang.pl): Handle also fonts provided by lyx
These fonts are normally not handled by fontconfig
2020-09-03 11:49:58 +02:00
Juergen Spitzmueller
5c83c5c410 Foward-port tooltip addition from stable (3a7560dcb0) 2020-09-03 08:55:46 +02:00
Juergen Spitzmueller
a67c8a356e de.po 2020-09-03 08:53:32 +02:00
Richard Kimberly Heck
5606e934ac Accelerators 2020-09-02 10:22:26 -04:00
Thibaut Cuvelier
9d8ef32d13 Windows: fix in CMakeLists for warning flags.
/Wp64 was used to debug 64-bit incompatibilities. /W4 is used for warnings.

Don't enable /Wx to turn warnings into errors, as the dependencies won't build.
2020-09-02 15:06:13 +02:00
Enrico Forestieri
8039b34802 Adjust debug output for fonts
This restores the debug output as it was intended before the
introduction of the LYXERR macro that was unconditionally outputing
an end of line. This is how this output was appearing until lyx 1.5:

Looking for font family cmr10 ... got: cmr10
 got it normal!

instead of as it was since lyx 1.6 and until now:

Looking for font family cmr10 ...
got: cmr10
 got it
normal!
2020-09-01 12:12:55 +02:00
Richard Kimberly Heck
1ba785f2c6 Localization 2020-09-01 01:41:10 -04:00
Richard Kimberly Heck
3c25899eab Improved fix for edit button 2020-08-31 11:20:49 -04:00
Richard Kimberly Heck
cf7e32ee8f Fix problem with edit button.
The previous implementation relied upon the cursor being immediately
in front of the inset. A bad idea.
2020-08-31 10:50:59 -04:00
Richard Kimberly Heck
a385b7dc2b Fix bug 4475.
Add ability to create child from the include dialog.
2020-08-31 10:20:52 -04:00
Kornel Benko
46fca4dc1d Cmake build: Install lyx fonts in system dir too on linux
1.) Math-editor seems to use system fonts, so install it there.
2.) We use fonts from the support-dir, so install them there too.

This is something automake may take int account too.
2020-08-30 20:30:21 +02:00
Jean-Marc Lasgouttes
d68f6f7f40 Add FIXME: do we need to update scrollbar at each draw()?
Related to ticket #11947.
2020-08-30 19:16:38 +02:00
Stephan Witt
102e9297d7 Add lilypond wrapper scripts to cmake install 2020-08-30 15:39:05 +02:00
Stephan Witt
292799a4bd #11756 cleanup the view menu on Mac
Using US english desktop language LyX's Mac OS adds some items to the view menu:
1. Show/Hide Tab Bar and
2. Enter Full Screen
These items won't work properly and it's better to hide them.
2020-08-30 15:35:02 +02:00
Juergen Spitzmueller
a99695ce82 Fix conversion and reversion of relative totalheights/heights 2020-08-30 11:44:08 +02:00
Stephan Witt
1c5a2fc0ec #11756 hide additional menu items in edit menu on Mac
Mac OS adds two extra menu entries to the edit menu.
These menu items are:
1. Start Dictation...
2. Emoji & Symbols
Both menu items don't work with LyX.
Therefore they shouldn't be present and the new code hides them.
2020-08-30 11:24:59 +02:00
Stephan Witt
784139da50 Remove unused leftover from Makefile. 2020-08-30 11:24:59 +02:00
Pavel Sanda
2fad89df08 This test is no more just about stmary10. 2020-08-30 10:50:58 +02:00
Pavel Sanda
5054204d53 Add new section about problems on opensuse. 2020-08-30 10:50:58 +02:00
Kornel Benko
f74739075e Amend aef29bb: 2020-08-30 09:58:29 +02:00
Scott Kostyshak
73aef078ac ctests: mark ru XY dvi3_systemF tests wrong output 2020-08-30 00:34:06 -04:00
Scott Kostyshak
1146e6ba43 ru XY examples: set fonts to DejaVu
This choice of fonts is consistent with the Russian Intro manual,
and fixes compilation with XeTeX.
2020-08-30 00:34:06 -04:00
Scott Kostyshak
aef29bbe6f ctests: invert ru XY LuaTeX tests
The following error is given during the compilation:

  ! Package xypdf Error: pdfTeX version 1.40.0 or higher is needed for the xypdf
2020-08-30 00:33:51 -04:00
Scott Kostyshak
57253974bc ctests: invert ru Math LuaTeX tests
There are issues due to varioref. Consistent with 6e50327a.
2020-08-29 14:57:50 -04:00
Enrico Forestieri
80f94a9398 Use correct width for \fint
Both QTextLine::naturalTextWidth() and QTextLine::horizontalAdvance()
return the same value for \fint. However, examining esint10.ttf with
fontforge does not reveal any issue with the metrics. The fact that
\fint seems to be the only affected symbol might be due to its code
point, which corresponds to a space, so that maybe Qt makes some
assumptions on the metrics.

As QTextLine::naturalTextWidth() returns the width of the line that is
occupied by text, in the case of a single symbol we can obtain the
same value by using the width of the rectangle bounding the symbol.
2020-08-29 20:10:26 +02:00
Scott Kostyshak
c225b758cb ru UserGuide: set default output format to pdf2
This is consistent with the math manual, and some of the other
formats don't work, because of varioref issues.
2020-08-29 14:00:07 -04:00
Scott Kostyshak
2a665dcc05 ctests: invert LuaTeX + DavidCLM exports
Thanks to Jürgen, who mentions the following:

  luaotfload does not find "DavidCLM". In fact, at least on my system,
  there is no such font, only "DavidCLM Medium" (and other shapes). This
  one is found. Apparently, luaotfload cannot infer from the one to the
  other.

  As opposed to LuaTEX, XeTeX also queries TEXMF so maybe it just finds
  its font there.
2020-08-29 11:12:05 -04:00