]> git.lyx.org Git - lyx.git/log
lyx.git
8 years agoCmake url tests: Added summary files.
Kornel Benko [Mon, 23 Nov 2015 12:07:53 +0000 (13:07 +0100)]
Cmake url tests: Added summary files.

The files will be locatet in the build-directory "Testing/Temporary" as
  LastFailedAccessibleURLS.log
  LastFailedInaccessibleURLS.log
  LastFailedKnownInvalidURLS.log

8 years agoImplement on screen rendering of alignment in LR boxes.
Jean-Marc Lasgouttes [Fri, 23 Oct 2015 09:16:21 +0000 (11:16 +0200)]
Implement on screen rendering of alignment in LR boxes.

This is done by implementing contentAlignment() for this inset.

In order to display properly 'stretch' alignment, the code for TextMetrics::getAlign is rewritten to include some code that was in computeRowMetrics.

8 years agoRemoved doubled code in CMakeLists.txt
Kornel Benko [Sun, 22 Nov 2015 18:20:32 +0000 (19:20 +0100)]
Removed doubled code in CMakeLists.txt

8 years agoFix InsetListings::getCaption() for std::regex
Georg Baum [Sun, 22 Nov 2015 16:43:10 +0000 (17:43 +0100)]
Fix InsetListings::getCaption() for std::regex

Back references in the format string of regex_replace use the syntax $n both
in std::regex and in boost::regex for the default format. Boost seems to
support the syntax \n in addition, but it is not documented at
http://www.boost.org/doc/libs/master/libs/regex/doc/html/boost_regex/format.html.
Therefore it is a good idea to use $n also for boost.

8 years agoAdd unit test for InsetListings::getCaption()
Georg Baum [Sun, 22 Nov 2015 16:34:46 +0000 (17:34 +0100)]
Add unit test for InsetListings::getCaption()

The regex in InsetListings::getCaption() does not work with C++11 and
std::regex. This can now be checked easily by this new unit test.

8 years agoFrench Additional.lyx: replace non-ASCII char in TEX code
Uwe Stöhr [Sun, 22 Nov 2015 16:25:17 +0000 (17:25 +0100)]
French Additional.lyx: replace non-ASCII char in TEX code

now it compiles also with XeTeX

8 years agoupdate short installation guide for Mac OS X
Stephan Witt [Sun, 22 Nov 2015 16:01:12 +0000 (17:01 +0100)]
update short installation guide for Mac OS X

8 years agoCmake export tests: Added development/mathmacros to the list
Kornel Benko [Sun, 22 Nov 2015 14:10:46 +0000 (15:10 +0100)]
Cmake export tests: Added development/mathmacros to the list

8 years agoMerge branch 'master' of git.lyx.org:lyx
Kornel Benko [Sun, 22 Nov 2015 12:57:13 +0000 (13:57 +0100)]
Merge branch 'master' of git.lyx.org:lyx

8 years agoCmake export tests: Created sub-labels manuals, examples, templates, mathmacros,...
Kornel Benko [Sun, 22 Nov 2015 12:44:27 +0000 (13:44 +0100)]
Cmake export tests: Created sub-labels manuals, examples, templates, mathmacros, autotests.

To test all export use 'ctest -L export'. This is unchanged.
The following lists directories and assigned sub-label
 lib/doc: manuals
 lib/templates: templates
 lib/examples: examples
 development/mathmacro: mathmacros
 autotests: autotests

8 years agoFix some thinkos in MSVC regex hack
Georg Baum [Sun, 22 Nov 2015 12:02:39 +0000 (13:02 +0100)]
Fix some thinkos in MSVC regex hack

The changed code is not used, but I tried to use a similar approach for
boost::regex, and found some problems:
- regex_replace and regex_search are implemented in the replacement, so they
  must not be used directly
- an smatch object must be given by reference (as in the called methods),
  otherwise an exception would be thrown at runtime
- the commented out regex_replace version is actually needed

This code is supposed to be deleted, but nevertheless I wanted to record here
how it had to be modified if it was actually needed.

8 years agoRemove wrong FIXME.
Günter Milde [Sat, 21 Nov 2015 22:08:54 +0000 (23:08 +0100)]
Remove wrong FIXME.

Code at this place calls "switchEncoding" which takes care of not-switching
if there is only one inputenc used in the document.

8 years agoAdd a comment about iso-8859-7 not supported by standard inputenc.
Günter Milde [Sat, 21 Nov 2015 22:07:33 +0000 (23:07 +0100)]
Add a comment about iso-8859-7 not supported by standard inputenc.

8 years agoFix inputenc for some templates.
Günter Milde [Sat, 21 Nov 2015 22:06:24 +0000 (23:06 +0100)]
Fix inputenc for some templates.

Some templates had the inputenc setting "default" (meaning
use the language default encoding, (not TeX's default which is 7-bit ASCII) but
don't load inputenc, leave handling of non-ASCII characters to the author).

This is no apparent problem as long as no non-ASCII character is used in the
document. It is very unsave, however, as any non-ASCII character used in the
document has the potential to either make compilation fail or be
misrepresented in the output.

8 years agoCmake export tests: Move some tests around.
Kornel Benko [Sat, 21 Nov 2015 18:37:41 +0000 (19:37 +0100)]
Cmake export tests: Move some tests around.

Some tests behave different on different systems.
Probably missing font, or tex class ...

8 years agoCmake export tests: now export/examples/fa/splash_dvi passes
Kornel Benko [Sat, 21 Nov 2015 16:54:02 +0000 (17:54 +0100)]
Cmake export tests: now export/examples/fa/splash_dvi passes

Günter Milde suggested setting language of URL to english, this helps

8 years agode.po
Juergen Spitzmueller [Sat, 21 Nov 2015 15:39:56 +0000 (16:39 +0100)]
de.po

8 years agoCmake export tests: Ignoring some japanese tests.
Kornel Benko [Sat, 21 Nov 2015 13:20:54 +0000 (14:20 +0100)]
Cmake export tests: Ignoring some japanese tests.

Compiling Japanese tex files with anything other than platex is
ATM not successful.

8 years agoRemove an errant slash in Tutorial
Scott Kostyshak [Sat, 21 Nov 2015 00:31:44 +0000 (19:31 -0500)]
Remove an errant slash in Tutorial

8 years agoImprove debug message
Jean-Marc Lasgouttes [Fri, 20 Nov 2015 21:43:45 +0000 (22:43 +0100)]
Improve debug message

8 years agoadjust qt configure options for 5.5.1, avoid -arch deprecated warning for qt5
Stephan Witt [Fri, 20 Nov 2015 19:51:47 +0000 (20:51 +0100)]
adjust qt configure options for 5.5.1, avoid -arch deprecated warning for qt5

8 years agoimproved data types for prefix length and pointer diff
Stephan Witt [Fri, 20 Nov 2015 19:48:56 +0000 (20:48 +0100)]
improved data types for prefix length and pointer diff

8 years agoClear the error list before second LaTeX run
Scott Kostyshak [Thu, 19 Nov 2015 05:19:00 +0000 (00:19 -0500)]
Clear the error list before second LaTeX run

It was possible for errors that occured in the first run to be shown
in the error list after the second run. Now, the errors are cleared
before the second run.

Although I do not have a reproducible example at hand, I imagine
this situation would occur if a rerun is required and there is still
an error after the rerun.

Related to #9765.

8 years agoUpdate exit code on second LaTeX run (#9765)
Scott Kostyshak [Thu, 19 Nov 2015 05:18:40 +0000 (00:18 -0500)]
Update exit code on second LaTeX run (#9765)

Before, the exit code for the first LaTeX run was used to set the
flag, which caused an error to be reported when in fact there was no
error on the second run.

This fix ammends 1dbf0e5a.

8 years agoAdd comment
Scott Kostyshak [Thu, 19 Nov 2015 02:33:44 +0000 (21:33 -0500)]
Add comment

8 years agotex2lyx: Add a newline at the end of comment if not at the end of a paragraph.
Jean-Marc Lasgouttes [Wed, 9 Sep 2015 09:47:47 +0000 (11:47 +0200)]
tex2lyx: Add a newline at the end of comment if not at the end of a paragraph.

When importing TeX code like
  %comment
  TEXT
the LyX document currently becomes
  [ERT %comment] TEXT
so that TEXT is now part of the comment.

Now output_comment adds a trailing newline if the token after the
comment is not a newline. Note that the newline that marks the end of
the comment has already been parsed at this point.

tex2lyx tests have been checked manually and updated.

Fixes ticket #9551.

8 years agoUpdate sk.po
Kornel Benko [Fri, 20 Nov 2015 10:14:06 +0000 (11:14 +0100)]
Update sk.po

8 years agoCmake export tests: Finished categorizing tests.
Kornel Benko [Fri, 20 Nov 2015 09:20:10 +0000 (10:20 +0100)]
Cmake export tests: Finished categorizing tests.

Now
'ctest -L export' should be without errors
If there _are_ errors, the appropriate test should go to nonstandardTests

'ctest -L reverted' should be without errors
If there _are_ errors, the appropriate test should go to nonstandardTests

'ctest -L nonstandard'
Tests here may, or may not fail. Depends of installed tex extensions

8 years agoCmake export test: Make some lyx-files them compilable if using system fonts
Kornel Benko [Fri, 20 Nov 2015 09:13:54 +0000 (10:13 +0100)]
Cmake export test: Make some lyx-files them compilable if using system fonts

8 years agoFrench Additional.lyx: replace non-ASCII char in TEX code
Uwe Stöhr [Thu, 19 Nov 2015 23:58:58 +0000 (00:58 +0100)]
French Additional.lyx: replace non-ASCII char in TEX code

now it compiles also with XeTeX

8 years agoDisable Apply button in InsetParams dialogs if there is no inset to apply to.
Juergen Spitzmueller [Thu, 19 Nov 2015 14:48:49 +0000 (15:48 +0100)]
Disable Apply button in InsetParams dialogs if there is no inset to apply to.

Fixes: #9386
8 years agoCmake export tests: List of inverted tests is expanding
Kornel Benko [Thu, 19 Nov 2015 01:54:25 +0000 (02:54 +0100)]
Cmake export tests: List of inverted tests is expanding

Comments, why a test is moved into the set of inverted are, as usual, from Günter Milde.

8 years agoCorrect tex2lyx/roundtrip/test-structure.tex test.
Kornel Benko [Wed, 18 Nov 2015 17:35:54 +0000 (18:35 +0100)]
Correct tex2lyx/roundtrip/test-structure.tex test.

8 years agoRemove trailing space at the end of \author
Guillaume Munch [Fri, 13 Nov 2015 18:40:10 +0000 (18:40 +0000)]
Remove trailing space at the end of \author

Checked that the change is compatible with lyx2lyx (relevant lines are in
lyx_2_0.py).

8 years agoFix bug #9854 "Dataloss after git merge with change tracking"
Guillaume Munch [Wed, 11 Nov 2015 21:31:05 +0000 (21:31 +0000)]
Fix bug #9854 "Dataloss after git merge with change tracking"

A plausible scenario is that change tracking is used together with a versioning
system. In this case, parallel modifications might remove an \author line on one
side, and add another change of this author on the other side. This scenario
causes a bad merge after which the added change has no associated author. In
this case, LyX used to display a list of errors on opening and deliberately
removed the corresponding change tracking information.

* If ever a tracked change refers to an author that does not exist, then add a
  dummy author. This dummy author is not saved to the file afterwards.

* Have a very clear error message on opening such a corrupt file.

8 years agoRewrite regexes in ECMAScript style (bug #9799)
Guillaume Munch [Mon, 16 Nov 2015 22:40:52 +0000 (22:40 +0000)]
Rewrite regexes in ECMAScript style (bug #9799)

8 years agotheorems-ams: add solution environment
Uwe Stöhr [Wed, 18 Nov 2015 01:36:49 +0000 (02:36 +0100)]
theorems-ams: add solution environment

 fixes bug #6363 now completely

8 years agodocument fileformat change
Uwe Stöhr [Wed, 18 Nov 2015 00:16:39 +0000 (01:16 +0100)]
document fileformat change

8 years agotheorems.inc: add environment "solution"
Uwe Stöhr [Wed, 18 Nov 2015 00:14:30 +0000 (01:14 +0100)]
theorems.inc: add environment "solution"

fileformat change, fixes bug #6363

8 years agode.po: fix a shortcut conflict
Uwe Stöhr [Tue, 17 Nov 2015 22:58:44 +0000 (23:58 +0100)]
de.po: fix a shortcut conflict

8 years agoCmake monolithic build: Some corrections.
Kornel Benko [Tue, 17 Nov 2015 20:21:00 +0000 (21:21 +0100)]
Cmake monolithic build: Some corrections.

In the src/support directory do not use src/support/AppleScriptProxy.cpp if not APPLE.
In the src/client directory remove inclusion of src/TexRow.cpp

8 years agoCmake export tests: More tests to be inverted, suspended or made non-standard
Kornel Benko [Tue, 17 Nov 2015 17:22:45 +0000 (18:22 +0100)]
Cmake export tests: More tests to be inverted, suspended or made non-standard

All comments in revertedTests comes from Günter Milde
Non standard test is new. It should collect all tests
which may not work because of some missing non-standard
tex package or some exotic system font.

8 years agoDo not switch listings to singlebyte encoding with pLateX/Japanese
Juergen Spitzmueller [Tue, 17 Nov 2015 09:28:10 +0000 (10:28 +0100)]
Do not switch listings to singlebyte encoding with pLateX/Japanese

Also improve Listings warning about uncodable characters
if the encoding has been switched by LyX.

Fixes: #8439
8 years agoUse a QCache for string metrics
Jean-Marc Lasgouttes [Mon, 9 Nov 2015 09:11:57 +0000 (10:11 +0100)]
Use a QCache for string metrics

This is better because it implements a LRU cache. Indeed, while editing in particular, width of many different strings has to be computed. This is different from the previous situation where only width of single characters was computed and cached.

8 years agoUpdate documentation for tabular features
Jean-Marc Lasgouttes [Tue, 17 Nov 2015 08:26:29 +0000 (09:26 +0100)]
Update documentation for tabular features

8 years agoImplement toggling for longtabular and booktabs tabular features
Jean-Marc Lasgouttes [Fri, 13 Nov 2015 13:09:04 +0000 (14:09 +0100)]
Implement toggling for longtabular and booktabs tabular features

This is needed for the tabular context menu. This menu is updated accordingly.

8 years agoDisable LFUN_LAYOUT when layout cannot be found
Jean-Marc Lasgouttes [Tue, 10 Nov 2015 17:42:24 +0000 (18:42 +0100)]
Disable LFUN_LAYOUT when layout cannot be found

Fixes bug #8077

8 years agoFix a shortcut conflict (#9820)
Scott Kostyshak [Tue, 17 Nov 2015 05:24:19 +0000 (00:24 -0500)]
Fix a shortcut conflict (#9820)

'o' is now taken by the new Pandoc export to "MS Word Office".

8 years agoinstaller: changelog for latest release
Uwe Stöhr [Mon, 16 Nov 2015 23:23:23 +0000 (00:23 +0100)]
installer: changelog for latest release

8 years agoFix wrong forward declaration
Georg Baum [Mon, 16 Nov 2015 20:51:30 +0000 (21:51 +0100)]
Fix wrong forward declaration

This popped up in cmake monolithic build once. It looks like BufferView is
included indirectly by some of the other headers (otherwise we would have seen
compile errors for other build configurations as well), bu I'll keep the
forward declaration since we don't want to depend on this indirect header
inclusion.

8 years agoFix a cmake monolithic build error
Georg Baum [Mon, 16 Nov 2015 20:39:03 +0000 (21:39 +0100)]
Fix a cmake monolithic build error

N_() is a preprocessor macro to mark translatable static strings. It is not a
good idea to also name a class member variable N_: It did only work in the
other build configurations because gettext.h was not included.

8 years agoCmake export tests: More tests to be reverted.
Kornel Benko [Mon, 16 Nov 2015 17:47:34 +0000 (18:47 +0100)]
Cmake export tests: More tests to be reverted.

Again, thanks to Günter Milde.
ATM, the latex comments in user preamble are removed before export test.

8 years agoChanged wrong setting for origin in LaTeXConfig.lyx at commit b98dd4e
Kornel Benko [Mon, 16 Nov 2015 11:06:42 +0000 (12:06 +0100)]
Changed wrong setting for origin in LaTeXConfig.lyx at commit b98dd4e

8 years agoCmake export tests: Some more corrected exports.
Kornel Benko [Mon, 16 Nov 2015 10:51:54 +0000 (11:51 +0100)]
Cmake export tests: Some more corrected exports.

Thanks to Günter Milde.

8 years agoReplace the translatable latexism 'longtable' with 'multi-page table' in UI.
Kornel Benko [Mon, 16 Nov 2015 09:29:53 +0000 (10:29 +0100)]
Replace the translatable latexism 'longtable' with 'multi-page table' in UI.

8 years agoAssure we use docstring.
Juergen Spitzmueller [Mon, 16 Nov 2015 07:21:53 +0000 (08:21 +0100)]
Assure we use docstring.

Cures another monolithic build error with CMake.

8 years agoRename function that was ambiguous from a monolithic perspective.
Juergen Spitzmueller [Mon, 16 Nov 2015 07:20:54 +0000 (08:20 +0100)]
Rename function that was ambiguous from a monolithic perspective.

Cures one monolithic build issue with CMake.

8 years agoFactor out multiply used ColorSorter.
Juergen Spitzmueller [Mon, 16 Nov 2015 07:19:16 +0000 (08:19 +0100)]
Factor out multiply used ColorSorter.

This cures one problem of monolithic build (where the function was
ambiguous)

8 years agoinstaller: support texindy
Uwe Stöhr [Mon, 16 Nov 2015 03:04:11 +0000 (04:04 +0100)]
installer: support texindy

texindy requires some more Perl and unfortunately the path tho the perl.exe in Windows' PATh environment variable.
The new EnvVarUpdate.nsh contains a function to modify Windows environment variables easily.

8 years agoWe need to show the error message in the case in which we copied the
Richard Heck [Sun, 15 Nov 2015 17:24:37 +0000 (12:24 -0500)]
We need to show the error message in the case in which we copied the
file due to a format change, as well.

8 years agoSimplify use of Buffer::getBackupName().
Richard Heck [Fri, 13 Nov 2015 22:12:52 +0000 (17:12 -0500)]
Simplify use of Buffer::getBackupName().

Previous versions of this code used the string in a different way,
but now it is sufficient just to return a FileName.

8 years agoFix sorting
Georg Baum [Sat, 14 Nov 2015 09:25:07 +0000 (10:25 +0100)]
Fix sorting

No single translation has been changed, but pt_BR and pt_PT are now correctly
sorted. This removes the artifical diffs that running
make ../lib/layouttranslations
did produce previously.

8 years agoAdd experimental mode to save files with LyX
Georg Baum [Sat, 14 Nov 2015 09:14:59 +0000 (10:14 +0100)]
Add experimental mode to save files with LyX

Thanks Scott for the idea to modify the document. This seems to work, but I am
not surer whether it is safe in all cases, so better warn if this is used.

8 years agoRegenerate with LyX conforming whitespace
Georg Baum [Fri, 13 Nov 2015 20:57:51 +0000 (21:57 +0100)]
Regenerate with LyX conforming whitespace

8 years agoReduce whitespace differences to LyX
Georg Baum [Fri, 13 Nov 2015 20:54:00 +0000 (21:54 +0100)]
Reduce whitespace differences to LyX

LyX writes an empty line between \end_layout and \begin_layout, so we should
do so as well.

8 years agoAmend 789745df
Guillaume Munch [Sun, 15 Nov 2015 12:15:02 +0000 (12:15 +0000)]
Amend 789745df

Remove warning. Actually the auxiliary function is not necessary since its
actual contents have been relocated as TexRow::prepend() during dev.

8 years agoUser guide, missing space.
Pavel Sanda [Sun, 15 Nov 2015 02:27:20 +0000 (18:27 -0800)]
User guide, missing space.

8 years agoBack to development
Scott Kostyshak [Sat, 14 Nov 2015 04:05:13 +0000 (23:05 -0500)]
Back to development

8 years agoThis is LyX 2.2.0alpha1 2.2.0alpha1
Scott Kostyshak [Sat, 14 Nov 2015 04:02:34 +0000 (23:02 -0500)]
This is LyX 2.2.0alpha1

8 years agoFix stupid error in cc83dfa887.
Richard Heck [Fri, 13 Nov 2015 22:03:40 +0000 (17:03 -0500)]
Fix stupid error in cc83dfa887.

8 years agoUpdate examples/templates to 2.2.0alpha1 format
Scott Kostyshak [Fri, 13 Nov 2015 18:14:45 +0000 (13:14 -0500)]
Update examples/templates to 2.2.0alpha1 format

Also MacOSX ReadMe files. Note that a few lib/doc files are
also "updated" because trailing spaces are removed, but their file
formats are the same because they were recently updated at 83672113.

I did "git checkout LFUNs.lyx" because this file is generated
automatically and has a special header.

8 years agoupdatedocs.py now updates templates and examples
Scott Kostyshak [Fri, 13 Nov 2015 17:59:28 +0000 (12:59 -0500)]
updatedocs.py now updates templates and examples

development/MacOSX/ReadMe files are also updated.

8 years agoUpdate layouts to 2.2.0alpha1 format
Scott Kostyshak [Fri, 13 Nov 2015 18:01:27 +0000 (13:01 -0500)]
Update layouts to 2.2.0alpha1 format

8 years agoamend e17838b1
Guillaume Munch [Fri, 13 Nov 2015 13:37:10 +0000 (13:37 +0000)]
amend e17838b1

8 years agoCorrect some charid values in lib/symbols. Fixes #9823.
Günter Milde [Fri, 13 Nov 2015 13:01:32 +0000 (14:01 +0100)]
Correct some charid values in lib/symbols. Fixes #9823.

8 years agoUpdate comments after solving #9740.
Günter Milde [Fri, 13 Nov 2015 12:59:17 +0000 (13:59 +0100)]
Update comments after solving #9740.

8 years agoRevert "Now math previews are correctly updated when replacing math contents inside"
Scott Kostyshak [Fri, 13 Nov 2015 05:54:15 +0000 (00:54 -0500)]
Revert "Now math previews are correctly updated when replacing math contents inside"

Updating all previews (even if only one has changed) is more costly
than I thought. Thanks to Guillaume for tracking down this
performance issue.

This reversion is related to the reversions at 358745d0 and
a7a14395. See also #7242 and #9855.

This reverts commit 29948eec26ffc90bdfe0b853aa79d30cfa36c08d.

8 years agoRevert "Update previews after doing a find/replace (#7242)"
Scott Kostyshak [Fri, 13 Nov 2015 05:50:39 +0000 (00:50 -0500)]
Revert "Update previews after doing a find/replace (#7242)"

Updating all previews (even if only one has changed) is more costly
than I thought. Thanks to Guillaume for tracking down this
performance issue.

This reversion is related to the reversion at 358745d0.
See also #7242 and #9855.

This reverts commit 66f527e417de916105680696bd44d7ad91ff60cb.

8 years agostdcontext.inc: improvement according to the list
Uwe Stöhr [Thu, 12 Nov 2015 23:28:29 +0000 (00:28 +0100)]
stdcontext.inc: improvement according to the list

8 years agoCmake export tests: Don't select inputencoding, this is due to 0eb9477 not needed.
Kornel Benko [Thu, 12 Nov 2015 20:42:43 +0000 (21:42 +0100)]
Cmake export tests: Don't select inputencoding, this is due to 0eb9477 not needed.

This sort of reverts 6dd98a8.

8 years agoUpdate sk.po
Kornel Benko [Thu, 12 Nov 2015 20:41:55 +0000 (21:41 +0100)]
Update sk.po

8 years agoCmake export tests: ctest_export/doc/el/Intro_pdf5_systemF now compiles
Kornel Benko [Thu, 12 Nov 2015 20:30:16 +0000 (21:30 +0100)]
Cmake export tests: ctest_export/doc/el/Intro_pdf5_systemF now compiles

8 years agoDocumentation for varwidth.module
Guillaume Munch [Thu, 12 Nov 2015 16:23:08 +0000 (16:23 +0000)]
Documentation for varwidth.module

8 years agoAdd example using the varwidth package
Guillaume Munch [Thu, 12 Nov 2015 15:33:25 +0000 (15:33 +0000)]
Add example using the varwidth package

8 years agoEnsure the Greek Intro.lyx compiles with non-TeX fonts.
Günter Milde [Thu, 12 Nov 2015 16:07:56 +0000 (17:07 +0100)]
Ensure the Greek Intro.lyx compiles with non-TeX fonts.

Prevent loading of lmodern.sty if non-TeX fonts are set and
Define DejaVu as non-TeX font.

This ensures that non-TeX fonts are used if requested (lmodern.sty set
the 8-bit version of LatinModern if compiling with LuaTeX).
Also ensure that a font with all characters is used. (LatinModern misses small
Greek characters.)

Similar actions for other manuals and examples with Greek or Cyrillic script
will solve some more export tests with non-TeX fonts.

8 years agoFix 480937a103708a651/lyxgit, second attempt.
Günter Milde [Thu, 12 Nov 2015 15:55:04 +0000 (16:55 +0100)]
Fix 480937a103708a651/lyxgit, second attempt.

Prevent encoding changes whenever the TeX engine is XeTeX or LuaTeX,
as XeTeX/LuaTeX use only one encoding per document:

* with useNonTeXFonts: "utf8plain",
* with XeTeX and TeX fonts: "ascii" (inputenc fails),
* with LuaTeX and TeX fonts: only one encoding accepted by luainputenc.

+1 no needless encoding switches
+1 runparams.encoding matches the correct encoding at any time
+1 less complicated code.

-1 there may still be problems with CJK (possibly impossible to
   solve for Xe/LuaTeX with TeX fonts).

For LuaTeX & TeX fonts, the complete document uses the encoding
of the global document language.

See also #9740.

8 years agostdcontext.inc: new context menu for tables
Uwe Stöhr [Thu, 12 Nov 2015 00:21:21 +0000 (01:21 +0100)]
stdcontext.inc: new context menu for tables

see the list for details

8 years agoUserGuide.lyx: change a section name as suggested by a user
Uwe Stöhr [Wed, 11 Nov 2015 23:57:07 +0000 (00:57 +0100)]
UserGuide.lyx: change a section name as suggested by a user

8 years agoRevert "Update previews on preference change (#9507)"
Scott Kostyshak [Wed, 11 Nov 2015 23:06:07 +0000 (18:06 -0500)]
Revert "Update previews on preference change (#9507)"

The referenced commit lead to performance issues and possibly
crashes in some cases when saving preferences. Thanks to Guillaume
for discovering the issues. See #9828 for more discussion.

I hope to come up with a better fix for #9507.

This reverts commit 390ae05444cf4899a3028dcbbfe1095ecd2d207a.

8 years agoBetter documentation of compressed (bug 9189)
Georg Baum [Wed, 11 Nov 2015 22:03:18 +0000 (23:03 +0100)]
Better documentation of compressed (bug 9189)

The compressed/uncompressed option of LyX files was poorly documented. Now it
is a bit better.

8 years agoFix broken author name (bug 9858)
Georg Baum [Wed, 11 Nov 2015 21:39:55 +0000 (22:39 +0100)]
Fix broken author name (bug 9858)

8 years agoFix \origin lines
Georg Baum [Wed, 11 Nov 2015 21:25:18 +0000 (22:25 +0100)]
Fix \origin lines

These were fixed manually. I tried to add an option to updatedocs.py to
open and save a file with LyX, but that did not work, since
lyx -x 'command-sequence buffer-write ; lyx-quit' does not write and does
not quit.

8 years agoUpdate documentation to current format
Georg Baum [Wed, 11 Nov 2015 20:56:27 +0000 (21:56 +0100)]
Update documentation to current format

This was done by running development/tools/updatedocs.py and reverting
lib/doc/LFUNs.lyx in order to preserve the special header line.

8 years agoUpdate LFUNs.lyx to current format
Georg Baum [Wed, 11 Nov 2015 20:48:20 +0000 (21:48 +0100)]
Update LFUNs.lyx to current format

gen_lfuns.py does now produce the current file format, and and LFUNs.lyx was
re-created with the updated script.
There is one difference if you compare this version of LFUNs.lyx with the old
version updated by lyx2lyx: All occurences of LyX, TeX etc. in the lfun
descriptions are no longer output as logos. I do consider this as a feature,
since the old version did also output the TeX part of BibTeX as a logo, as well
as places where the names were part of some syntax, e.g. lyx::LyXRC::LyXRCTags.

8 years agoSet \origin correctly when upgrading docs
Georg Baum [Wed, 11 Nov 2015 20:35:12 +0000 (21:35 +0100)]
Set \origin correctly when upgrading docs

lyx2lyx did not yet know about /systemlyxdir/ and set \origin to the path
where my git tree lives instead. This path is not usable except on my machine,
so better write something more usable instead.
This is a special command line switch of lyx2lyx, so it does not interfere
with normal usage. I did not try to deduce the systemlyxdir from lyx2lyx to
be on the safe side.

8 years agoExclude old files in attic
Georg Baum [Wed, 11 Nov 2015 19:50:40 +0000 (20:50 +0100)]
Exclude old files in attic

8 years agoAdd utility to update documentation files
Georg Baum [Wed, 11 Nov 2015 19:41:28 +0000 (20:41 +0100)]
Add utility to update documentation files

updatedocs.py is a small script that updates all documentation files to the
current format.

8 years agoconfigure.py: support OpenDocument as input format
Uwe Stöhr [Wed, 11 Nov 2015 00:59:17 +0000 (01:59 +0100)]
configure.py: support OpenDocument as input format

 - new converter for OpenDocument text -> LaTeX

8 years agoFix bug #9554: When we save a file that was not originally in the current
Richard Heck [Tue, 10 Nov 2015 17:39:24 +0000 (12:39 -0500)]
Fix bug #9554: When we save a file that was not originally in the current
LyX format, create a backup of the original file. We put it in the backup
directory, if one exists, otherwise in the directory the original file is
in. This is the same strategy as for normal backups. Basically, the only
diferences are: (i) what name we use and (ii) we do not over-write any
backups that may already exist.

8 years agoFix 480937a103708a651/lyxgit. See also #9740.
Günter Milde [Tue, 10 Nov 2015 23:10:06 +0000 (00:10 +0100)]
Fix 480937a103708a651/lyxgit. See also #9740.

Actually, the changed tests were used to prevent overwriting the encoding
changed in Buffer::writeLaTeX with a language-default encoding.
This is still required for XeTeX with TeX-fonts unless a proper solution is found.

Documents with more than one encoding and TeX-fonts fail with LuaTeX,
as "luainputenc" can only handle one encoding.