]> git.lyx.org Git - lyx.git/log
lyx.git
7 years agoFactor code for math axis height
Guillaume Munch [Mon, 19 Dec 2016 23:15:59 +0000 (00:15 +0100)]
Factor code for math axis height

7 years agoAdd InsetMathClass to the list of math completions
Guillaume Munch [Mon, 19 Dec 2016 23:15:59 +0000 (00:15 +0100)]
Add InsetMathClass to the list of math completions

7 years agoDo not rely on toolTip() to generate LaTeX code
Guillaume Munch [Mon, 19 Dec 2016 23:15:59 +0000 (00:15 +0100)]
Do not rely on toolTip() to generate LaTeX code

7 years agoFix compilation with Qt5.8dev
Guillaume Munch [Mon, 19 Dec 2016 23:15:58 +0000 (00:15 +0100)]
Fix compilation with Qt5.8dev

7 years agoMathClass of xrightarrow & co
Guillaume Munch [Mon, 19 Dec 2016 23:15:58 +0000 (00:15 +0100)]
MathClass of xrightarrow & co

7 years agoUserGuide.lyx: fix 2 typos spotted by a user
Uwe Stöhr [Mon, 19 Dec 2016 22:49:47 +0000 (23:49 +0100)]
UserGuide.lyx: fix 2 typos spotted by a user

7 years agoAdd caching for the QTextLayout objects we use
Jean-Marc Lasgouttes [Tue, 5 Jul 2016 12:06:22 +0000 (14:06 +0200)]
Add caching for the QTextLayout objects we use

The QTextLayout handling is terribly slow on Qt 4.8.7, but some
caching has been added in Qt5 that makes it much faster. For some
reason, it is not that slow with Qt 4.8.1.

Caches are introduced for the three following methods

* width(doctring), controlled by CACHE_METRICS_WIDTH. This cache already
  existed, but the code has been cleaned up

* getTextLayout, controlled by CACHE_METRICS_QTEXTLAYOUT (disabled by
  default on Qt5, which does its own caching). This is used for pos2x
  and x2pos and now for drawing of text too. The previous code used a
  trivial caching scheme of the last used QTextLayout, but now they
  are properly kept in a QCache. Moreover, the cacheEnabled() property
  is enabled for these QTextLayout object (not sure what this does).

* breakAt, controlled by CACHE_METRICS_BREAKAT. This is the only user
  of QTextLayout which did not have some kind of caching already.

For some weird reasons related to Argument-dependent look-up, the
qHash(docstring) function has to be defined in std namespace, since
lyx::docstring is actually std::basic_string<wchar_t>.

[NOTE: this version has profiling hooks, enabled by commenting out the line
  #define DISABLE_PMPROF
that should eventually be removed.]

7 years agoFix segfault on null buffer in Converters::checkAuth(), introduced in [244de5d2/lyxgit].
Tommaso Cucinotta [Mon, 19 Dec 2016 09:40:03 +0000 (10:40 +0100)]
Fix segfault on null buffer in Converters::checkAuth(), introduced in [244de5d2/lyxgit].

7 years agoFurther improve quote-inserts documentation
Juergen Spitzmueller [Mon, 19 Dec 2016 10:39:56 +0000 (11:39 +0100)]
Further improve quote-inserts documentation

7 years agoUse xfrac package for "fraction characters".
Günter Milde [Sun, 18 Dec 2016 22:41:43 +0000 (23:41 +0100)]
Use xfrac package for "fraction characters".

The xfrac package is the "state of the art" for "split-level" (nice) fractions.
Character replacements look consistent, scale properly and fit in the line.

Fixes #5220.

7 years agoctests: invert two unreliable tests
Scott Kostyshak [Sun, 18 Dec 2016 17:43:20 +0000 (12:43 -0500)]
ctests: invert two unreliable tests

Invert the following two tests:

  UNRELIABLE.WRONG_OUTPUT_export/doc/es/Math_dvi3_texF (Failed)
  UNRELIABLE.WRONG_OUTPUT_export/doc/es/Math_pdf5_texF (Failed)

For discussion, see:

https://www.mail-archive.com/search?l=mid&q=1482080739.2685.14.camel%40lyx.org

7 years agoUpdate inset-modify description
Juergen Spitzmueller [Sun, 18 Dec 2016 13:00:08 +0000 (14:00 +0100)]
Update inset-modify description

7 years agoSome documentation of quote's inset-modify
Juergen Spitzmueller [Sun, 18 Dec 2016 12:38:41 +0000 (13:38 +0100)]
Some documentation of quote's inset-modify

7 years agoThinko
Juergen Spitzmueller [Sun, 18 Dec 2016 12:13:19 +0000 (13:13 +0100)]
Thinko

This needs to be a char_type, not char.

7 years agoAllow wildcards in inset-modify for quotes
Juergen Spitzmueller [Sun, 18 Dec 2016 09:29:35 +0000 (10:29 +0100)]
Allow wildcards in inset-modify for quotes

A dot in the <lang><side><times> string means: keep current value.

This expert feature allows to change arbitrary quote features in one step.

E.g.,

inset-forall Quotes inset-modify changetype f..

=> change all quote insets to French style, maintaining current side
   and times setting

inset-forall Quotes inset-modify changetype ..s

=> change all quote insets to single quotes, keeping style and times

inset-forall Quotes inset-modify changetype g.s

=> change all quote insets to German single quotes, keeping left/right
   setting

Any idea where to document this?

7 years agowhitespace.
Juergen Spitzmueller [Sun, 18 Dec 2016 08:54:37 +0000 (09:54 +0100)]
whitespace.

7 years agode.po
Juergen Spitzmueller [Sat, 17 Dec 2016 13:34:46 +0000 (14:34 +0100)]
de.po

7 years agoWhitespace
Juergen Spitzmueller [Sat, 17 Dec 2016 11:59:03 +0000 (12:59 +0100)]
Whitespace

7 years agoContext menu for quote insets
Juergen Spitzmueller [Sat, 17 Dec 2016 11:58:33 +0000 (12:58 +0100)]
Context menu for quote insets

Allows to switch quote type.

7 years agoUpdate LFUNs.lyx
Juergen Spitzmueller [Fri, 16 Dec 2016 10:24:03 +0000 (11:24 +0100)]
Update LFUNs.lyx

7 years agoExtend quote-insert
Juergen Spitzmueller [Fri, 16 Dec 2016 10:23:22 +0000 (11:23 +0100)]
Extend quote-insert

Two more optional arguments to specify side and quote style.
GUI support follows.

7 years agocontext-sensitive command termination at some more places.
Juergen Spitzmueller [Fri, 16 Dec 2016 09:20:25 +0000 (10:20 +0100)]
context-sensitive command termination at some more places.

7 years agoremove archaic comments.
Juergen Spitzmueller [Fri, 16 Dec 2016 08:27:10 +0000 (09:27 +0100)]
remove archaic comments.

lyx3 was a vision of the last century.

7 years agoUse context-sensitive command termination
Juergen Spitzmueller [Fri, 16 Dec 2016 08:26:01 +0000 (09:26 +0100)]
Use context-sensitive command termination

This fixes some kerning issues.

7 years agoLiteral quotation mark chars for polyglossia
Juergen Spitzmueller [Thu, 15 Dec 2016 09:41:10 +0000 (10:41 +0100)]
Literal quotation mark chars for polyglossia

7 years agoInsetQuotes::latex: some cleanup
Juergen Spitzmueller [Thu, 15 Dec 2016 09:26:42 +0000 (10:26 +0100)]
InsetQuotes::latex: some cleanup

Also switch to docstring in preparation for unicode quotation marks

7 years agoRemove redundant blank
Juergen Spitzmueller [Thu, 15 Dec 2016 08:18:52 +0000 (09:18 +0100)]
Remove redundant blank

7 years agoSimplify some lyx2lyx code.
Richard Heck [Wed, 14 Dec 2016 03:03:59 +0000 (22:03 -0500)]
Simplify some lyx2lyx code.

Also, if the local layout we are removing is all there was, then
we can remove the entire block.

7 years agoUpdate tex2lyx references after last format change.
Richard Heck [Wed, 14 Dec 2016 02:51:11 +0000 (21:51 -0500)]
Update tex2lyx references after last format change.

7 years agoNew format for changes to iopart.layout made at 91f980cf31.
Richard Heck [Wed, 14 Dec 2016 02:49:04 +0000 (21:49 -0500)]
New format for changes to iopart.layout made at 91f980cf31.

7 years agoLimit ligature protection to quote ligature chars
Juergen Spitzmueller [Tue, 13 Dec 2016 06:50:08 +0000 (07:50 +0100)]
Limit ligature protection to quote ligature chars

Should also go to stable.

7 years agospeed up lyx2lyx reversion for non-Hebrew documents
Juergen Spitzmueller [Tue, 13 Dec 2016 06:30:40 +0000 (07:30 +0100)]
speed up lyx2lyx reversion for non-Hebrew documents

7 years agoFix Hebrew quotation marks
Juergen Spitzmueller [Mon, 12 Dec 2016 17:08:20 +0000 (18:08 +0100)]
Fix Hebrew quotation marks

All typographic quotation marks are supported, if the proper
LaTeX macros (as opposed to ligatures) are used.

So no need for forcing straight quotes.

This is in line with what babel-hebrew suggests.

7 years agoAdd FIXME
Juergen Spitzmueller [Mon, 12 Dec 2016 17:00:28 +0000 (18:00 +0100)]
Add FIXME

7 years agoThinko
Juergen Spitzmueller [Mon, 12 Dec 2016 16:52:59 +0000 (17:52 +0100)]
Thinko

7 years agoFix command termination before line breaks.
Juergen Spitzmueller [Mon, 12 Dec 2016 16:00:20 +0000 (17:00 +0100)]
Fix command termination before line breaks.

7 years agoCorrectly handle the " \\fg" case.
Juergen Spitzmueller [Mon, 12 Dec 2016 15:57:06 +0000 (16:57 +0100)]
Correctly handle the " \\fg" case.

7 years agoProperly terminate quote macros by means of new textstream function
Juergen Spitzmueller [Mon, 12 Dec 2016 14:57:42 +0000 (15:57 +0100)]
Properly terminate quote macros by means of new textstream function

This prevents kerning destruction.

7 years agotexstream: implement way to terminate a command depending on the context
Juergen Spitzmueller [Mon, 12 Dec 2016 14:55:28 +0000 (15:55 +0100)]
texstream: implement way to terminate a command depending on the context

i.e.,
* space if non terminating char follows
* {} if space follows
* nothing if \, { or } follow

7 years agoFix some thinkos in the revert_quotes routine
Juergen Spitzmueller [Mon, 12 Dec 2016 09:49:08 +0000 (10:49 +0100)]
Fix some thinkos in the revert_quotes routine

7 years agoUpdate tex2lyx tests
Juergen Spitzmueller [Mon, 12 Dec 2016 09:27:26 +0000 (10:27 +0100)]
Update tex2lyx tests

Thanks Scott for the heads-up!

7 years agoDo not use babel quotation mark macros with non-TeX fonts
Juergen Spitzmueller [Sat, 10 Dec 2016 16:25:04 +0000 (17:25 +0100)]
Do not use babel quotation mark macros with non-TeX fonts

These rely on [O]T1 font encoding.

Also, add some comments.

7 years agoFix xhtml output of French double guillemets (spacing)
Juergen Spitzmueller [Sat, 10 Dec 2016 15:13:02 +0000 (16:13 +0100)]
Fix xhtml output of French double guillemets (spacing)

7 years agoDo not output quote TextCommand definitions for polyglossia
Juergen Spitzmueller [Sat, 10 Dec 2016 15:07:04 +0000 (16:07 +0100)]
Do not output quote TextCommand definitions for polyglossia

These are meant to be output for non-T1 8bit font encodings.

7 years agoThe extra space for French quotes only applies to guillemets.
Juergen Spitzmueller [Sat, 10 Dec 2016 13:57:25 +0000 (14:57 +0100)]
The extra space for French quotes only applies to guillemets.

7 years agoRemove unused lyxrc.use_converter_wrappers that inadvertently slipped through [244de5...
Tommaso Cucinotta [Sat, 10 Dec 2016 13:55:09 +0000 (14:55 +0100)]
Remove unused lyxrc.use_converter_wrappers that inadvertently slipped through [244de5d2/lyxgit].

7 years agorevert_quotes: consider verbatim layouts and some forgotten insets.
Juergen Spitzmueller [Sat, 10 Dec 2016 11:54:12 +0000 (12:54 +0100)]
revert_quotes: consider verbatim layouts and some forgotten insets.

7 years agoEnable InsetQuote in verbatim and Hebrew
Juergen Spitzmueller [Sat, 10 Dec 2016 10:53:42 +0000 (11:53 +0100)]
Enable InsetQuote in verbatim and Hebrew

In this context, the inset outputs straight quotes in LaTeX.

File format change.

Fixes: #7309
7 years agoUpdate it.po
Enrico Forestieri [Fri, 9 Dec 2016 18:12:37 +0000 (19:12 +0100)]
Update it.po

7 years agoAdd a way to disable the poor man's profiler
Jean-Marc Lasgouttes [Fri, 9 Dec 2016 14:44:45 +0000 (15:44 +0100)]
Add a way to disable the poor man's profiler

Just define DISABLE_PMPROF _before_ #including the header.

7 years agoValidate html
Guillaume Munch [Thu, 8 Dec 2016 16:21:19 +0000 (17:21 +0100)]
Validate html

Qt html is based on html 4. </p> is in fact optional, but <p> is mandatory
around <tt>.

7 years agoFix compilation with MSVC
Guillaume Munch [Thu, 8 Dec 2016 15:27:45 +0000 (16:27 +0100)]
Fix compilation with MSVC

7 years agoFile format update after 418016bf792
Günter Milde [Wed, 7 Dec 2016 17:38:41 +0000 (18:38 +0100)]
File format update after 418016bf792

Removing unsupported encoding "pt254" from \inputencoding values makes documents using this value invalid (J.S.).

7 years agoFix mis-nomer
Juergen Spitzmueller [Wed, 7 Dec 2016 15:50:54 +0000 (16:50 +0100)]
Fix mis-nomer

7 years agoFix some quote inset bugs:
Juergen Spitzmueller [Wed, 7 Dec 2016 14:37:03 +0000 (15:37 +0100)]
Fix some quote inset bugs:

* Adjoining closing Single + double quote becomes double + single quote
  (for English, Swedish and German, LaTeX export as ''').

* French double quotes are converted to << >> in the LaTeX file and to
  double inverted question/interrogation marks in the output, if the font
  encoding is set to [None] or OT1 but the global default is T1. (test
  for lyxrc.fontenc instead of the document-specific fontenc setting in
  InsetQuotes.cpp).

* Quote type ignored for LyXHTML: always "English" quotes used.

See #10451

7 years agoVerbatim, etc, can be used with IOP articles.
Richard Heck [Tue, 6 Dec 2016 22:54:32 +0000 (17:54 -0500)]
Verbatim, etc, can be used with IOP articles.
Fixes #10505.

7 years agoAccept \kern and \mkern for math kerning
Jean-Marc Lasgouttes [Tue, 6 Dec 2016 15:29:38 +0000 (16:29 +0100)]
Accept \kern and \mkern for math kerning

Also output the right one depending on whether the unit is "mu" or
not. Indeed, the two macros are identical, except that \mkern only
accepts unit mu, and kern does not accept it.

With this patch, both macros accept all units, but on writing beck,
the right one is used.

7 years agoHandle negative values gracefully.
Jean-Marc Lasgouttes [Tue, 6 Dec 2016 15:06:03 +0000 (16:06 +0100)]
Handle negative values gracefully.

It may happen (for example with on the fly spell checking) that
GuiFontMetrics::pos2x is called with a negative pos value. Add a
special case for this situation.

Fixes bug #10506

7 years agoGet rid of Inset::setDimCache
Jean-Marc Lasgouttes [Mon, 5 Dec 2016 16:37:51 +0000 (17:37 +0100)]
Get rid of Inset::setDimCache

This helper method is used to set the inset dimension cache at metrics
time. However this is already done by the metrics code itself
(MathRow::metrics, TextMetrics::redoParagraph), so that there is no
need to do this same work again in a different place.

Also, InsetPhantom::metrics is removed, since it does not do anything
interesting.

This commit comes with a mild risk attached (it might be that some of
these calls were useful after all!), but all of this is fixable.

7 years agoGet rid of Inset::setPosCache
Jean-Marc Lasgouttes [Mon, 5 Dec 2016 10:51:18 +0000 (11:51 +0100)]
Get rid of Inset::setPosCache

This helper method is used to set the inset position cache at drawing
time. However this is already done by the drawing code itself
(MathRow::draw, RowPainter::paintInset), so that there is no need to
do this same work again in a different place.

Note that the inset positions are still set in InsetTabular::draw for
each cell.

This commit comes with a mild risk attached (it might be that some of
these calls were useful after all!), but all of this is fixable.

7 years agoRemove unsupported encoding "pt254".
Günter Milde [Tue, 6 Dec 2016 11:51:32 +0000 (12:51 +0100)]
Remove unsupported encoding "pt254".

This encoding (modified Mac Cyrillic for Asian languages) is rarely used and not supported by Gnu iconv.

Update comments in lib/encodings.

Update ctests: Gnu iconv only supports cp858, if configured with "--enable-extra-encodings".

7 years agoNow Inset::dimension is only an access to cache
Jean-Marc Lasgouttes [Tue, 6 Dec 2016 08:48:49 +0000 (09:48 +0100)]
Now Inset::dimension is only an access to cache

Up to now Inset::dimension was either a helper function to access
CoordCache, or... something else. This created problems to properly
use it.

In particular, the definition of InsetText::dimension created problems
for child classes. Removing this definition (actually renaming it to
dimensionHelper) allows to streamline the code.

7 years agoIntroduce (Inset|InsetList|Paragraph)::resetBuffer
Jean-Marc Lasgouttes [Mon, 5 Dec 2016 13:47:13 +0000 (14:47 +0100)]
Introduce (Inset|InsetList|Paragraph)::resetBuffer

This avoids an ugly cast like
     setBuffer(*static_cast<Buffer *>(0));
that clang does not appreciate.

7 years agoUpdate it.po
Enrico Forestieri [Mon, 5 Dec 2016 01:51:47 +0000 (02:51 +0100)]
Update it.po

7 years agoCosmetic changes to the needauth dialogs
Guillaume Munch [Sun, 4 Dec 2016 17:28:03 +0000 (18:28 +0100)]
Cosmetic changes to the needauth dialogs

* Use rich text for this complicated message

* More concise

* Fix line breaking issues

* Remove "Do not show again" checkbox

7 years agoGuiAlert: Convert html to plain text on console output
Guillaume Munch [Sun, 4 Dec 2016 17:28:03 +0000 (18:28 +0100)]
GuiAlert: Convert html to plain text on console output

7 years agoImprove prediction of block outside covered areas
Guillaume Munch [Sun, 4 Dec 2016 17:28:02 +0000 (18:28 +0100)]
Improve prediction of block outside covered areas

7 years agoRemove useless return leftover from earlier code
Guillaume Munch [Sun, 4 Dec 2016 17:28:02 +0000 (18:28 +0100)]
Remove useless return leftover from earlier code

7 years agoRemove unneeded templatization code from bformat().
Tommaso Cucinotta [Wed, 23 Nov 2016 23:30:13 +0000 (00:30 +0100)]
Remove unneeded templatization code from bformat().

7 years agoConverters Prefs UI layout clarification.
Tommaso Cucinotta [Sun, 27 Nov 2016 23:31:46 +0000 (00:31 +0100)]
Converters Prefs UI layout clarification.

7 years agoGuiSymbols: Better handling of empty blocks
Guillaume Munch [Sat, 3 Dec 2016 22:35:15 +0000 (23:35 +0100)]
GuiSymbols: Better handling of empty blocks

* endInsertRow was incorrectly placed before endResetModel, sometimes leading to
  bad access by the view before it was informed that the model was empty. In
  fact begin/endInsertRows were redundant with begin/endResetModel.

* Empty blocks are not supposed to be shown. This happened when moving the
  cursor. A valid block is now selected intead. Due to the design/optimisation
  of the model update, this requires a first update with an empty
  model. Simplify the old code.

7 years agoGuiSymbols: fix char->block lookup
Guillaume Munch [Sat, 3 Dec 2016 22:35:15 +0000 (23:35 +0100)]
GuiSymbols: fix char->block lookup

7 years agoGuiSymbols: put ASCII chars first
Guillaume Munch [Sat, 3 Dec 2016 22:35:15 +0000 (23:35 +0100)]
GuiSymbols: put ASCII chars first

Having À before A was weird. This only affects GuiSymbols.

7 years agoGuiSymbols: show all symbols when UseNonTeXFonts
Guillaume Munch [Sat, 3 Dec 2016 22:35:15 +0000 (23:35 +0100)]
GuiSymbols: show all symbols when UseNonTeXFonts

7 years agoGuiSymbols: Improve the tooltip
Guillaume Munch [Sat, 3 Dec 2016 22:35:15 +0000 (23:35 +0100)]
GuiSymbols: Improve the tooltip

7 years agoCheck the validity of an item before querying its tooltip
Guillaume Munch [Sat, 3 Dec 2016 22:35:15 +0000 (23:35 +0100)]
Check the validity of an item before querying its tooltip

In case data() does not handle invalid items.

7 years agoGuiSymbols: handle the case of an invalid data
Guillaume Munch [Sat, 3 Dec 2016 22:35:14 +0000 (23:35 +0100)]
GuiSymbols: handle the case of an invalid data

The docs do not guarantee that the index must be valid

7 years agoEnhance output of po_diff.pl to better see message-edges.
Kornel Benko [Sat, 3 Dec 2016 10:42:22 +0000 (11:42 +0100)]
Enhance output of po_diff.pl to better see message-edges.

7 years agoAdd the perl-mode-line for emacs to perl scripts
Kornel Benko [Sat, 3 Dec 2016 10:39:28 +0000 (11:39 +0100)]
Add the perl-mode-line for emacs to perl scripts

7 years agoUpdate sk.po
Kornel Benko [Sat, 3 Dec 2016 10:35:37 +0000 (11:35 +0100)]
Update sk.po

7 years agoCmake tests: Add a script to modify preferences prior to export testing
Kornel Benko [Sat, 3 Dec 2016 10:32:19 +0000 (11:32 +0100)]
Cmake tests: Add a script to modify preferences prior to export testing

7 years agoctests: require up-to-date TeX Live for reliable
Scott Kostyshak [Sat, 3 Dec 2016 05:35:48 +0000 (00:35 -0500)]
ctests: require up-to-date TeX Live for reliable

The unreliable sublabel varying_versions is now defined to be about
versions other than TeX Live, because we require a full and
up-to-date TeX Live installation for reliable tests.

For discussion, see:
https://www.mail-archive.com/search?l=mid&q=o1ovd9%24479%241%40blaine.gmane.org

7 years agoRemove unused method in ArgumentProxy
Jean-Marc Lasgouttes [Fri, 2 Dec 2016 15:19:02 +0000 (16:19 +0100)]
Remove unused method in ArgumentProxy

Also reorder some methods.

7 years agoImprove spacing of BOX elements
Jean-Marc Lasgouttes [Fri, 2 Dec 2016 14:58:39 +0000 (15:58 +0100)]
Improve spacing of BOX elements

Tweak the algorithm so that a BOX math row element can have some
spacing. To this end, MathRow::before/after do not look at the type of
an element for deciding when to skip it, but rather to its math class.

In the new setting, the spacing algorithm works on all elements, but
skips the MC_UNKNOWN elements as if they were not present. As a
consequence, the two element types BEGIN and END have been replaced by
a single DUMMY (they can be recognized from their class).

To simply the code, add a new `mclass' argument to the
MathRow::Element constructor (default is MC_UNKNOWN).

7 years agoFactor out the code that handles default macro arguments
Jean-Marc Lasgouttes [Mon, 28 Nov 2016 12:13:36 +0000 (13:13 +0100)]
Factor out the code that handles default macro arguments

7 years agoRewrite handling of macro nesting in math rows
Jean-Marc Lasgouttes [Mon, 28 Nov 2016 12:13:36 +0000 (13:13 +0100)]
Rewrite handling of macro nesting in math rows

Macro nesting is now recorded into the macro inset itself. This allows
the ArgumentProxy inset to determine whether it is editable or not by
looking at its macro.

Remove code in the metrics and draw methods of ArgumentProxy: this
code is AFAICS not active anymore, since arguments are linearized into
math rows.

Use Changer idiom to change locally the values of MecticsInfo::base.macro_nesting.

7 years agoReintroduce broken support for default macro arguments
Jean-Marc Lasgouttes [Fri, 2 Dec 2016 10:13:47 +0000 (11:13 +0100)]
Reintroduce broken support for default macro arguments

This got forgotten in the math typesetting rewrite.

Fixes bug #10508.

7 years agoctests: invert ar/Tutorial_pdf4_texF
Scott Kostyshak [Fri, 2 Dec 2016 04:47:21 +0000 (23:47 -0500)]
ctests: invert ar/Tutorial_pdf4_texF

ar/Tutorial.lyx was recently added at f0bc4d43.

Inverting this test is consistent with ar/{Intro,Shortcuts}.

7 years agoctests: uninvert mathmacro tests
Scott Kostyshak [Fri, 2 Dec 2016 04:37:36 +0000 (23:37 -0500)]
ctests: uninvert mathmacro tests

These tests now pass (uninverted), likely due to b14e9d52 and
e8f480e7.

7 years agoArabic Tutorial.lyx: new translation by Hatim
Uwe Stöhr [Fri, 2 Dec 2016 01:12:58 +0000 (02:12 +0100)]
Arabic Tutorial.lyx: new translation by Hatim

7 years agoFix display and output of math macros with optional arguments
Enrico Forestieri [Thu, 1 Dec 2016 17:02:47 +0000 (18:02 +0100)]
Fix display and output of math macros with optional arguments

This is a long standing issue, present since the new math macros
inception in version 1.6. It manifests as a display issue when a
macro with optional arguments appears in the optional argument of
another macro. In this case the display is messed up and it is
difficult, if not impossible, changing the arguments as they do not
appear on screen as related to a specific macro instance. It also
manifests as latex errors when compiling, even if the latex output
is formally correct, due to limitations of the xargs package used
to output the macros. Most probably, both aspects have the same
root cause, as simply enclosing in braces the macro and its
parameters solves both issues. However, when reloading a document,
lyx strips the outer braces enclosing a macro argument, thus
frustrating this possible workaround.

This commit solves the display issue by correctly accounting for
macros with optional arguments nested in the argument of another
macro, and circumvents the xargs package limitations causing errors
by enclosing in braces the macros with optional arguments appearing
in the argument of an outer macro when they are output. This means
that when loading an old document with such macros and saving it
again, the macro representation is updated and will have these
additional braces. However, as such braces are stripped by lyx on
loading, there is no risk that they accumulate.

See also this thread:
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg197828.html

7 years agoctests: univert aas_sample with LuaTeX test.
Günter Milde [Thu, 1 Dec 2016 10:47:12 +0000 (11:47 +0100)]
ctests: univert aas_sample with LuaTeX test.

The missing character problem is fixed upstream.

Also fix the scaling of the \sun-symbol-index by wrapping the symbol in \text.
(wasysym's \sun is valid in text and math mode. LyX  currently adds a spurious \ensuremath.)

7 years agoRemove spurious body tags in macro test file.
Günter Milde [Tue, 29 Nov 2016 16:22:18 +0000 (17:22 +0100)]
Remove spurious body tags in macro test file.

As Enrico pointed out in http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg131411.html, the loading error of testcases_speed.lyx is caused by tags from a LyX development version that were later removed but never handled in lyx2lyx.

LaTeX export still fails with
! Argument of \xargs@grab@opt has an extra }.

7 years agoInvert failing unreliable tests
Scott Kostyshak [Wed, 30 Nov 2016 14:42:55 +0000 (09:42 -0500)]
Invert failing unreliable tests

These tests are "unreliable" and thus their export status contains
less information than reliable tests. However, it contains some
information and could still be used to find regressions. This commit
helps keep the output of a vanilla "ctest" command clean.

See discussion here:
https://www.mail-archive.com/search?l=mid&q=20161127205800.epvjxkeri5yoeqwj%40steph

7 years agoDevelopment.lyx, updated handling of unreliable tests.
Kornel Benko [Wed, 30 Nov 2016 10:47:39 +0000 (11:47 +0100)]
Development.lyx, updated handling of unreliable tests.

7 years agoCmake tests: make unreliable tests independent of inverted tests
Kornel Benko [Tue, 29 Nov 2016 23:53:31 +0000 (00:53 +0100)]
Cmake tests: make unreliable tests independent of inverted tests

7 years agoTutorial.lyx: use a simple reference format for the Tutorial
Uwe Stöhr [Tue, 29 Nov 2016 00:56:11 +0000 (01:56 +0100)]
Tutorial.lyx: use a simple reference format for the Tutorial

The "<reference> on  <page>" reference format is too tricky for newbies, see e.g. bug #10494

- also update the corresponding example files

7 years agoEmbeddedObjects.lyx: fix a typo spotted by a user
Uwe Stöhr [Tue, 29 Nov 2016 00:29:25 +0000 (01:29 +0100)]
EmbeddedObjects.lyx: fix a typo spotted by a user

7 years agoWin installer: fix a bug
Uwe Stöhr [Sun, 27 Nov 2016 14:33:06 +0000 (15:33 +0100)]
Win installer: fix a bug

7 years agoWin installer: finish work for new installer version
Uwe Stöhr [Sun, 27 Nov 2016 13:35:55 +0000 (14:35 +0100)]
Win installer: finish work for new installer version