]> git.lyx.org Git - lyx.git/log
lyx.git
6 years agoFix ghost caret
Jean-Marc Lasgouttes [Mon, 8 Jan 2018 10:49:40 +0000 (11:49 +0100)]
Fix ghost caret

This fixes a regression in e64ea357, where a test has been (badly)
tightened to avoid that two consecutive rows may be redrawn to get rid
of caret ghosts. The test prohibited empty rows from being redrawn.

Moreover, improve the test of cursor boundary to avoid the case where
cursor position is already 0.

Fixes bug #10952.

6 years agoLooks like these are not needed for tests in support/
Jean-Marc Lasgouttes [Mon, 8 Jan 2018 10:20:06 +0000 (11:20 +0100)]
Looks like these are not needed for tests in support/

6 years agoMake #include directories explicit
Jean-Marc Lasgouttes [Mon, 8 Jan 2018 10:19:15 +0000 (11:19 +0100)]
Make #include directories explicit

6 years agoFix compilation in monolithic mode
Jean-Marc Lasgouttes [Sat, 6 Jan 2018 19:46:06 +0000 (20:46 +0100)]
Fix compilation in monolithic mode

6 years agoRemove unused variables
Jean-Marc Lasgouttes [Sat, 6 Jan 2018 14:48:36 +0000 (15:48 +0100)]
Remove unused variables

6 years agoCmake tests: Don't check in file before creating it
Kornel Benko [Sat, 6 Jan 2018 11:05:51 +0000 (12:05 +0100)]
Cmake tests: Don't check in file before creating it

6 years agoStart inset at new line
Juergen Spitzmueller [Sat, 6 Jan 2018 09:43:44 +0000 (10:43 +0100)]
Start inset at new line

6 years agoCustomization: some color name fixes.
Juergen Spitzmueller [Sat, 6 Jan 2018 08:31:24 +0000 (09:31 +0100)]
Customization: some color name fixes.

6 years agoFix preview with a nested preview not being shown (#10795)
Guillaume MM [Wed, 3 Jan 2018 18:58:50 +0000 (19:58 +0100)]
Fix preview with a nested preview not being shown (#10795)

Regression at db581113.

6 years ago* cs.po
Pavel Sanda [Fri, 5 Jan 2018 22:42:03 +0000 (23:42 +0100)]
* cs.po

6 years agoru.po: fix msgmerge warnings
Uwe Stöhr [Fri, 5 Jan 2018 20:52:15 +0000 (21:52 +0100)]
ru.po: fix msgmerge warnings

6 years agoMove the inPixels(MetricsBase) help from Length to MetricsBase.
Jean-Marc Lasgouttes [Fri, 5 Jan 2018 18:59:31 +0000 (19:59 +0100)]
Move the inPixels(MetricsBase) help from Length to MetricsBase.

A basic class like Length should not depend on something from
frontend.

This change allows to remove several dummy implementations of
theFontMetrics().

6 years agoUpdate buffer when an inset or an INFO inset has bee inserted
Jean-Marc Lasgouttes [Fri, 5 Jan 2018 18:29:45 +0000 (19:29 +0100)]
Update buffer when an inset or an INFO inset has bee inserted

This is important for info inset, since if updateBuffer needs to be
run in redoParagraph (for the macro code), crashes can happen.

Fixes bug #10944.

6 years agoAccount for Qt 5.10
Enrico Forestieri [Fri, 5 Jan 2018 18:27:24 +0000 (19:27 +0100)]
Account for Qt 5.10

Fix regular sed expression in order to catch a second digit in the
Qt minor version number.

6 years agoRemove 'premature optimization' that proved buggy
Jean-Marc Lasgouttes [Wed, 3 Jan 2018 17:28:55 +0000 (18:28 +0100)]
Remove 'premature optimization' that proved buggy

At some time it seemed like a good idea in breakRow() to return early
when the row was bound to be empty. It turns out that this creates two
symptoms:

* empty paragraphs will not have an end of paragraph marker

* since row width is not correctly computed in this case, caret ghosts
  can appear in master.

This commit removes the oprimization and replace the do {} while()
construct to a straightforward while() {}.

Related to bug #10952.

6 years agoMinor re-ordering of the Insert menu
Juergen Spitzmueller [Fri, 5 Jan 2018 10:08:23 +0000 (11:08 +0100)]
Minor re-ordering of the Insert menu

6 years agoFix bug #10951.
Richard Heck [Tue, 2 Jan 2018 03:18:52 +0000 (22:18 -0500)]
Fix bug #10951.

The Buffer member for the remembered definition_ was not being set.

6 years agoDo note attempt to nest more than possible.
Juergen Spitzmueller [Thu, 4 Jan 2018 17:38:08 +0000 (18:38 +0100)]
Do note attempt to nest more than possible.

6 years agoCmake build: Added handling for lyxrc.dist for Apple and Unix
Kornel Benko [Wed, 3 Jan 2018 13:58:58 +0000 (14:58 +0100)]
Cmake build: Added handling for lyxrc.dist for Apple and Unix

Also added include path for magic.h, as found out by Joel Kulesza

6 years agoProperly handle color none.
Juergen Spitzmueller [Wed, 3 Jan 2018 12:20:05 +0000 (13:20 +0100)]
Properly handle color none.

Fixes: #5870
6 years agoDisable useless environment-split function at the core.
Juergen Spitzmueller [Wed, 3 Jan 2018 12:16:07 +0000 (13:16 +0100)]
Disable useless environment-split function at the core.

6 years agoUse the command-alternatives sequence as defined in menus.bind
Juergen Spitzmueller [Wed, 3 Jan 2018 09:58:30 +0000 (10:58 +0100)]
Use the command-alternatives sequence as defined in menus.bind

Otherwise, the shortcut is not displayed in the menu.

6 years agoAmend 761a542551bc9 once more.
Juergen Spitzmueller [Wed, 3 Jan 2018 07:55:35 +0000 (08:55 +0100)]
Amend 761a542551bc9 once more.

As it is designed now, Static label is the only case that makes sense.

6 years agoLimit 761a542551bc9 to the case where we have a label.
Juergen Spitzmueller [Tue, 2 Jan 2018 17:05:43 +0000 (18:05 +0100)]
Limit 761a542551bc9 to the case where we have a label.

6 years agoDo not use Application for a 'cancel export' boolean
Jean-Marc Lasgouttes [Mon, 1 Jan 2018 23:23:27 +0000 (00:23 +0100)]
Do not use Application for a 'cancel export' boolean

It is not good for a support function to depend of anything outside of
it, especially Application.

Here the boolean that indicates that export should be canceled is put
in Systemcall. This allows to remove all the dummy theApp() function
that have been added here and there for linking needs.

6 years agoar.po: updates from Hatim
Uwe Stöhr [Tue, 2 Jan 2018 14:24:43 +0000 (15:24 +0100)]
ar.po: updates from Hatim

6 years agolyx_pot.py: consider empty encoding gui name
Juergen Spitzmueller [Tue, 2 Jan 2018 12:55:01 +0000 (13:55 +0100)]
lyx_pot.py: consider empty encoding gui name

6 years agoUpdate UserGuide and de/UserGuide.
Günter Milde [Tue, 2 Jan 2018 11:50:48 +0000 (12:50 +0100)]
Update UserGuide and de/UserGuide.

Remove warnings for issues fixed in lyx2lyx.
Update the GUI name of the ligature-dash Option.
Fix example for preventing unwanted line break in French.

6 years agoUpdate layout format
Juergen Spitzmueller [Tue, 2 Jan 2018 10:53:01 +0000 (11:53 +0100)]
Update layout format

6 years agoDocumentation fixes: revert conversion of -- to en dash in code.
Günter Milde [Mon, 1 Jan 2018 21:52:08 +0000 (22:52 +0100)]
Documentation fixes: revert conversion of -- to en dash in code.

lyx2lyx erroneousely merged -- to en dash in text with logical
markup "code".
Revealed by recent (but now silenced) ctest fails.

Also add space around en dash in examples.

6 years agoFix a comment.
Günter Milde [Tue, 2 Jan 2018 08:28:04 +0000 (09:28 +0100)]
Fix a comment.

Ligating of -- to en dashes occure also in teletype fonts.
With some 8-bit fonts, em and en dashes are not copied
exported from the PDF (but this is not limited to dashes in teletype).
With LatinModern, PDF export works fine
MWE:
\documentclass[]{article}
%\usepackage{lmodern}
\usepackage[T1]{fontenc}
\begin{document}
Hallo \texttt{Welt --Welt ---Welt}
Hallo Welt --Welt ---Welt

6 years agoFix 'make check'
Jean-Marc Lasgouttes [Mon, 1 Jan 2018 22:54:13 +0000 (23:54 +0100)]
Fix 'make check'

6 years ago* cs.po
Pavel Sanda [Mon, 1 Jan 2018 22:10:56 +0000 (23:10 +0100)]
* cs.po

6 years agoRemerge cs.po
Pavel Sanda [Mon, 1 Jan 2018 21:54:04 +0000 (22:54 +0100)]
Remerge cs.po

6 years agoUpdate it.po
Enrico Forestieri [Mon, 1 Jan 2018 18:07:14 +0000 (19:07 +0100)]
Update it.po

6 years agoru.po: updates from Yuri
Uwe Stöhr [Mon, 1 Jan 2018 15:56:43 +0000 (16:56 +0100)]
ru.po: updates from Yuri

6 years agoRussian doc files: new and updated translations by Yuri
Uwe Stöhr [Mon, 1 Jan 2018 15:56:31 +0000 (16:56 +0100)]
Russian doc files: new and updated translations by Yuri

6 years agoFrench UserGuide.lyx: port Jean-Pierre's recent changes to master
Uwe Stöhr [Mon, 1 Jan 2018 13:39:59 +0000 (14:39 +0100)]
French UserGuide.lyx: port Jean-Pierre's recent changes to master

6 years agoUpdate sk.po
Kornel Benko [Mon, 1 Jan 2018 13:22:10 +0000 (14:22 +0100)]
Update sk.po

6 years agoAdded new testcase to check for correct VCS-Info
Kornel Benko [Mon, 1 Jan 2018 13:03:51 +0000 (14:03 +0100)]
Added new testcase to check for correct VCS-Info

6 years agode.po: update
Juergen Spitzmueller [Mon, 1 Jan 2018 12:45:14 +0000 (13:45 +0100)]
de.po: update

6 years agoPrepend "Insert " in the context menu for environment separators.
Juergen Spitzmueller [Mon, 1 Jan 2018 12:40:49 +0000 (13:40 +0100)]
Prepend "Insert " in the context menu for environment separators.

6 years agomention new option
Juergen Spitzmueller [Mon, 1 Jan 2018 11:40:16 +0000 (12:40 +0100)]
mention new option

6 years agoTestfile for checking vcs_info.
Kornel Benko [Mon, 1 Jan 2018 11:16:09 +0000 (12:16 +0100)]
Testfile for checking vcs_info.

File created by Pavel Šanda

6 years agoLFUNS.lyx: update
Juergen Spitzmueller [Sun, 31 Dec 2017 17:58:32 +0000 (18:58 +0100)]
LFUNS.lyx: update

6 years agoLyXAction.cpp: Whitespace and line breaking fixes.
Juergen Spitzmueller [Sun, 31 Dec 2017 17:57:27 +0000 (18:57 +0100)]
LyXAction.cpp: Whitespace and line breaking fixes.

6 years agoAnother case where nesting needs to be preserved.
Juergen Spitzmueller [Sun, 31 Dec 2017 13:43:45 +0000 (14:43 +0100)]
Another case where nesting needs to be preserved.

6 years agoMark follow-up paragraphs in a paragraph group as nested.
Juergen Spitzmueller [Sun, 31 Dec 2017 09:37:35 +0000 (10:37 +0100)]
Mark follow-up paragraphs in a paragraph group as nested.

This gives a more consistent indication of what belongs to an environment
(and semantically, such paragraphs are synonymous to nested standard
paragraphs)

Addresses part of #9261.

6 years agoDistribute UG changes following menu move of environment-split
Juergen Spitzmueller [Sun, 31 Dec 2017 09:14:59 +0000 (10:14 +0100)]
Distribute UG changes following menu move of environment-split

6 years agoDistribute auto-nest documentation.
Juergen Spitzmueller [Sun, 31 Dec 2017 09:00:38 +0000 (10:00 +0100)]
Distribute auto-nest documentation.

6 years agoUse real cursor pit, not the modified one.
Juergen Spitzmueller [Sun, 31 Dec 2017 08:41:43 +0000 (09:41 +0100)]
Use real cursor pit, not the modified one.

6 years agoUpdate sk.po
Kornel Benko [Sat, 30 Dec 2017 19:40:01 +0000 (20:40 +0100)]
Update sk.po

6 years agoDistribute beamer manual changes in the wake of the environment-split mods.
Juergen Spitzmueller [Sat, 30 Dec 2017 18:29:51 +0000 (19:29 +0100)]
Distribute beamer manual changes in the wake of the environment-split mods.

6 years agode.po: update
Juergen Spitzmueller [Sat, 30 Dec 2017 18:13:04 +0000 (19:13 +0100)]
de.po: update

6 years agoMaintain nesting when separating outer environment
Juergen Spitzmueller [Sat, 30 Dec 2017 17:54:39 +0000 (18:54 +0100)]
Maintain nesting when separating outer environment

6 years agoMove environment-split from Edit to Insert, as requested.
Juergen Spitzmueller [Sat, 30 Dec 2017 16:54:09 +0000 (17:54 +0100)]
Move environment-split from Edit to Insert, as requested.

6 years agoDon't show append function where it does not make sense.
Juergen Spitzmueller [Sat, 30 Dec 2017 16:04:10 +0000 (17:04 +0100)]
Don't show append function where it does not make sense.

6 years agoRevert "Fix environment-split when at pos 0 of a frame title."
Juergen Spitzmueller [Sat, 30 Dec 2017 15:26:20 +0000 (16:26 +0100)]
Revert "Fix environment-split when at pos 0 of a frame title."

This reverts commit 1ff34a973d2748c407e4b7a6ea2284dac895b8ee.

6 years agoFix environment-split when at pos 0 of a frame title.
Juergen Spitzmueller [Sat, 30 Dec 2017 11:50:48 +0000 (12:50 +0100)]
Fix environment-split when at pos 0 of a frame title.

This introduces a force argument to argument-insert that inserts
arguments even if they are already there. We need this here in order
to prevent DEPM.

6 years agoFix environment-split previous problem spotted by Joel
Juergen Spitzmueller [Sat, 30 Dec 2017 10:54:37 +0000 (11:54 +0100)]
Fix environment-split previous problem spotted by Joel

Special case: append from the separator paragraph.

6 years agoFix bug #10835.
Richard Heck [Thu, 28 Dec 2017 19:41:47 +0000 (14:41 -0500)]
Fix bug #10835.

VCS InsetInfos were broken by the switch at 2e934fc5f8 to using
updateBuffer to handle them. But we do not really want to go through
that routine in a clone, not for those insets, whose contents we
want to be the same as in the original Buffer.

Also fixes some issues noted in discussion of this bug: Failure to
update after context menu switch; failure to re-calculate shortcuts,
which can change.

6 years agoMinor code simplification.
Richard Heck [Fri, 29 Dec 2017 20:53:43 +0000 (15:53 -0500)]
Minor code simplification.

6 years agoFix problem with BibTeX error reporting.
Richard Heck [Thu, 28 Dec 2017 19:19:11 +0000 (14:19 -0500)]
Fix problem with BibTeX error reporting.

We only want to abort this process if the process was killed.
Also fix some style issues.

6 years agoProperly implement IsTocCaption for Arguments in standard TOC
Juergen Spitzmueller [Fri, 29 Dec 2017 10:51:24 +0000 (11:51 +0100)]
Properly implement IsTocCaption for Arguments in standard TOC

Fixes: #10631
Candidate for 2.3.x.

6 years agoAdd IsAutoNestedBy
Juergen Spitzmueller [Fri, 29 Dec 2017 09:36:03 +0000 (10:36 +0100)]
Add IsAutoNestedBy

This is complementary to AutoNests: Styles can determine which other
style should auto-nest them. This is particularly useful for modules
that add new styles which should be auto-nested in a given context.

6 years agoSome AutoNest polishment.
Juergen Spitzmueller [Fri, 29 Dec 2017 09:03:00 +0000 (10:03 +0100)]
Some AutoNest polishment.

* Rename Nests to AutoNests
* Do it when changing from any style

6 years agoctests: Ignore lyx2lyx warnings regarding ligature dashes
Kornel Benko [Fri, 29 Dec 2017 08:28:12 +0000 (09:28 +0100)]
ctests: Ignore lyx2lyx warnings regarding ligature dashes

This may amend 586d16a "Fix lyx2lyx conversion of dashes."

6 years agoEndNests in Layout::write()
Juergen Spitzmueller [Thu, 28 Dec 2017 16:56:48 +0000 (17:56 +0100)]
EndNests in Layout::write()

6 years agoImplement auto-nesting.
Juergen Spitzmueller [Thu, 28 Dec 2017 16:44:54 +0000 (17:44 +0100)]
Implement auto-nesting.

Now layouts can specify other layouts that should be nested in and
after the current one (if the layout is switched from the current one
and if it follows a paragraph in the current one).

This is particularly useful for things such as the beamer frames, where
particular layouts are practically always nested.

6 years agoIntroduce environment-split before
Juergen Spitzmueller [Thu, 28 Dec 2017 13:17:40 +0000 (14:17 +0100)]
Introduce environment-split before

This one prepends the new environment rather than appending it.

Easy way to add a new beamer frame before the current one.

6 years agoIntroduce environment-split previous
Juergen Spitzmueller [Thu, 28 Dec 2017 11:28:01 +0000 (12:28 +0100)]
Introduce environment-split previous

This one checks for an environment in the previous paragraph (outside
the nesting scope).

6 years agoFix footnotes in table with RevTeX4
Juergen Spitzmueller [Wed, 27 Dec 2017 14:43:40 +0000 (15:43 +0100)]
Fix footnotes in table with RevTeX4

These classes come with their own working implementation of table
footnotes, so we are not supposed to use the tablefootnote or
footnote package.

Also add missing outliner name.

6 years agoOpen intitle command explicitly also for passthru.
Juergen Spitzmueller [Wed, 27 Dec 2017 10:49:54 +0000 (11:49 +0100)]
Open intitle command explicitly also for passthru.

6 years agoUpdate sk.po
Kornel Benko [Wed, 27 Dec 2017 09:11:03 +0000 (10:11 +0100)]
Update sk.po

Do we really need to commit also .gmo-files in master branch?

6 years agoUse TeXOnePar for the inpreamble layouts
Juergen Spitzmueller [Tue, 26 Dec 2017 12:11:00 +0000 (13:11 +0100)]
Use TeXOnePar for the inpreamble layouts

This considers paragraph language and spacing (and simplifies the code)

6 years agoTufte title is fragile
Juergen Spitzmueller [Tue, 26 Dec 2017 11:35:55 +0000 (12:35 +0100)]
Tufte title is fragile

Candidate for 2.3.x.

6 years agoFix inpreamble styles.
Juergen Spitzmueller [Tue, 26 Dec 2017 10:40:58 +0000 (11:40 +0100)]
Fix inpreamble styles.

6 years agopocheck.pl: In checking for period at end, treat '...' be equivalent to '…'
Kornel Benko [Tue, 26 Dec 2017 09:45:44 +0000 (10:45 +0100)]
pocheck.pl: In checking for period at end, treat '...' be equivalent to '…'

6 years agoFix Python escaping of unicode string
Scott Kostyshak [Tue, 26 Dec 2017 07:03:06 +0000 (02:03 -0500)]
Fix Python escaping of unicode string

When removing "r" from "ur", it is needed to add extra backslashes.
See:

  https://www.mail-archive.com/search?l=mid&q=2024193.iXIh6cq6L3%40myth

Thanks to José.

This commit amends b7983478 (and thus 586d16a4).

6 years agoFix crash after cancellation code.
Richard Heck [Sun, 24 Dec 2017 16:17:50 +0000 (11:17 -0500)]
Fix crash after cancellation code.

I thought we didn't use clones when exporting from the command line.
We probably shouldn't.

6 years agoUpdate sk.po
Kornel Benko [Mon, 25 Dec 2017 13:42:34 +0000 (14:42 +0100)]
Update sk.po

6 years agode.po: update
Juergen Spitzmueller [Mon, 25 Dec 2017 11:35:43 +0000 (12:35 +0100)]
de.po: update

6 years agoImprove error msg
Juergen Spitzmueller [Mon, 25 Dec 2017 11:22:45 +0000 (12:22 +0100)]
Improve error msg

6 years agoPrevent to paste uncodable characters into verbatim
Juergen Spitzmueller [Sun, 24 Dec 2017 16:14:05 +0000 (17:14 +0100)]
Prevent to paste uncodable characters into verbatim

Since we now have proper encoding here, we can set this restriction.

6 years agoIntroduce "inherit" encoding for latex_language
Juergen Spitzmueller [Sun, 24 Dec 2017 16:10:42 +0000 (17:10 +0100)]
Introduce "inherit" encoding for latex_language

This gets rid of the hardcoded latin1 encoding for verbatim. Instead,
verbatim now inherits the encoding from the context, which is what is
actually wanted here.

Fixes: #9012, #9258
6 years agoUpdate sk.po
Kornel Benko [Sun, 24 Dec 2017 12:21:09 +0000 (13:21 +0100)]
Update sk.po

6 years agoctests: run URL tests at beginning
Scott Kostyshak [Sun, 24 Dec 2017 01:41:16 +0000 (20:41 -0500)]
ctests: run URL tests at beginning

The URL tests can take a long time to complete. By running them at
the beginning, time can be saved when running the ctests in
parallel.

This saves around 10 minutes for me.

6 years agolayouttranslation: review cs
Pavel Sanda [Sun, 24 Dec 2017 03:56:15 +0000 (04:56 +0100)]
layouttranslation: review cs

6 years agolayouttranslation: sk is clearly reviewed
Pavel Sanda [Sun, 24 Dec 2017 03:34:20 +0000 (04:34 +0100)]
layouttranslation: sk is clearly reviewed

6 years agoFix Python unicode string in lyx2lyx
Scott Kostyshak [Sun, 24 Dec 2017 02:42:43 +0000 (21:42 -0500)]
Fix Python unicode string in lyx2lyx

This commit amends 586d16a4.

6 years agoRussian layouttranslations reviewed by Yuriy, Dec 13 2017.
Pavel Sanda [Sun, 24 Dec 2017 02:08:34 +0000 (03:08 +0100)]
Russian layouttranslations reviewed by Yuriy, Dec 13 2017.

6 years agoPut the dummy tex2lyx support where it is supposed to be.
Richard Heck [Sat, 23 Dec 2017 20:04:40 +0000 (15:04 -0500)]
Put the dummy tex2lyx support where it is supposed to be.

6 years agoWhitespace.
Richard Heck [Sat, 23 Dec 2017 19:47:38 +0000 (14:47 -0500)]
Whitespace.

6 years agoDummy theApp() method should return a pointer.
Richard Heck [Sat, 23 Dec 2017 19:40:00 +0000 (14:40 -0500)]
Dummy theApp() method should return a pointer.

6 years agoTitle commands are fragile in memoir
Juergen Spitzmueller [Sat, 23 Dec 2017 12:26:35 +0000 (13:26 +0100)]
Title commands are fragile in memoir

6 years agoFix switch of language and line spacing in InTitle commands.
Juergen Spitzmueller [Sat, 23 Dec 2017 12:25:13 +0000 (13:25 +0100)]
Fix switch of language and line spacing in InTitle commands.

Fixes: #9332, #10849
6 years agoFix puzzling warning.
Richard Heck [Sat, 23 Dec 2017 03:03:54 +0000 (22:03 -0500)]
Fix puzzling warning.

6 years agoImprove error message when LaTeX process is killed.
Richard Heck [Sat, 23 Dec 2017 02:55:43 +0000 (21:55 -0500)]
Improve error message when LaTeX process is killed.

6 years agoUpdate sk.po
Kornel Benko [Fri, 22 Dec 2017 07:26:14 +0000 (08:26 +0100)]
Update sk.po

6 years agoFix linking errors for check_filetools, check_trivstring, check_convert, check_lstrings
Kornel Benko [Fri, 22 Dec 2017 06:19:13 +0000 (07:19 +0100)]
Fix linking errors for check_filetools, check_trivstring, check_convert, check_lstrings

This may amend f1df7e478da5934a77436f039429d8d2411f3efb