]> git.lyx.org Git - lyx.git/log
lyx.git
3 years agoDocBook: better output with the Linguistics module.
Thibaut Cuvelier [Tue, 1 Sep 2020 22:46:08 +0000 (00:46 +0200)]
DocBook: better output with the Linguistics module.

One issue left: <table> output within an <informaltable>, that does not make sense... I'm debugging it.

3 years agoDocBook: fix crash with Linguistics example.
Thibaut Cuvelier [Tue, 1 Sep 2020 22:36:46 +0000 (00:36 +0200)]
DocBook: fix crash with Linguistics example.

This was due to Floating::docbookTag not returning anything with the floattype_ tableau. Another issue that happened with that document is that the standard library's isspace crashed for some characters. I therefore implemented a more efficient version of the part that required it, and inlined the definition of isspace (even though that part becomes irrespective of locale, but was that feature ever used?).

3 years agoFix a few warnings.
Thibaut Cuvelier [Tue, 1 Sep 2020 22:00:54 +0000 (00:00 +0200)]
Fix a few warnings.

3 years agoDocBook: do a little something for shapepar.
Thibaut Cuvelier [Mon, 31 Aug 2020 01:09:16 +0000 (03:09 +0200)]
DocBook: do a little something for shapepar.

3 years agoDocBook: implement theorems.
Thibaut Cuvelier [Mon, 31 Aug 2020 00:39:37 +0000 (02:39 +0200)]
DocBook: implement theorems.

This is a minimal implementation, as DocBook lacks a serious way of encoding all of this. Maybe a <formalpara> could do the trick, but I'd need to find a way to shoehorn a title through the styles (i.e. a first complete tag):

Theorem: Bla bla

<formalpara>
<title>Theorem</title>
<para>Bla bla</para>
</formalpara>

This would also only be a solution for single-paragraph things, as formalpara only allows one paragraph. Or a sidebar, but it's semantically very remote.

3 years agoDocBook: several missing features for Additional.lyx.
Thibaut Cuvelier [Sun, 30 Aug 2020 23:41:09 +0000 (01:41 +0200)]
DocBook: several missing features for Additional.lyx.

Includes: semantic markup (sorry about noun: Additional.lyx uses it to mark menus; there is something better in DocBook, but it looks like the LaTeX equivalent is really for person names), boxes, info layouts.

3 years agoDocBook: implement LyX-Code.
Thibaut Cuvelier [Sun, 30 Aug 2020 23:24:28 +0000 (01:24 +0200)]
DocBook: implement LyX-Code.

This is quite ugly.

3 years agoDocBook: <person> is not valid per se, rather use <personname>.
Thibaut Cuvelier [Sun, 30 Aug 2020 22:50:37 +0000 (00:50 +0200)]
DocBook: <person> is not valid per se, rather use <personname>.

The cleanest solution would still be <person><personname>, but this ought to be enough. Otherwise, that would imply having two tags for some fonts...

3 years agoDocBook: subfigures example is fixed.
Thibaut Cuvelier [Sun, 30 Aug 2020 22:46:49 +0000 (00:46 +0200)]
DocBook: subfigures example is fixed.

Probably thanks to the magic of the previous commits.

3 years agoDocBook: new-line behaviour in bibliographies.
Thibaut Cuvelier [Sun, 30 Aug 2020 22:45:19 +0000 (00:45 +0200)]
DocBook: new-line behaviour in bibliographies.

3 years agoDocBook: support Full Width from Tufte Book.
Thibaut Cuvelier [Sun, 30 Aug 2020 22:43:02 +0000 (00:43 +0200)]
DocBook: support Full Width from Tufte Book.

3 years agoDocBook: fix margin notes.
Thibaut Cuvelier [Sun, 30 Aug 2020 22:42:32 +0000 (00:42 +0200)]
DocBook: fix margin notes.

They were nested twice in <sidebar>. Also fixes a new line issue.

3 years agoDocBook: new lines around formulae.
Thibaut Cuvelier [Sun, 30 Aug 2020 22:21:12 +0000 (00:21 +0200)]
DocBook: new lines around formulae.

3 years agoDocBook: avoid generating fonts for "special cases" like equations.
Thibaut Cuvelier [Sun, 30 Aug 2020 22:18:35 +0000 (00:18 +0200)]
DocBook: avoid generating fonts for "special cases" like equations.

3 years agoDocBook: fix line issues around programlisting.
Thibaut Cuvelier [Sun, 30 Aug 2020 21:56:16 +0000 (23:56 +0200)]
DocBook: fix line issues around programlisting.

3 years agoDocBook: fix font issues when a paragraph has an InsetNewline.
Thibaut Cuvelier [Sun, 30 Aug 2020 21:38:40 +0000 (23:38 +0200)]
DocBook: fix font issues when a paragraph has an InsetNewline.

3 years agoDocBook: fix issue with fonts.
Thibaut Cuvelier [Sun, 30 Aug 2020 21:29:02 +0000 (23:29 +0200)]
DocBook: fix issue with fonts.

3 years agoDocBook: fixes in bibliography (missing new line at the end).
Thibaut Cuvelier [Sun, 30 Aug 2020 20:08:01 +0000 (22:08 +0200)]
DocBook: fixes in bibliography (missing new line at the end).

3 years agoDocBook: fixes in lists.
Thibaut Cuvelier [Sun, 30 Aug 2020 20:05:40 +0000 (22:05 +0200)]
DocBook: fixes in lists.

Actually output something when list item is empty. XMLStream discarded the sequence StartTag/EndTag (nothing in between).

New-line behaviour around term in description lists.

3 years agoDocBook: fix titles in KOMA Script.
Thibaut Cuvelier [Sun, 30 Aug 2020 19:51:40 +0000 (21:51 +0200)]
DocBook: fix titles in KOMA Script.

3 years agoDocBook: bug fixing with wrapper merging.
Thibaut Cuvelier [Sun, 30 Aug 2020 01:30:56 +0000 (03:30 +0200)]
DocBook: bug fixing with wrapper merging.

3 years agoDocBook: bug fixing in AASTeX layout.
Thibaut Cuvelier [Sun, 30 Aug 2020 01:08:55 +0000 (03:08 +0200)]
DocBook: bug fixing in AASTeX layout.

That's mostly generating DocBook tags at an inappropriate place with some metadata, rather than outputting whatever you have at your disposal. Far from satisfying, but good enough for a generic tool (see details in the new TODO). Doesn't trigger assertions. Is valid XML.

3 years agoDocBook: adapt AASTeX for tag types (new-line behaviour).
Thibaut Cuvelier [Sun, 30 Aug 2020 00:34:49 +0000 (02:34 +0200)]
DocBook: adapt AASTeX for tag types (new-line behaviour).

3 years agoDocBook: adapt SimpleCV for tag types (new-line behaviour).
Thibaut Cuvelier [Sun, 30 Aug 2020 00:30:24 +0000 (02:30 +0200)]
DocBook: adapt SimpleCV for tag types (new-line behaviour).

3 years agoDocBook: fix bibliographies (end of <bibliography> and sections).
Thibaut Cuvelier [Sun, 30 Aug 2020 00:30:04 +0000 (02:30 +0200)]
DocBook: fix bibliographies (end of <bibliography> and sections).

3 years agoDocBook: generate <partintro> when required.
Thibaut Cuvelier [Sat, 29 Aug 2020 23:14:44 +0000 (01:14 +0200)]
DocBook: generate <partintro> when required.

3 years agoDocBook: streamline code to handle sections.
Thibaut Cuvelier [Sat, 29 Aug 2020 22:58:50 +0000 (00:58 +0200)]
DocBook: streamline code to handle sections.

3 years agoDocBook: streamline code to handle abstracts.
Thibaut Cuvelier [Sat, 29 Aug 2020 22:35:47 +0000 (00:35 +0200)]
DocBook: streamline code to handle abstracts.

3 years agoDocBook: fix handling of index end-of-range.
Thibaut Cuvelier [Sat, 29 Aug 2020 21:41:28 +0000 (23:41 +0200)]
DocBook: fix handling of index end-of-range.

3 years agoDocBook: fix float tags (was unduly overridden).
Thibaut Cuvelier [Sat, 29 Aug 2020 20:58:23 +0000 (22:58 +0200)]
DocBook: fix float tags (was unduly overridden).

The output was not valid for floats without title.

3 years agoDocBook: improve equation formatting (new lines for block equations).
Thibaut Cuvelier [Sat, 29 Aug 2020 17:05:59 +0000 (19:05 +0200)]
DocBook: improve equation formatting (new lines for block equations).

3 years agoDocBook: fix indentation for section titles (including stars).
Thibaut Cuvelier [Sat, 29 Aug 2020 16:40:31 +0000 (18:40 +0200)]
DocBook: fix indentation for section titles (including stars).

3 years agoDocBook: rewrite makeListEnvironment.
Thibaut Cuvelier [Wed, 26 Aug 2020 22:52:06 +0000 (00:52 +0200)]
DocBook: rewrite makeListEnvironment.

3 years agoDocBook: start splitting environment handling in two, to have proper things for lists.
Thibaut Cuvelier [Sat, 29 Aug 2020 01:03:16 +0000 (03:03 +0200)]
DocBook: start splitting environment handling in two, to have proper things for lists.

3 years agoDocBook: make all make* functions have the same argument order.
Thibaut Cuvelier [Sat, 29 Aug 2020 01:46:30 +0000 (03:46 +0200)]
DocBook: make all make* functions have the same argument order.

3 years agoDocBook: partially remove use of bpit/epit in docbookParagraphs and docbookSimpleAllP...
Thibaut Cuvelier [Sat, 29 Aug 2020 00:55:47 +0000 (02:55 +0200)]
DocBook: partially remove use of bpit/epit in docbookParagraphs and docbookSimpleAllParagraphs.

This will help with the next refactoring to be much cleaner (only work with iterators, don't maintain twice the same information).

3 years agoXML: use the new mechanisms for CR detection with errors.
Thibaut Cuvelier [Sat, 29 Aug 2020 00:43:30 +0000 (02:43 +0200)]
XML: use the new mechanisms for CR detection with errors.

This helps tracking down line problems even in the presence of errors.

3 years agoDocBook: make Paragraph::simpleDocBookOnePar return a list of paragraphs.
Thibaut Cuvelier [Wed, 26 Aug 2020 19:19:38 +0000 (21:19 +0200)]
DocBook: make Paragraph::simpleDocBookOnePar return a list of paragraphs.

Before, it directly wrote to the XMLStream, but it made implementation of new lines tricky. Now, it returns the XML for each sub-paragraph (delimited by new lines) as a string, so that the caller can adopt a more precise behaviour (such as in lists).

3 years agoDocBook: fix compilation issues.
Thibaut Cuvelier [Tue, 25 Aug 2020 00:41:07 +0000 (02:41 +0200)]
DocBook: fix compilation issues.

3 years agoDocBook: Coverity potential problem for precooked bibliographies.
Thibaut Cuvelier [Tue, 25 Aug 2020 00:11:08 +0000 (02:11 +0200)]
DocBook: Coverity potential problem for precooked bibliographies.

3 years agoDocBook: simplify precooked bibliography code.
Thibaut Cuvelier [Tue, 18 Aug 2020 03:46:40 +0000 (05:46 +0200)]
DocBook: simplify precooked bibliography code.

3 years agoDocBook: remove useless includes.
Thibaut Cuvelier [Tue, 18 Aug 2020 03:40:34 +0000 (05:40 +0200)]
DocBook: remove useless includes.

3 years agoMore functions in anonymous namespace.
Thibaut Cuvelier [Tue, 18 Aug 2020 03:39:46 +0000 (05:39 +0200)]
More functions in anonymous namespace.

3 years agoDocBook: fine tuning of new lines.
Thibaut Cuvelier [Tue, 18 Aug 2020 03:37:46 +0000 (05:37 +0200)]
DocBook: fine tuning of new lines.

3 years agoDocBook: improve comments.
Thibaut Cuvelier [Tue, 18 Aug 2020 02:56:25 +0000 (04:56 +0200)]
DocBook: improve comments.

3 years agoDocBook: new logic to handle the new lines, only used in output_docbook for now.
Thibaut Cuvelier [Mon, 17 Aug 2020 22:37:34 +0000 (00:37 +0200)]
DocBook: new logic to handle the new lines, only used in output_docbook for now.

3 years agoXML: memorise if the last thing that is getting output is a line feed.
Thibaut Cuvelier [Mon, 17 Aug 2020 21:44:02 +0000 (23:44 +0200)]
XML: memorise if the last thing that is getting output is a line feed.

3 years agoDocBook: documentation for the new tags.
Thibaut Cuvelier [Mon, 17 Aug 2020 21:35:40 +0000 (23:35 +0200)]
DocBook: documentation for the new tags.

3 years agoDocBook: define new arguments in layouts to configure new-line behaviour.
Thibaut Cuvelier [Mon, 17 Aug 2020 21:06:26 +0000 (23:06 +0200)]
DocBook: define new arguments in layouts to configure new-line behaviour.

3 years agoSimplify code to generate only one paragraph at a time.
Thibaut Cuvelier [Sat, 15 Aug 2020 22:59:43 +0000 (00:59 +0200)]
Simplify code to generate only one paragraph at a time.

3 years agoA few more constants to avoid copies
Thibaut Cuvelier [Sun, 16 Aug 2020 17:07:14 +0000 (19:07 +0200)]
A few more constants to avoid copies

3 years agoDocBook: add a layout tag to tell whether an item is the abstract or not.
Thibaut Cuvelier [Mon, 3 Aug 2020 14:04:26 +0000 (16:04 +0200)]
DocBook: add a layout tag to tell whether an item is the abstract or not.

3 years agoDocBook: simplify code to handle abstracts.
Thibaut Cuvelier [Sun, 2 Aug 2020 18:43:39 +0000 (20:43 +0200)]
DocBook: simplify code to handle abstracts.

3 years agoDocBook: use DocBookWrapperMergeWithPrevious in the code.
Thibaut Cuvelier [Sun, 2 Aug 2020 16:58:36 +0000 (18:58 +0200)]
DocBook: use DocBookWrapperMergeWithPrevious in the code.

3 years agoDocBook: fix for ordering.
Thibaut Cuvelier [Sun, 2 Aug 2020 16:07:07 +0000 (18:07 +0200)]
DocBook: fix for ordering.

3 years agoDocBook: make openParTag/closeTag use paragraphs instead of layouts.
Thibaut Cuvelier [Sun, 2 Aug 2020 15:35:16 +0000 (17:35 +0200)]
DocBook: make openParTag/closeTag use paragraphs instead of layouts.

Not useful per se, but will be next with checking whether the wrapper tags should be opened/closed.

3 years agoDocBook: use DocBookItemTag within paragraphs.
Thibaut Cuvelier [Sun, 2 Aug 2020 15:28:50 +0000 (17:28 +0200)]
DocBook: use DocBookItemTag within paragraphs.

This is at least helpful for AAS, even though it slightly resembles a repurposition of that parameter.

3 years agoMerge findLastParagraph and findLastBibliographyParagraph to lower code duplication.
Thibaut Cuvelier [Sun, 2 Aug 2020 15:23:37 +0000 (17:23 +0200)]
Merge findLastParagraph and findLastBibliographyParagraph to lower code duplication.

Maybe these functions should move to ParagraphList.h/cpp?

3 years agoSlight code-consistency improvements.
Thibaut Cuvelier [Sun, 2 Aug 2020 15:17:25 +0000 (17:17 +0200)]
Slight code-consistency improvements.

3 years agoDocBook: add new layout parameter DocBookWrapperMergeWithPrevious.
Thibaut Cuvelier [Sun, 2 Aug 2020 15:07:38 +0000 (17:07 +0200)]
DocBook: add new layout parameter DocBookWrapperMergeWithPrevious.

3 years agoDocBook: allow empty paragraphs before the <info> section.
Thibaut Cuvelier [Sun, 2 Aug 2020 14:52:33 +0000 (16:52 +0200)]
DocBook: allow empty paragraphs before the <info> section.

3 years agode.po
Juergen Spitzmueller [Sat, 19 Sep 2020 06:58:35 +0000 (08:58 +0200)]
de.po

3 years agoSeparate string for translation
Yuriy Skalko [Thu, 17 Sep 2020 16:53:09 +0000 (19:53 +0300)]
Separate string for translation

3 years agoShow slanted caret (cursor) when text style emphasis/italics/slanted.
Daniel Ramoeller [Fri, 18 Sep 2020 08:14:46 +0000 (10:14 +0200)]
Show slanted caret (cursor) when text style emphasis/italics/slanted.

Fixes for bug #11428. Emphasis is used regularly and it is helpful to
see whether the next text will be written emphasized directly from the
cursor.

This is also implemented in MS Word and Google docs but not in
LibreWriter.

Also fixes the caret for RTL languages whose width was previously
extended into the wrong direction.

3 years agoAvoid crash when string only has one char
José Matos [Fri, 18 Sep 2020 00:09:36 +0000 (01:09 +0100)]
Avoid crash when string only has one char

3 years agoWhitespace cleanup
José Matos [Fri, 18 Sep 2020 00:07:39 +0000 (01:07 +0100)]
Whitespace cleanup

3 years agoUpdate UserGuide
Yuriy Skalko [Thu, 17 Sep 2020 10:39:44 +0000 (13:39 +0300)]
Update UserGuide

3 years agoIncrement preferences format to 34: rename Cyrillic *.kmap files
Yuriy Skalko [Thu, 17 Sep 2020 12:32:43 +0000 (15:32 +0300)]
Increment preferences format to 34: rename Cyrillic *.kmap files

3 years agoFixup graphics height conversion when special is non-empty
Juergen Spitzmueller [Thu, 17 Sep 2020 06:43:04 +0000 (08:43 +0200)]
Fixup graphics height conversion when special is non-empty

3 years agoFix Makefile.am after 821603def308
Juergen Spitzmueller [Thu, 17 Sep 2020 06:00:54 +0000 (08:00 +0200)]
Fix Makefile.am after 821603def308

3 years agoFix Cyrillic keyboard map files
Yuriy Skalko [Wed, 16 Sep 2020 07:21:07 +0000 (10:21 +0300)]
Fix Cyrillic keyboard map files

3 years agoUpdate Russian localization
Yuriy Skalko [Wed, 9 Sep 2020 05:56:38 +0000 (08:56 +0300)]
Update Russian localization

3 years agoAccount for Windows paths (#11975)
Juergen Spitzmueller [Thu, 17 Sep 2020 05:17:36 +0000 (07:17 +0200)]
Account for Windows paths (#11975)

3 years agoRevert "Show toolbar context menu only when clicking on the toolbar"
Jean-Marc Lasgouttes [Wed, 16 Sep 2020 14:54:33 +0000 (16:54 +0200)]
Revert "Show toolbar context menu only when clicking on the toolbar"

Something is wrong.

This reverts commit f25253f89ac121b1981fe26f0b90af9e2bbbe849.

3 years agoShow toolbar context menu only when clicking on the toolbar
Daniel Ramoeller [Tue, 15 Sep 2020 06:04:16 +0000 (08:04 +0200)]
Show toolbar context menu only when clicking on the toolbar

Previsouly it was on the whole application window, except on disabled toolbar
buttons.

Fix for bug #11949

3 years agoctests: invert 'wontfix' failing lyx2lyx tests
Scott Kostyshak [Tue, 15 Sep 2020 22:00:31 +0000 (18:00 -0400)]
ctests: invert 'wontfix' failing lyx2lyx tests

We decided looking into it wasn't worth the time. Note that the
tests are only about formats 2.0.x and 1.6.x. For discussion, see:

https://www.mail-archive.com/search?l=mid&q=20200915233446.atwbyulny5gsbtyi%40tallinn

3 years agoAdd method FontMetrics::italic()
Jean-Marc Lasgouttes [Mon, 14 Sep 2020 14:26:19 +0000 (16:26 +0200)]
Add method FontMetrics::italic()

This can be useful for ticket #11428.

3 years agoShow custom text styles in status bar
Yuriy Skalko [Mon, 31 Aug 2020 07:29:14 +0000 (10:29 +0300)]
Show custom text styles in status bar

Fixes bug #11951.

3 years agoFix ru Beamer_Article polyglossia exports
Scott Kostyshak [Sun, 13 Sep 2020 05:27:19 +0000 (01:27 -0400)]
Fix ru Beamer_Article polyglossia exports

Set fonts to DejaVu to avoid the following error:

  ! Package polyglossia Error: The current latin font  does not
  contain the "Cyrillic" script!

This choice of font is consistent with the Russian intro and
tutorial manuals.

3 years agoFix documentation for LFUN_LAYOUT
Scott Kostyshak [Sat, 12 Sep 2020 23:29:01 +0000 (19:29 -0400)]
Fix documentation for LFUN_LAYOUT

The argument 'ignorenests' was renamed to 'ignoreautonests' at
d6fb2abb.

3 years ago#6401 correct cursor movement for word forward/backward with enabled Mac style (mac_l...
Stephan Witt [Sat, 12 Sep 2020 12:34:56 +0000 (14:34 +0200)]
#6401 correct cursor movement for word forward/backward with enabled Mac style (mac_like_cursor_movement)

The change includes a rewrite of the cursor movement when „mac style“ is enabled and don’t change anything otherwise.
The new code for mac uses the document iterator to go forward or backward. The traversal stops at word boundaries.
If going forward the position increments until a word is reached (if not already inside) and stops at the end of the word.
If going backward it does the same in opposite direction. The cursor jumps over non-editable insets and math.
Editable (open) insets are entered and the cursor move detects word boundaries inside them.

3 years agoUninvert two Hebrew pdf5 systemF tests
Scott Kostyshak [Fri, 11 Sep 2020 18:06:33 +0000 (14:06 -0400)]
Uninvert two Hebrew pdf5 systemF tests

These exports now pass, and the output looks reasonable to me
(although I do not know Hebrew). I believe they work now because of
Jürgen's fixes at a7ad0747 and d7b64b8e.

3 years agoRefactor runCommand
Yuriy Skalko [Thu, 10 Sep 2020 21:22:55 +0000 (00:22 +0300)]
Refactor runCommand

3 years agoFixup 5202d44e: make caret geometry update lazy
Jean-Marc Lasgouttes [Mon, 7 Sep 2020 13:45:30 +0000 (15:45 +0200)]
Fixup 5202d44e: make caret geometry update lazy

Instead of working around crashes in update of caret geometry, only
request it as needed. The actual computation 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.

3 years agoru Beamer: make absolute path relative
Scott Kostyshak [Fri, 11 Sep 2020 04:51:10 +0000 (00:51 -0400)]
ru Beamer: make absolute path relative

3 years agoWorkaround Qtbug regarding the QAbstractScrollArea::mouseMoveEvent(...) (06969f9d...
Eugene Chornyi [Thu, 10 Sep 2020 18:40:48 +0000 (20:40 +0200)]
Workaround Qtbug regarding the QAbstractScrollArea::mouseMoveEvent(...) (06969f9d) is only needed until Qt 5.15.1 as it was fixed there.

3 years agoDocumentation for ctrl-click on a reference
Richard Kimberly Heck [Thu, 10 Sep 2020 17:09:16 +0000 (13:09 -0400)]
Documentation for ctrl-click on a reference

3 years agoLet Ctrl-Click on a reference jump to the corresponding label.
Daniel Ramöller [Thu, 10 Sep 2020 16:38:41 +0000 (12:38 -0400)]
Let Ctrl-Click on a reference jump to the corresponding label.

Fix some warnings while we're at it. (That part by RKH.)

3 years agoShow child documents in outline with their paths.
Daniel Ramöller [Thu, 10 Sep 2020 16:28:20 +0000 (12:28 -0400)]
Show child documents in outline with their paths.

3 years agoAdd FIXME
Richard Kimberly Heck [Tue, 8 Sep 2020 22:01:07 +0000 (18:01 -0400)]
Add FIXME

3 years agoFixup ad954a32: make space insets easier to see.
Jean-Marc Lasgouttes [Wed, 9 Sep 2020 09:07:48 +0000 (11:07 +0200)]
Fixup ad954a32: make space insets easier to see.

The previous code left one extra pixel on each side of the visible space, and
spaces became too small to be readable.

3 years agoRemove unneeded space for \nolimits
Jean-Marc Lasgouttes [Wed, 9 Sep 2020 08:35:35 +0000 (10:35 +0200)]
Remove unneeded space for \nolimits

3 years agoUpdate Russian Beamer docs
Yuriy Skalko [Tue, 8 Sep 2020 08:47:22 +0000 (11:47 +0300)]
Update Russian Beamer docs

3 years agoAvoid spurious requirements
Enrico Forestieri [Tue, 8 Sep 2020 23:32:51 +0000 (01:32 +0200)]
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.

3 years agoTry to use the right width for math symbols
Enrico Forestieri [Tue, 8 Sep 2020 20:30:02 +0000 (22:30 +0200)]
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.

3 years agoFix warnings in DTL targets on Windows (use STDC)
Eugene Chornyi [Mon, 7 Sep 2020 19:27:37 +0000 (21:27 +0200)]
Fix warnings in DTL targets on Windows (use STDC)

3 years agoCmake build: Try to omit using directory names as source-files in po
Kornel Benko [Mon, 7 Sep 2020 19:12:22 +0000 (21:12 +0200)]
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'

3 years agoAdd Russian translation of Beamer manual, by Henry Chern
Yuriy Skalko [Mon, 7 Sep 2020 06:55:14 +0000 (09:55 +0300)]
Add Russian translation of Beamer manual, by Henry Chern

3 years agoRevert "Fixup 5202d44e: make caret geometry update lazy"
Jean-Marc Lasgouttes [Mon, 7 Sep 2020 14:00:06 +0000 (16:00 +0200)]
Revert "Fixup 5202d44e: make caret geometry update lazy"

Something is wrong with the cursor.

This reverts commit dc35f1ddf49f8944001a916ad2bcbf2965401cc4.

3 years agoFixup 5202d44e: make caret geometry update lazy
Jean-Marc Lasgouttes [Mon, 7 Sep 2020 13:45:30 +0000 (15:45 +0200)]
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.