]> git.lyx.org Git - features.git/log
features.git
8 years agoDelete .out files after compilation errors (#9963)
Guillaume Munch [Tue, 23 Feb 2016 23:57:12 +0000 (23:57 +0000)]
Delete .out files after compilation errors (#9963)

This treats the symptom, not the bug.

8 years agoUpdate it.po
Enrico Forestieri [Sun, 28 Feb 2016 16:41:13 +0000 (17:41 +0100)]
Update it.po

8 years agoprepare Qt 5.6 builds
Stephan Witt [Sun, 28 Feb 2016 10:34:06 +0000 (11:34 +0100)]
prepare Qt 5.6 builds
 * support separate Qt framework builds
 * adjust configure options to skip QtTools

8 years agofr.po: translations by Jean-Pierre
Uwe Stöhr [Sat, 27 Feb 2016 19:03:08 +0000 (20:03 +0100)]
fr.po: translations by Jean-Pierre

8 years agoFrench linguistics.lyx: updates by Jean-Pierre
Uwe Stöhr [Sat, 27 Feb 2016 18:58:10 +0000 (19:58 +0100)]
French linguistics.lyx: updates by Jean-Pierre

8 years agoFix bindnasrepma.svgz
Guillaume Munch [Wed, 24 Feb 2016 14:54:56 +0000 (14:54 +0000)]
Fix bindnasrepma.svgz

It's ampersand rotated 180 degrees, not its vertical mirror

8 years agoDo not merge consecutive hyphens in LyX-Code
Jean-Marc Lasgouttes [Thu, 25 Feb 2016 14:00:13 +0000 (15:00 +0100)]
Do not merge consecutive hyphens in LyX-Code

The existing code already avoids merging with typewriter font, but it does not work with LyX-Code, where the typewriter family is inherited. Therefore it is Cursor::real_current_font that must be tested.

Fixes bug #9987.

8 years agoUpdate sk.po
Kornel Benko [Fri, 26 Feb 2016 07:09:18 +0000 (08:09 +0100)]
Update sk.po

8 years agoErrorListUi.ui: make 2 strings compilable
Uwe Stöhr [Fri, 26 Feb 2016 01:04:49 +0000 (02:04 +0100)]
ErrorListUi.ui: make 2 strings compilable

fixes bug #9988

8 years agosv.po: translations for LyX 2.2.0 from Jim
Uwe Stöhr [Thu, 25 Feb 2016 19:41:27 +0000 (20:41 +0100)]
sv.po: translations for LyX 2.2.0 from Jim

8 years agoFrench Math.lyx: changes by Jean-Pierre
Uwe Stöhr [Thu, 25 Feb 2016 19:38:18 +0000 (20:38 +0100)]
French Math.lyx: changes by Jean-Pierre

8 years agoWin installer: updated Portuguese translation by José
Uwe Stöhr [Wed, 24 Feb 2016 23:24:01 +0000 (00:24 +0100)]
Win installer: updated Portuguese translation by José

8 years agoMath.lyx: some fixes
Uwe Stöhr [Wed, 24 Feb 2016 23:15:54 +0000 (00:15 +0100)]
Math.lyx: some fixes

8 years agoFrench Math.lyx: translations by Jean-Pierre
Uwe Stöhr [Wed, 24 Feb 2016 23:15:00 +0000 (00:15 +0100)]
French Math.lyx: translations by Jean-Pierre

8 years agofr.po: updates by Jean-Pierre
Uwe Stöhr [Wed, 24 Feb 2016 22:54:10 +0000 (23:54 +0100)]
fr.po: updates by Jean-Pierre

8 years agoFix SIGSEGV when introducing a new shortcut (#9869)
Guillaume Munch [Mon, 22 Feb 2016 00:36:33 +0000 (00:36 +0000)]
Fix SIGSEGV when introducing a new shortcut (#9869)

removeShortcut() restores default settings, therefore was used incorrectly. I
introduce deactivateShortcuts() which only removes assignments.

Clean up a bit the lack of view / model distinction (getting rid of the crashing
code at the same time).

Repair inconsistency of the selection in the "modify" case. (regression at
717d19d3c)

Make the test for existing bindings a bit more robust. (Not perfect yet.)

Focus on the item that has just been added/modified. (cosmetic)

8 years agoDo not add -std=c++11 to CPPFLAGS (because objc does not like it)
Jean-Marc Lasgouttes [Tue, 16 Feb 2016 14:31:08 +0000 (15:31 +0100)]
Do not add -std=c++11 to CPPFLAGS (because objc does not like it)

Since at least gcc 4.6 requires it, -std=c++11 has been passed to CPPFLAGS at 39717adfd. This was deemed necessary so that tests that use the preprocessor directly (AC_CHECK_HEADER) can have the right information.

It turns out that CPPFLAGS gets passed to objc compilation too (on Mac OS X) and this create compile-time errors.

Therefore we remove the -std flag from CPPFLAGS and re-add it to a separate variable cxx11_flags that is passed to LYX_CXX_USE_REGEX.

8 years agoWin installer: updated Swedish translations by Jim
Uwe Stöhr [Sun, 21 Feb 2016 16:53:05 +0000 (17:53 +0100)]
Win installer: updated Swedish translations by Jim

8 years agoMath.lyx: revise section about subnumbering
Uwe Stöhr [Sun, 21 Feb 2016 16:46:55 +0000 (17:46 +0100)]
Math.lyx: revise section about subnumbering

thanks to Andrew Aparsloe for the hint

8 years agoAdapt forest (linguistic structure tree) to new syntax of the package
Juergen Spitzmueller [Sun, 21 Feb 2016 10:54:25 +0000 (11:54 +0100)]
Adapt forest (linguistic structure tree) to new syntax of the package
while maintaining backwards compatibility (#9967).

8 years agoWhoops on the last commit. This is the right patch.
Richard Heck [Sun, 21 Feb 2016 03:18:03 +0000 (22:18 -0500)]
Whoops on the last commit. This is the right patch.

8 years agoFix bug reported on the list by Philip Pirrip. It is possible that
Richard Heck [Sun, 21 Feb 2016 03:14:51 +0000 (22:14 -0500)]
Fix bug reported on the list by Philip Pirrip. It is possible that
paramsToDialog is called when we do not have a BufferView and so do
not have a Buffer.

8 years ago#9940 VCS now toggles buffer read-only state if locking is not active and it is enabl...
Stephan Witt [Sat, 20 Feb 2016 06:32:56 +0000 (07:32 +0100)]
#9940 VCS now toggles buffer read-only state if locking is not active and it is enabled by VC backend

8 years agocorrect whitespace
Stephan Witt [Sat, 20 Feb 2016 05:39:32 +0000 (06:39 +0100)]
correct whitespace

8 years agoSpanish modernCV.lyx: updates by Ignacio
Uwe Stöhr [Sat, 20 Feb 2016 01:39:41 +0000 (02:39 +0100)]
Spanish modernCV.lyx: updates by Ignacio

8 years agoSpanish modernCV.lyx: update the file and make it compilable
Uwe Stöhr [Fri, 19 Feb 2016 01:16:36 +0000 (02:16 +0100)]
Spanish modernCV.lyx: update the file and make it compilable

(a special preamble is necessary for Spanish)
Ignacio will translate it soon.

8 years agoSet the preamble in fixed-width font and without line breaks (#9966)
Guillaume Munch [Wed, 17 Feb 2016 21:45:44 +0000 (21:45 +0000)]
Set the preamble in fixed-width font and without line breaks (#9966)

8 years agolinguistics.lyx: re-add the \origin tag
Uwe Stöhr [Thu, 18 Feb 2016 01:00:38 +0000 (02:00 +0100)]
linguistics.lyx: re-add the \origin tag

Btw. the file is not compilable, see bug #9967

8 years agoexample files: fixes and updates by Ignacio
Uwe Stöhr [Thu, 18 Feb 2016 00:53:08 +0000 (01:53 +0100)]
example files: fixes and updates by Ignacio

8 years agoWin installer: update package installation list
Uwe Stöhr [Thu, 18 Feb 2016 00:33:04 +0000 (01:33 +0100)]
Win installer: update package installation list

8 years agoSpanish example files: updates by Ignacio (part 2/2)
Uwe Stöhr [Thu, 18 Feb 2016 00:32:37 +0000 (01:32 +0100)]
Spanish example files: updates by Ignacio (part 2/2)

8 years agotufte layouts: add new dependencies
Uwe Stöhr [Thu, 18 Feb 2016 00:32:17 +0000 (01:32 +0100)]
tufte layouts: add new dependencies

8 years agolinguistics.module: add new dependencies
Uwe Stöhr [Thu, 18 Feb 2016 00:31:51 +0000 (01:31 +0100)]
linguistics.module: add new dependencies

8 years agoes.po: fix a typo introduced by last commit
Uwe Stöhr [Thu, 18 Feb 2016 00:08:29 +0000 (01:08 +0100)]
es.po: fix a typo introduced by last commit

8 years agoSpanish example files: updates by Ignacio (part 1/2)
Uwe Stöhr [Thu, 18 Feb 2016 00:07:08 +0000 (01:07 +0100)]
Spanish example files: updates by Ignacio (part 1/2)

8 years agoes.po: updates by Ignacio
Uwe Stöhr [Wed, 17 Feb 2016 23:43:50 +0000 (00:43 +0100)]
es.po: updates by Ignacio

8 years agoIntroduce proper integer rounding function
Georg Baum [Wed, 17 Feb 2016 20:31:37 +0000 (21:31 +0100)]
Introduce proper integer rounding function

This fixes a failing unit test with 32bit gcc 4.9.3 and -O2 optimization:
It computed 9953 instead of 9954 for Length::inPixels() of value 2342.
The reason for this is probably different rounding behaviour caused by storing
the unrounded value in a processor register (uses 80bit accuracy) vs. writing
it back to memory (uses 64bit accuracy). The unrounded value is very close to
9953.5 (which is not representable as an exact IEEE floating point value).

Apart from that, having a proper function for rounding makes the code more
readable, and has the nice side effect to make Length::inPB() work for
negative lengths as well.

8 years agofiles are already part of boost
Peter Kümmel [Tue, 16 Feb 2016 10:00:34 +0000 (11:00 +0100)]
files are already part of boost

8 years agoWin installer: translation updates by Georger and Claudio
Uwe Stöhr [Mon, 15 Feb 2016 21:52:10 +0000 (22:52 +0100)]
Win installer: translation updates by Georger and Claudio

8 years agoTypo.
Kornel Benko [Mon, 15 Feb 2016 20:00:35 +0000 (21:00 +0100)]
Typo.

8 years agoPreparing a helper script to creat md5sum of a file.
Kornel Benko [Mon, 15 Feb 2016 14:24:33 +0000 (15:24 +0100)]
Preparing a helper script to creat md5sum of a file.

8 years agouse more portable ustar tar format
Peter Kümmel [Sun, 14 Feb 2016 21:25:08 +0000 (22:25 +0100)]
use more portable ustar tar format

8 years agoAdd missing boost files to source package
Peter Kümmel [Sat, 13 Feb 2016 17:34:08 +0000 (18:34 +0100)]
Add missing boost files to source package

and remove Visual Studio files, we build with CMake on Windows.

8 years agoBack to development
Scott Kostyshak [Sat, 13 Feb 2016 03:25:04 +0000 (22:25 -0500)]
Back to development

8 years agoThis is LyX 2.2.0beta2 2.2.0beta2
Scott Kostyshak [Sat, 13 Feb 2016 03:23:19 +0000 (22:23 -0500)]
This is LyX 2.2.0beta2

8 years agoUpdate ANNOUNCE for beta2
Scott Kostyshak [Sat, 13 Feb 2016 02:58:38 +0000 (21:58 -0500)]
Update ANNOUNCE for beta2

8 years agoMinor typo in ANNOUNCE
Scott Kostyshak [Sat, 13 Feb 2016 02:58:28 +0000 (21:58 -0500)]
Minor typo in ANNOUNCE

8 years agoUpdate pt_BR.gmo after 7c08d433e
Georg Baum [Fri, 12 Feb 2016 19:14:16 +0000 (20:14 +0100)]
Update pt_BR.gmo after 7c08d433e

As requested by Georger

8 years agoWin installer: several fixes
Uwe Stöhr [Fri, 12 Feb 2016 01:52:36 +0000 (02:52 +0100)]
Win installer: several fixes

- fix broken weblinks
- remove unused includes

8 years agoWin installer: get rid of lyx.nsi
Uwe Stöhr [Fri, 12 Feb 2016 01:51:38 +0000 (02:51 +0100)]
Win installer: get rid of lyx.nsi

This file is not really helpful for daily work. Its content is now directly in the installer script.

8 years agoWin installer: re-add encoding for slovak.nsh
Uwe Stöhr [Fri, 12 Feb 2016 01:49:25 +0000 (02:49 +0100)]
Win installer: re-add encoding for slovak.nsh

8 years agoWin installer: French correction
Uwe Stöhr [Thu, 11 Feb 2016 22:48:28 +0000 (23:48 +0100)]
Win installer: French correction

8 years agoWin installer: updated Italian
Uwe Stöhr [Thu, 11 Feb 2016 22:36:01 +0000 (23:36 +0100)]
Win installer: updated Italian

8 years agopt_BR.po: updates from Georger
Uwe Stöhr [Thu, 11 Feb 2016 22:30:15 +0000 (23:30 +0100)]
pt_BR.po: updates from Georger

8 years agoWin installer: update language files
Uwe Stöhr [Thu, 11 Feb 2016 22:29:42 +0000 (23:29 +0100)]
Win installer: update language files

8 years agoRemove date from LFUNs.lyx as discussed.
Georg Baum [Thu, 11 Feb 2016 20:22:07 +0000 (21:22 +0100)]
Remove date from LFUNs.lyx as discussed.

Also update format to 506.

8 years agoAdd missing files to source package
Georg Baum [Thu, 11 Feb 2016 20:04:58 +0000 (21:04 +0100)]
Add missing files to source package

The windows build for beta1 showed that some files were missing by accident.

8 years agoUpdate sk.po
Kornel Benko [Thu, 11 Feb 2016 08:19:09 +0000 (09:19 +0100)]
Update sk.po

8 years agoSet C++11 option defaulting to 'AUTO' as it is on autotools too.
Kornel Benko [Thu, 11 Feb 2016 08:03:07 +0000 (09:03 +0100)]
Set C++11 option defaulting to 'AUTO' as it is on autotools too.

Nothing changes for already cached values.
With fresh build-dir and in 'AUTO'-mode we try to determine if the c++ compiler
is able to use this feature.

8 years agoWin installer: some fixes and improvements
Uwe Stöhr [Thu, 11 Feb 2016 00:33:34 +0000 (01:33 +0100)]
Win installer: some fixes and improvements

- fixed typos and updated translation
- support for Krita
- updated support for Gimp
- updated backup detection for TeXLive (generic detection always works independently)
- safeguard for a variable issue

8 years agoBack to development
Scott Kostyshak [Wed, 10 Feb 2016 02:41:02 +0000 (21:41 -0500)]
Back to development

8 years agoThis is LyX 2.2.0beta1 2.2.0beta1
Scott Kostyshak [Wed, 10 Feb 2016 02:38:47 +0000 (21:38 -0500)]
This is LyX 2.2.0beta1

8 years agoUpdate docs to 2.2.0beta1 format
Scott Kostyshak [Wed, 10 Feb 2016 02:38:47 +0000 (21:38 -0500)]
Update docs to 2.2.0beta1 format

8 years agoUpdate NEWS for 2.2.0beta1
Scott Kostyshak [Wed, 10 Feb 2016 00:30:35 +0000 (19:30 -0500)]
Update NEWS for 2.2.0beta1

8 years agoUpdate ANNOUNCE for 2.2.0beta1
Scott Kostyshak [Wed, 10 Feb 2016 00:19:12 +0000 (19:19 -0500)]
Update ANNOUNCE for 2.2.0beta1

8 years agoRELEASE-NOTES: document tabular-feature change
Scott Kostyshak [Wed, 10 Feb 2016 00:13:43 +0000 (19:13 -0500)]
RELEASE-NOTES: document tabular-feature change

8 years agoDo not save \origin when \save_transient_properties is false (#9958)
Guillaume Munch [Wed, 3 Feb 2016 18:42:04 +0000 (18:42 +0000)]
Do not save \origin when \save_transient_properties is false (#9958)

\origin is a transient property in the sense that in a collaborative context
each co-author is going to have a different value for it. Moreover, \save_origin
is a global (lyxrc) setting that cannot yet be deactivated for a single file,
but one author's setting is going to impact other authors, even those who have
set save_origin=false.

There is only one location where lyxrc.save_origin produces an effect, modified
by this patch. With this patch, everything happens as if lyxrc.save_origin was
false whenever save_transient_properties=false.

This is not a file format change. When a file has
save_transient_properties=false but an origin is set (for instance a file
produced before this patch) then the origin produces its effect before the file
is saved. This produces the same effect as if the user decided to disable
save_origin between two sessions.

8 years agoGet rid of use_preview_ in various insets
Jean-Marc Lasgouttes [Wed, 3 Feb 2016 13:50:00 +0000 (14:50 +0100)]
Get rid of use_preview_ in various insets

This concerns InsetPreview, InsetIPA and InsetMathHull.

Caching such a value is bad when opening the same buffer in two views.
In this case, it is not necessary to remember use_preview_ at all,
actually.

Also remove private member dim_ which is not used and remove some trailing whitespace.

Fixes bugs #9085 abd #9957.

8 years agoDo not record undo in the tabularFeatures helper
Jean-Marc Lasgouttes [Mon, 8 Feb 2016 17:19:24 +0000 (18:19 +0100)]
Do not record undo in the tabularFeatures helper

Since the low-level version of tabular features is only called by the high-level one, it does not make sense to record undo there. It is much better to do it once in the high-level handler, rather than 37 times (yes!) at lower level when the tabular GUI calls tabular-feature with all the settings at once.

With large tables, this avoids to keep 37 copies of the table in Undo stack.

As an added bonus, this fixes bug #9960.

8 years agoWin installer: prepare for beta 1
Uwe Stöhr [Mon, 8 Feb 2016 23:31:57 +0000 (00:31 +0100)]
Win installer: prepare for beta 1

- also add support to detect JabRef 3.x
- also add support to detect Pandoc
- some minor improvements

8 years agoItalian doc files: some updates from Claudio
Uwe Stöhr [Mon, 8 Feb 2016 20:09:01 +0000 (21:09 +0100)]
Italian doc files: some updates from Claudio

8 years agoMake ja/splash.lyx compilable again.
Kornel Benko [Mon, 8 Feb 2016 10:02:34 +0000 (11:02 +0100)]
Make ja/splash.lyx compilable again.

Using a second language (english) leads to errors if not using babel.

8 years agoWin installer: new Brazilian translation
Uwe Stöhr [Fri, 5 Feb 2016 00:31:42 +0000 (01:31 +0100)]
Win installer: new Brazilian translation

8 years agoInsetBox.cpp: fix bug #8712
Uwe Stöhr [Thu, 4 Feb 2016 23:49:17 +0000 (00:49 +0100)]
InsetBox.cpp: fix bug #8712

8 years agoAllow breaking a row element at a leading/trailing space
Jean-Marc Lasgouttes [Tue, 19 Jan 2016 11:02:43 +0000 (12:02 +0100)]
Allow breaking a row element at a leading/trailing space

When an inset is separated from the adjacent string by a space, it is
reasonable to be able to break the string after the space.
Unfortunately, QTextLayout does not do that.

This patch reverts the workaround inserted in 71378268 and replaces it
with a different trick: the string is enlosed between a pair of
zero-width non breaking space characters, so that the leading/trailing
spaces are now normal spaces, where QTextLayout will agree to break
the string.

    Fixes bug #9921 for good.

8 years agoWindows installer: updated translation by Koji
Uwe Stöhr [Wed, 3 Feb 2016 23:13:21 +0000 (00:13 +0100)]
Windows installer: updated translation by Koji

- also add a note

8 years agoFrench Tutorial.lyx: update by Jean-Pierre
Uwe Stöhr [Wed, 3 Feb 2016 20:53:50 +0000 (21:53 +0100)]
French Tutorial.lyx: update by Jean-Pierre

8 years agoJapanese UserGuide.lyx: updates by Koji
Uwe Stöhr [Wed, 3 Feb 2016 20:46:32 +0000 (21:46 +0100)]
Japanese UserGuide.lyx: updates by Koji

8 years agoWhen selecting whole row, reset properly the pit()
Jean-Marc Lasgouttes [Mon, 1 Feb 2016 15:56:59 +0000 (16:56 +0100)]
When selecting whole row, reset properly the pit()

Since different cells in a row can have different number of paragraph, take care of setting cur.pit() when selecting a row/column.

Fixes bug #9955

8 years agoNew Brazilian splash.lyx from Georger
Uwe Stöhr [Wed, 3 Feb 2016 00:24:58 +0000 (01:24 +0100)]
New Brazilian splash.lyx from Georger

- therefore split Portuguese into Brazilian and Portugal

8 years agopt_BR.po: update by Georger
Uwe Stöhr [Wed, 3 Feb 2016 00:10:32 +0000 (01:10 +0100)]
pt_BR.po: update by Georger

8 years agoia.po: repair 4 c-format errors
Uwe Stöhr [Wed, 3 Feb 2016 00:04:42 +0000 (01:04 +0100)]
ia.po: repair 4 c-format errors

8 years agoMath.lyx: remove a misleading info
Uwe Stöhr [Tue, 2 Feb 2016 23:51:50 +0000 (00:51 +0100)]
Math.lyx: remove a misleading info

mathed simply does not yet support \parbox

8 years agoacmsiggraph.layout: revert c1e0b243 partly
Uwe Stöhr [Tue, 2 Feb 2016 23:03:55 +0000 (00:03 +0100)]
acmsiggraph.layout: revert c1e0b243 partly

8 years agoia.po: update by Giovanni
Uwe Stöhr [Tue, 2 Feb 2016 22:43:47 +0000 (23:43 +0100)]
ia.po: update by Giovanni

8 years agoTranslate a few sentences in it/splash.lyx
Enrico Forestieri [Tue, 2 Feb 2016 00:41:34 +0000 (01:41 +0100)]
Translate a few sentences in it/splash.lyx

8 years agoctest export tests: document requirements.
Günter Milde [Mon, 1 Feb 2016 22:56:37 +0000 (23:56 +0100)]
ctest export tests: document requirements.

Add suggestion for policy for "reuse" of documentation files.

8 years agoSpanish splash.lyx: translation from Ignacio
Uwe Stöhr [Mon, 1 Feb 2016 20:41:08 +0000 (21:41 +0100)]
Spanish splash.lyx: translation from Ignacio

8 years agoUkrainian translations: updates by Yuri
Uwe Stöhr [Mon, 1 Feb 2016 20:32:56 +0000 (21:32 +0100)]
Ukrainian translations: updates by Yuri

8 years agoFrench translations: updates by Jean-Pierre
Uwe Stöhr [Mon, 1 Feb 2016 20:31:36 +0000 (21:31 +0100)]
French translations: updates by Jean-Pierre

8 years agoMerge branch 'master' of git.lyx.org:lyx
Uwe Stöhr [Sun, 31 Jan 2016 20:27:47 +0000 (21:27 +0100)]
Merge branch 'master' of git.lyx.org:lyx

8 years agosplash.lyx: add note for Linux installations (part 2/2)
Uwe Stöhr [Sun, 31 Jan 2016 20:26:20 +0000 (21:26 +0100)]
splash.lyx: add note for Linux installations (part 2/2)

- this topic appears from time to time so it is useful to add a note.
- update also a non-existing menu name

8 years agoDocument need to use same subset if --rerun-failed
Scott Kostyshak [Sun, 31 Jan 2016 20:06:23 +0000 (15:06 -0500)]
Document need to use same subset if --rerun-failed

When running the tests with ctest, --rerun-failed can be used to run
the tests that failed on the previous run. However, the same subset
must be specified because it is the test numbers that are used to
index which tests failed on the previous run. For example, it would
be incorrect to do the following:

  ctest -R export
  ctest --rerun-failed

The following is correct:

  ctest -R export
  ctest -R export --rerun-failed

8 years agosplash.lyx: add note for Linux installations (part 1)
Uwe Stöhr [Sun, 31 Jan 2016 20:16:29 +0000 (21:16 +0100)]
splash.lyx: add note for Linux installations (part 1)

- this topic appears from time to time so it is useful to add a note.
- update also a non-existing menu name

8 years agominor cleanup
Guillaume Munch [Sun, 31 Jan 2016 16:02:18 +0000 (16:02 +0000)]
minor cleanup

8 years agoSpanish Tutorial.lyx and Intro.lyx: updates by Ignacio
Uwe Stöhr [Sun, 31 Jan 2016 14:28:45 +0000 (15:28 +0100)]
Spanish Tutorial.lyx and Intro.lyx: updates by Ignacio

8 years agoOpen tex2lyx input files with correct encoding
Georg Baum [Sun, 31 Jan 2016 11:54:59 +0000 (12:54 +0100)]
Open tex2lyx input files with correct encoding

We open the input file now twice: The first time in latin1 encoding to read
the document encoding from the preamble. This does always work, since
traditional TeX does not allow non-ASCII contents without an encoding changing
command (except for comments, but we do not need them, and using latin1 rather
than utf8 ensures that they do not produce an iconv exception, but are simply
recored with wrong characters), and we do detect the utf8 based TeX engines
XeTeX and LuaTeX as well. The second time we open the file directly with the
document encoding.

This fixes a few tex2lyx tests on OS X, since changing the encoding of an
open file steam does not work with clang on OS X. Files using more than one
encoding are still broken, but all single-encoding files are fixed now.

8 years agoAvoid encoding changes of open streams if possible
Georg Baum [Sun, 31 Jan 2016 11:49:17 +0000 (12:49 +0100)]
Avoid encoding changes of open streams if possible

Changing the codecvt_facet of a file stream after the file has been opened
does not work with clang on OS X. Therefore we avoid it if possible (i. e. the
new encoding is the same as the old one).

8 years agoDo not use static objects in Preamble
Georg Baum [Sun, 31 Jan 2016 11:37:22 +0000 (12:37 +0100)]
Do not use static objects in Preamble

This does not make any difference currently, since the only instance of the
Preamble class is a global one, but it is cleaner and will be needed for
parsing the encoding with a second Preamble instance.

8 years agoSpanish Tutorial.lyx: remove non-existing menu
Uwe Stöhr [Sat, 30 Jan 2016 19:36:48 +0000 (20:36 +0100)]
Spanish Tutorial.lyx: remove non-existing menu