]> git.lyx.org Git - lyx.git/log
lyx.git
7 years agoFix horizontal lines in math arrays
Guillaume Munch [Wed, 28 Sep 2016 14:05:10 +0000 (16:05 +0200)]
Fix horizontal lines in math arrays

They must end at the end of the last column, not at the start of the last+1
column.

7 years agoctests: uninvert solved problems and make samples robust
Günter Milde [Thu, 29 Sep 2016 08:42:03 +0000 (10:42 +0200)]
ctests: uninvert solved problems and make samples robust

Specify non-TeX fonts that work in the source for documents that
fail with "missing characters" if compiling with "non-TeX fonts"=true.
(This does not interfere with the default output in any way.)

7 years agoFixes to seminar.layout and documentation.
Günter Milde [Thu, 29 Sep 2016 07:40:06 +0000 (09:40 +0200)]
Fixes to seminar.layout and documentation.

Thanks to Jean-Marc for test and report.

7 years ago French translation updated
jpc [Wed, 28 Sep 2016 10:20:45 +0000 (11:20 +0100)]
     French translation updated

7 years agoAlso track local language switches
Enrico Forestieri [Tue, 27 Sep 2016 21:00:29 +0000 (23:00 +0200)]
Also track local language switches

Until now this was not done for essentially two reasons. The first
one is that local switches are used for short text insertions, so that
they are unlikely crossing environment boundaries. The second one
is that if we have to close a language at the end of an environment
we would be missing the right termination command. As this last
issue can be overcome by simply storing in the stack the current
nest level with a sign denoting the kind of switch, there is no
reason anymore not to track also local languages switches.
Also factor out some commonly used constructs in order to improve
readability.

7 years agoDo not unnecessarily open the document language
Enrico Forestieri [Tue, 27 Sep 2016 19:41:13 +0000 (21:41 +0200)]
Do not unnecessarily open the document language

If the document language is opened outside of any environement, we risk
not closing it if no other language switch occurs. Indeed, the stack is
emptied only at the end of an enviroment. We could of course also empty
it at the end of the document, but we would have an unnecessary language
switch.

7 years agoShut up compiler warning
Enrico Forestieri [Tue, 27 Sep 2016 19:32:40 +0000 (21:32 +0200)]
Shut up compiler warning

7 years agoctests: move test cases with permanent problems to "ignored".
Günter Milde [Mon, 26 Sep 2016 20:57:41 +0000 (22:57 +0200)]
ctests: move test cases with permanent problems to "ignored".

Also sort ignoredTests (even if the sublabels will normally not be shown).

7 years agoseminar: major documentation (example) update.
Günter Milde [Mon, 26 Sep 2016 20:55:58 +0000 (22:55 +0200)]
seminar: major documentation (example) update.

7 years ago Change a line to avoid bad hyphenation
jpc [Wed, 21 Sep 2016 08:11:31 +0000 (09:11 +0100)]
         Change a line to avoid bad hyphenation

THe pdf output showed  a very visible line overfull. I slightly changed the text to
avoid this without adding an hyphenation point, not appropriate in documents for beginners.

7 years ago Typo
jpc [Sun, 25 Sep 2016 16:29:16 +0000 (17:29 +0100)]
      Typo

7 years agoUpdate it.po
Enrico Forestieri [Sun, 25 Sep 2016 22:48:44 +0000 (00:48 +0200)]
Update it.po

7 years agoDo not rely on math macros being updated
Enrico Forestieri [Sun, 25 Sep 2016 18:31:13 +0000 (20:31 +0200)]
Do not rely on math macros being updated

Trying to spare a few cycles by avoiding computing metrics during
screen updates and export. See also 8f86ee7472cf7c8f, and e36a8903.
Guillaume will tell whether this also avoids crashing his documents ;)

7 years agoAmend 6a3ced3c
Enrico Forestieri [Sun, 25 Sep 2016 16:59:07 +0000 (18:59 +0200)]
Amend 6a3ced3c

ERT macros are also math insets, sigh...

7 years agoNo need to clutter runparams...
Enrico Forestieri [Sun, 25 Sep 2016 06:56:12 +0000 (08:56 +0200)]
No need to clutter runparams...

7 years agoCorrectly track opened polyglossia languages
Enrico Forestieri [Sun, 25 Sep 2016 06:20:34 +0000 (08:20 +0200)]
Correctly track opened polyglossia languages

A language switch may also occur outside of output_latex.cpp, apparently.

7 years agoDo not confuse global commands with ERT macros
Enrico Forestieri [Sun, 25 Sep 2016 00:00:55 +0000 (02:00 +0200)]
Do not confuse global commands with ERT macros

7 years agoCorrectly classify macros
Enrico Forestieri [Sat, 24 Sep 2016 23:11:16 +0000 (01:11 +0200)]
Correctly classify macros

Some macros defined in the lib/symbols file are classified are texmode.
But the MathMacro class was missing a currentMode method for returning
this information.

7 years agoSort the language nesting mess with polyglossia
Enrico Forestieri [Sat, 24 Sep 2016 01:15:02 +0000 (03:15 +0200)]
Sort the language nesting mess with polyglossia

When using polyglossia, lyx was making a real mess when changing
language inside nested insets. The \begin{language} and
\end{language} commands were not well paired such that they could
easily occur just before and after the start or end of an
environment. Of course this was causing latex errors such that
"\begin{otherlanguage} ended by \end{environment}".
There may still be some cases I did not take into account.

7 years agoFix compilation with MSVC 2015
Guillaume Munch [Fri, 23 Sep 2016 22:50:03 +0000 (00:50 +0200)]
Fix compilation with MSVC 2015

7 years agoReverse search: select a whole row
Guillaume Munch [Sat, 3 Sep 2016 22:54:05 +0000 (23:54 +0100)]
Reverse search: select a whole row

TexRow now returns a range {start, end} when looking up a particular row.

Reverse-search now selects the whole range instead of simply moving the cursor.

7 years agoFix: shift-mouse selection doesn't work well across insets
Guillaume Munch [Sun, 4 Sep 2016 22:24:57 +0000 (23:24 +0100)]
Fix: shift-mouse selection doesn't work well across insets

(FIXME in the code, no corresponding ticket found even though it is pretty
annoying)

7 years agoHelpers to set selections to arbitrary DocIterators
Guillaume Munch [Sun, 4 Sep 2016 21:17:32 +0000 (22:17 +0100)]
Helpers to set selections to arbitrary DocIterators

7 years agoRemove option to disable texrow
Guillaume Munch [Sun, 4 Sep 2016 02:02:47 +0000 (03:02 +0100)]
Remove option to disable texrow

I suspect that the gain was negligible, yet it made debugging and maintainance
harder.

7 years agoexplicit operator bool
Guillaume Munch [Sat, 3 Sep 2016 22:51:10 +0000 (23:51 +0100)]
explicit operator bool

7 years agoFix type of pos
Guillaume Munch [Sat, 3 Sep 2016 22:52:55 +0000 (23:52 +0100)]
Fix type of pos

7 years agoTexRow: clean up and simplify
Guillaume Munch [Mon, 20 Jun 2016 02:47:40 +0000 (03:47 +0100)]
TexRow: clean up and simplify

In particular merge the current_row_ with the rowlist_, which simplifies the
logic.

Pass by value for small PODs.

7 years agoCmake package: Correct description.
Kornel Benko [Fri, 23 Sep 2016 11:39:23 +0000 (13:39 +0200)]
Cmake package: Correct description.

The new cmake 3.6 now also inserts correctly
this file into its control-file. But the syntax of the control-file
expects the description lines be indented by a space.
Also empty lines (only spaces) are not allowed.

7 years agoSimplify the code that sets the read-only emblem in status bar
Jean-Marc Lasgouttes [Fri, 23 Sep 2016 09:17:20 +0000 (11:17 +0200)]
Simplify the code that sets the read-only emblem in status bar

Actually QIcon is able to handle transparently the svg icons.

Patch from Enrico.

7 years agoFix #10394 Do not error on missing characters in "nullfont".
Günter Milde [Fri, 23 Sep 2016 07:04:03 +0000 (09:04 +0200)]
Fix #10394 Do not error on missing characters in "nullfont".

Add an exception to the conversion of "missing character" warnings into errors.

The PGF package deliberately uses the dummy font "nullfont" to suppress output.
Therefore, warnings about missing characters in "nullfont" are really only warnings.

Also updated the comment: "Missing character" warnigns are especially widespread
in XeTeX/LuaTeX but can also happen with "classical" 8-bit TeX.

Feel free to port this to branch.

7 years agoAmend 40c262cb
Scott Kostyshak [Fri, 23 Sep 2016 02:55:35 +0000 (22:55 -0400)]
Amend 40c262cb

Use LyX note instead of comment. This is less invasive that
converting Beamer frames to fragile to accommodate the comment
environment.

(cherry picked from commit e81f6b04bcf878a1170d46b3820e8345436b4db5)

7 years agoAmend and extend 9f3518bc
Scott Kostyshak [Fri, 23 Sep 2016 02:12:59 +0000 (22:12 -0400)]
Amend and extend 9f3518bc

The comment is now in a comment inset. This change is extended to
all versions of beamer.lyx.

Change tracking is not used because it only affects a comment
(consistent with aa81ae7e).

This change is made according to updated conversation at:
https://www.mail-archive.com/search?l=mid&q=nruubc%24uu0%241%40blaine.gmane.org

(cherry picked from commit 40c262cbd865805d35aba65e25e919fc8dee6e69)

7 years agoctests: found reason for "seminar" failure.
Günter Milde [Thu, 22 Sep 2016 21:54:18 +0000 (23:54 +0200)]
ctests: found reason for "seminar" failure.

7 years agolib/unicodesymbols tests: add comments and remove spurious test samples.
Günter Milde [Thu, 22 Sep 2016 10:10:39 +0000 (12:10 +0200)]
lib/unicodesymbols tests: add comments and remove spurious test samples.

7 years agoctests: update labeling patterns.
Günter Milde [Thu, 22 Sep 2016 10:09:39 +0000 (12:09 +0200)]
ctests: update labeling patterns.

7 years agoBetter title for ViewSource
Guillaume Munch [Sun, 28 Aug 2016 20:57:17 +0000 (21:57 +0100)]
Better title for ViewSource

The title is changed to "LaTeX (pdflatex) Preview", etc. depending on the
format. The actual default format is computed.

The menu name "Source Pane" is replaced by "Code Preview Pane" to better reflect
its purpose.

7 years agoDo not hardcode required packages for Note inset
Jean-Marc Lasgouttes [Wed, 21 Sep 2016 14:11:53 +0000 (16:11 +0200)]
Do not hardcode required packages for Note inset

This does not change the default behavior, but allows to customize it.

7 years agoDo not use em dash in window title
Jean-Marc Lasgouttes [Wed, 21 Sep 2016 11:56:28 +0000 (13:56 +0200)]
Do not use em dash in window title

It seems that only KDE does that. Gnome does not, Windows does not either.
I do not think that we can/want to detect a KDE environment at run-time.

7 years agoMake *-lyxformat-* backup files use .lyx~ extension
Jean-Marc Lasgouttes [Fri, 9 Sep 2016 08:37:42 +0000 (10:37 +0200)]
Make *-lyxformat-* backup files use .lyx~ extension

At least now that look like real backup files

7 years agoFrench beamer.lyx: accept changes
Uwe Stöhr [Tue, 20 Sep 2016 21:17:09 +0000 (23:17 +0200)]
French beamer.lyx: accept changes

I think this can be accepted without further explanation since it is in a comment

7 years agoImprove bibliography info (general), part II
Juergen Spitzmueller [Tue, 20 Sep 2016 09:51:04 +0000 (11:51 +0200)]
Improve bibliography info (general), part II

Consider collection and proceedings

7 years agoImprove bibliography info (general)
Juergen Spitzmueller [Tue, 20 Sep 2016 09:45:25 +0000 (11:45 +0200)]
Improve bibliography info (general)

Consider all thesis types.

7 years agoImprove info display for biblatex databases, part IV
Juergen Spitzmueller [Tue, 20 Sep 2016 09:35:05 +0000 (11:35 +0200)]
Improve info display for biblatex databases, part IV

Consider biblatex's new field names: location (address),
journaltitle (journal), institution (school).

Biblatex provides alias for the legacy bibtex field names. Hence check
for the new names only if the legacy names are not used.

7 years agoAmend 2c4673af58f6
Juergen Spitzmueller [Tue, 20 Sep 2016 09:34:17 +0000 (11:34 +0200)]
Amend 2c4673af58f6

Also consider xrefs in crossref'ed entries.

7 years agolib/unicodesymbols: tests and fixes, Blocks 87 - 91
Günter Milde [Tue, 13 Sep 2016 20:10:32 +0000 (22:10 +0200)]
lib/unicodesymbols: tests and fixes, Blocks 87 - 91

Also add more "stmaryrd" symbols.

7 years agolib/unicodesymbols: replace TABs.
Günter Milde [Tue, 20 Sep 2016 05:59:30 +0000 (07:59 +0200)]
lib/unicodesymbols: replace TABs.

7 years agoFix compilation of fr/beamer.lyx with XeTeX
Scott Kostyshak [Tue, 20 Sep 2016 02:23:41 +0000 (22:23 -0400)]
Fix compilation of fr/beamer.lyx with XeTeX

The compilation did not succeed before because of an é in an ERT
inset. This is changed to \'{e}.

Also correct spelling of "decouvert" to "découvert".

Alternatives would be to use a LyX note or a comment inset. Since
the original version uses ERT, I do not change that.

This commit fixes the following ctest:

  export/examples/fr/beamer-article_pdf4_texF

It likely also fixes the corresponding test for fr/beamer.lyx, but
since the default output format is set to pdf2 we do not run the
test.

For more information, see:
https://www.mail-archive.com/search?l=mid&q=20160919192413.ftnz4gk6dl5w3k5c%40Opti1604

(cherry picked from commit 9f3518bcd2c440f928e88622947df5b376c6fe7a)

7 years agoImprove info display for biblatex databases, part III
Juergen Spitzmueller [Mon, 19 Sep 2016 17:09:42 +0000 (19:09 +0200)]
Improve info display for biblatex databases, part III

When resolving biblatex's xdata references, consider that xdata fields
can contain a comma-separated list of keys, not just a single key like
crossref.

7 years agoDocument the new behaviour in mathed
Enrico Forestieri [Mon, 19 Sep 2016 09:57:39 +0000 (11:57 +0200)]
Document the new behaviour in mathed

7 years agoctests: invert 'id_UserGuide_dvi3_systemF'
Scott Kostyshak [Sun, 18 Sep 2016 20:24:15 +0000 (16:24 -0400)]
ctests: invert 'id_UserGuide_dvi3_systemF'

This is consistent with the LuaTeX systemF test also being inverted.
The log notes that:

  Language bahasai not found in language.dat.lua

7 years agolib/unicodesymbols tests and fixes: Block Dingbats.
Günter Milde [Sun, 18 Sep 2016 15:08:56 +0000 (17:08 +0200)]
lib/unicodesymbols tests and fixes: Block Dingbats.

7 years agoFix ctest inversions of ja_wrong_auto_encoding.lyx
Scott Kostyshak [Sun, 18 Sep 2016 13:51:16 +0000 (09:51 -0400)]
Fix ctest inversions of ja_wrong_auto_encoding.lyx

I think that when ja_wrong_auto_encoding.lyx was moved the inversion
regex did not match correctly.

7 years agoamend 4d991120
Guillaume Munch [Sun, 18 Sep 2016 13:43:26 +0000 (14:43 +0100)]
amend 4d991120

7 years agoRegex fix for endyear
Juergen Spitzmueller [Sun, 18 Sep 2016 10:59:43 +0000 (12:59 +0200)]
Regex fix for endyear

As of biblatex 3.5, years and endyears can be negative (BCE).

7 years agoImprove info display for biblatex databases, part II
Juergen Spitzmueller [Sun, 18 Sep 2016 10:44:12 +0000 (12:44 +0200)]
Improve info display for biblatex databases, part II

In addition to the classic crossref, biblatex introduces xdata
references in order to source-out common data of entries. Entries
that have "xdata = {somekey}" just inherit all fields from the
respective @xdata entry, if the field is not already defined in
the entry itself (just like crossref, with the exception that @xdata
entries themselves are _never_ output on their own). @xdata entries can
themselves inherit to other @xdata entries (ad infinitum). So you can,
for instance, setup an xdata entry for a book series with series name
that inherits an xdata entry with information of the publisher
(publisher, address). Any book of that series would just need to refer
to the series xdata and add the number.

BiblioInfo now checks, in addition to crossrefs, for such xdata
references and inherits missing fields.

Nte that biblatex also introduces an "xref" field as an alternative to
crossref. We must not care about that, since the point of xref is that
it does not inherit fields from the target (just cites that one if a
given number of refs to it exist)

7 years agoImprove info display for biblatex databases
Juergen Spitzmueller [Sun, 18 Sep 2016 08:33:33 +0000 (10:33 +0200)]
Improve info display for biblatex databases

If an entry does not have a year field, check for a date field
(the common type in biblatex databases) and extract the year(s).

Candidate for branch.

7 years agoRemove unnecessary directives and preset search on fly.
Juergen Spitzmueller [Sun, 18 Sep 2016 07:10:24 +0000 (09:10 +0200)]
Remove unnecessary directives and preset search on fly.

7 years agoConnect filter reset button and remove unnecessary directives.
Juergen Spitzmueller [Sun, 18 Sep 2016 07:02:23 +0000 (09:02 +0200)]
Connect filter reset button and remove unnecessary directives.

7 years agoImprove systemlyxdir handling
Enrico Forestieri [Sat, 17 Sep 2016 20:38:27 +0000 (22:38 +0200)]
Improve systemlyxdir handling

Do not assume that the /systemlyxdir path prefix in \origin refers
to the system directory of the running instance, but check through
some heuristics what the real system dir is. In this way, a document
in the system dir of any other LyX installation is correctly spotted
and the \origin tag properly updated. For example, one can use an
installed version of lyx to edit a document in the lib/doc dir of a
git repo and obtain the same result as when running lyx in place.

7 years agoUpdate sk.po
Kornel Benko [Sat, 17 Sep 2016 14:39:58 +0000 (16:39 +0200)]
Update sk.po

7 years agode.po
Juergen Spitzmueller [Sat, 17 Sep 2016 11:24:11 +0000 (13:24 +0200)]
de.po

7 years agoFix string
Juergen Spitzmueller [Sat, 17 Sep 2016 11:06:41 +0000 (13:06 +0200)]
Fix string

7 years agoClean up the crossrefs dialog.
Juergen Spitzmueller [Sat, 17 Sep 2016 11:03:33 +0000 (13:03 +0200)]
Clean up the crossrefs dialog.

7 years agode.po
Juergen Spitzmueller [Sat, 17 Sep 2016 08:00:25 +0000 (10:00 +0200)]
de.po

7 years agoDevelopment.lyx: update documentation rules
Uwe Stöhr [Fri, 16 Sep 2016 21:25:04 +0000 (23:25 +0200)]
Development.lyx: update documentation rules

7 years agoctests: rename pattern file "suspiciousTests" to "invertedTests". part 2
Günter Milde [Fri, 16 Sep 2016 19:01:55 +0000 (21:01 +0200)]
ctests: rename pattern file "suspiciousTests" to "invertedTests". part 2

7 years agoKeep citation style settings bot within and between sessions.
Juergen Spitzmueller [Fri, 16 Sep 2016 17:39:53 +0000 (19:39 +0200)]
Keep citation style settings bot within and between sessions.

Fixes: #10256
7 years agoUpdate sk.po
Kornel Benko [Fri, 16 Sep 2016 14:16:40 +0000 (16:16 +0200)]
Update sk.po

7 years agode.po: update
Juergen Spitzmueller [Fri, 16 Sep 2016 11:48:10 +0000 (13:48 +0200)]
de.po: update

7 years agoCitation dialog: add & improve tooltips.
Juergen Spitzmueller [Fri, 16 Sep 2016 11:47:26 +0000 (13:47 +0200)]
Citation dialog: add & improve tooltips.

7 years agoctests: rename pattern file "suspiciousTests" to "invertedTests".
Günter Milde [Fri, 16 Sep 2016 10:03:17 +0000 (12:03 +0200)]
ctests: rename pattern file "suspiciousTests" to "invertedTests".

7 years agolib/unicodesymbols tests and fixes: Block Miscellaneous Symbols.
Günter Milde [Fri, 16 Sep 2016 08:04:28 +0000 (10:04 +0200)]
lib/unicodesymbols tests and fixes: Block Miscellaneous Symbols.

* add \Coffeecup and \Wheelchair

* add "force=utf8" where required

* uninvert tests: ctest works again after Kornel fixed the problem in 9f1b80a2af08c

7 years agoUpdate sk.po
Kornel Benko [Fri, 16 Sep 2016 09:00:48 +0000 (11:00 +0200)]
Update sk.po

7 years agoUpdate sk.po
Kornel Benko [Fri, 16 Sep 2016 08:47:18 +0000 (10:47 +0200)]
Update sk.po

7 years agoCitationUi: Fix small layout glitch
Juergen Spitzmueller [Fri, 16 Sep 2016 08:35:06 +0000 (10:35 +0200)]
CitationUi: Fix small layout glitch

7 years agode.po
Juergen Spitzmueller [Fri, 16 Sep 2016 08:05:04 +0000 (10:05 +0200)]
de.po

7 years agoCitation dialog redesign
Juergen Spitzmueller [Fri, 16 Sep 2016 07:21:04 +0000 (09:21 +0200)]
Citation dialog redesign

7 years agoCorrectly distinguish ERT macros from predefined ones such as \alpha
Enrico Forestieri [Fri, 16 Sep 2016 00:15:52 +0000 (02:15 +0200)]
Correctly distinguish ERT macros from predefined ones such as \alpha

7 years agoCorrectly distinguish LyX macros from those defined in ERT
Enrico Forestieri [Thu, 15 Sep 2016 22:43:04 +0000 (00:43 +0200)]
Correctly distinguish LyX macros from those defined in ERT

At this time the MacroData of a macro is still uninitialized,
so the macro() method always returns null.

7 years agoAvoid inserting spurious \text insets in mathed
Enrico Forestieri [Thu, 15 Sep 2016 22:37:04 +0000 (00:37 +0200)]
Avoid inserting spurious \text insets in mathed

This amends 5cdbaf51.

7 years agoDo not prematurely close \ensuremath or \lyxmathsym on export
Enrico Forestieri [Thu, 15 Sep 2016 22:32:35 +0000 (00:32 +0200)]
Do not prematurely close \ensuremath or \lyxmathsym on export

7 years agoCmake tests: Use mkpath from module 'File::Path' to recursively
Kornel Benko [Thu, 15 Sep 2016 19:55:47 +0000 (21:55 +0200)]
Cmake tests: Use mkpath from module 'File::Path' to recursively
create the directory path.

7 years agoRemove inversion of tests failing because of LuaTeX bug now solved upstream.
Günter Milde [Thu, 15 Sep 2016 19:05:31 +0000 (21:05 +0200)]
Remove inversion of tests failing because of LuaTeX bug now solved upstream.

7 years agolib/unicodesymbols tests: split 2-page test and fix missing command.
Günter Milde [Thu, 15 Sep 2016 16:15:07 +0000 (18:15 +0200)]
lib/unicodesymbols tests: split 2-page test and fix missing command.

7 years agoctests: Test dedicated LaTeX test samples with LaTeX export only.
Günter Milde [Thu, 15 Sep 2016 15:17:34 +0000 (17:17 +0200)]
ctests: Test dedicated LaTeX test samples with LaTeX export only.

Move them to a subdir, ignore this subdir for other tests.

Dedicated test samples for LaTeX-specific problems don't give additional value if tested for loading, conversion, or other exports.

7 years agoReally fix the problem with not updated macros
Enrico Forestieri [Thu, 15 Sep 2016 00:39:30 +0000 (02:39 +0200)]
Really fix the problem with not updated macros

Revert to the strategy used at 8f86ee74 but not using mathedWordList
because it may be still uninitialized at load time. Instead, use the
globalMacros method for getting the same info.
There was a thinko at 8ec91e80, because globalMacros always returns
null for user defined macros.

7 years agoSet window title before stting modified state
Jean-Marc Lasgouttes [Wed, 14 Sep 2016 20:33:56 +0000 (22:33 +0200)]
Set window title before stting modified state

Fixes message "QWidget::setWindowModified: The window title does not
contain a '[*]' placeholder" when opening a non-existent file.

7 years agolib/unicodesymbols tests and fixes.
Günter Milde [Wed, 14 Sep 2016 20:06:11 +0000 (22:06 +0200)]
lib/unicodesymbols tests and fixes.

Blocks Box Drawing, Block Elements, Geometric Shapes.

7 years agoMove wrap check for simple search/replace to lyxfind
Juergen Spitzmueller [Wed, 14 Sep 2016 08:23:39 +0000 (10:23 +0200)]
Move wrap check for simple search/replace to lyxfind

This gets rid of some dirty dispatch tricks and fixes wrap-around
on replace and in the spellchecker

Fixes: #10378
7 years agoPartly revert the bits of 8f86ee74 that are not necessary anymore after 8ec91e80
Enrico Forestieri [Wed, 14 Sep 2016 00:51:56 +0000 (02:51 +0200)]
Partly revert the bits of 8f86ee74 that are not necessary anymore after 8ec91e80

7 years agoMake sure not to use a pointer that may be bogus
Enrico Forestieri [Wed, 14 Sep 2016 00:27:18 +0000 (02:27 +0200)]
Make sure not to use a pointer that may be bogus

It may happen that mathedWordList is not still updated at load time,
so we would still be using a bogus pointer. Better fetching the
necessary info from the global macro table.

7 years agotex2lyx: Remove "textglobfall" hack.
Günter Milde [Tue, 13 Sep 2016 20:23:53 +0000 (22:23 +0200)]
tex2lyx: Remove "textglobfall" hack.

tex2lyx tests for TIPA (test-inset-*) resulted in {End} in ERT after fixing lib/unicodesymbols.
Should be fine now.

7 years agolib/unicodetests: add test samples for Blocks 77-79
Günter Milde [Tue, 13 Sep 2016 20:18:22 +0000 (22:18 +0200)]
lib/unicodetests: add test samples for Blocks 77-79

7 years agolib/unicodesymbols tests and fixes
Günter Milde [Tue, 13 Sep 2016 20:08:24 +0000 (22:08 +0200)]
lib/unicodesymbols tests and fixes

* Test blocks Mathematical Symbols, Miscellaneous Technical, Control Pictures
* fix Fahrenheit symbol
* add force=utf8 where required

7 years agoRemove pattern for tests that failed due to stale config files.
Günter Milde [Mon, 12 Sep 2016 16:08:53 +0000 (18:08 +0200)]
Remove pattern for tests that failed due to stale config files.

7 years agoMake sure that math macros are updated at export time.
Enrico Forestieri [Tue, 13 Sep 2016 05:53:48 +0000 (07:53 +0200)]
Make sure that math macros are updated at export time.

The math macros system is quite complex. Macros are updated during
metrics calculation, so a missing update is very likely to cause a
crash. This commit tries to assure that they are updated at export
time, which also happens when the table of contents is updated.
Moreover, in order to circumvent a possible missing update, when
a math macro is detected we try to avoid using the sym_ member
of the MacroData class, as it may contain bogus values.

7 years agotex2lyx test: make box-color-*.tex sample compilable
Günter Milde [Mon, 12 Sep 2016 09:44:45 +0000 (11:44 +0200)]
tex2lyx test: make box-color-*.tex sample compilable

Load required package textcomp.
Replace call to non-existent packages textcyr and textgreek with the backup definition of the commands as done by LyX export.
Do not load marvosym (clash with pifont) (LyX does not load the package either).
Remove invalid command \\ascii.

7 years agolib/unicodesymbols fixes
Günter Milde [Mon, 12 Sep 2016 09:39:59 +0000 (11:39 +0200)]
lib/unicodesymbols fixes

"vdots" fails in text mode, if "mathdots" is loaded.

package "ascii": remove invalid command "\\ascii", let LyX terminate commands

7 years agoCmake build: Shuffle code around.
Kornel Benko [Mon, 12 Sep 2016 09:04:14 +0000 (11:04 +0200)]
Cmake build: Shuffle code around.

7 years agoEnsure consistency
Enrico Forestieri [Mon, 12 Sep 2016 05:55:38 +0000 (07:55 +0200)]
Ensure consistency

On export, a macro defined in ERT (or not defined at all) is left
in the same environment it is entered. So, don't explicitly insert
it in an ensuremath environment when it is entered in a textmode one.