Vincent van Ravesteijn
8164fea772
Encodings: Use BufferEncodings where needed
2013-09-29 15:26:22 +02:00
Vincent van Ravesteijn
88d0939166
Encodings: Make members of CharInfo private
2013-09-29 15:26:20 +02:00
Stephan Witt
2e23774c6c
Encodings: Split off the functions that need Buffer
...
This is needed to be able to use Encodings in tex2lyx without the need to
compile Buffer as well, or to use a TEX2LYX define.
2013-09-29 15:26:18 +02:00
Vincent van Ravesteijn
01e94f5e03
Encodings: Add CharInfo to Encoding.h
2013-09-29 15:26:17 +02:00
Jean-Marc Lasgouttes
72c13323d8
Remove dependency on NO_LAYOUT_CSS #define in Layout.cpp
...
Remove all traces of this #define.
2013-09-29 15:26:15 +02:00
Jean-Marc Lasgouttes
fa5519d4f0
Move tex2lyx dummy implementations in their own file.
...
Also try to document their use.
2013-09-29 15:26:13 +02:00
Jean-Marc Lasgouttes
9a1e972edb
Remove dependency on TEX2LYX #define in ModuleList.cpp
2013-09-29 15:26:12 +02:00
Jean-Marc Lasgouttes
aef31d666e
Remove dependency on TEX2LYX #define in Lexer.cpp
2013-09-29 15:26:10 +02:00
Stephan Witt
b293bd3670
cosmetics: remove unneeded std:: prefix
...
Amended-by: Vincent van Ravesteijn <vfr@lyx.org>
2013-09-29 15:15:17 +02:00
Juergen Spitzmueller
1ace930f7d
Handle is_child runparam in preview (bug #8445 )
2013-09-29 14:14:15 +02:00
Juergen Spitzmueller
6781db79c5
InsetSpace and InsetVSpace are clickable (part of #8847 )
2013-09-22 12:49:43 +02:00
Juergen Spitzmueller
5686ad11f3
Fix loop when trying to export a read-only document
2013-09-16 10:13:16 +02:00
Juergen Spitzmueller
00cd9ce4a9
remove unused and error-prone function
2013-09-15 17:19:51 +02:00
Juergen Spitzmueller
b7c1bbfb0b
Export as: Further cleanup
2013-09-14 17:53:57 +02:00
Juergen Spitzmueller
2535f2f271
Further localization fixes
2013-09-14 15:40:57 +02:00
Juergen Spitzmueller
e100536d59
Fix 'Export As...' in non-English localizations
...
It is always a bad idea to compare a localized string. I think the whole method Formats::getFormatFromPrettyName (which is now unused) should be ditched. This is bound to fail.
2013-09-14 13:11:47 +02:00
Juergen Spitzmueller
53445f7b99
Localize 'Export As...' dialog
2013-09-14 12:36:58 +02:00
Juergen Spitzmueller
151158f191
Fix string (patch by Jean-Pierre Chretien)
2013-09-14 11:39:33 +02:00
Georg Baum
592deaa423
Remove layout and tex2lyx tests from make check
...
These tests need a built and configured LyX, so they do not work in the
distcheck target. They can now be called with make alltests.
2013-09-09 21:00:11 +02:00
Vincent van Ravesteijn
72f70cbe5e
Fix bug #8830 : Compile error with disabled NLS
...
The Messages::gui_lang_ variable is instantiated in the '#ifdef ENABLE_NLS' block. To prevent compile problems, we should also instantiate it when NLS is disabled.
2013-09-09 16:25:53 +02:00
Jean-Marc Lasgouttes
56e2448546
Fix compilation on Solaris 11.1 (bug #8783 )
...
Make sure that the configure script only checks features using the C++ compiler.
Also get rid of our last C files, since they are not compiled nor distributed anyway.
2013-09-09 11:02:14 +02:00
Kornel Benko
f57e8b98ea
Cmake build tests: Label also layoyt tests
2013-09-07 09:27:40 +02:00
Kornel Benko
f2553ebf6c
Cmake build tests: Threadsafety and test-labeling
...
The tests are now more robust if ctest uses '-j' (number of threads) parameter.
a.) keytests are running in sequence and in one thread only, no other thread running
b.) tex2lyx tests are locking in respect to each other
c.) Test gets one or more labels, so that we can select
ctest -L url
to run tests labeled url
d.) New macro settestlabel() to add labels to a test
2013-09-07 09:25:02 +02:00
Jean-Marc Lasgouttes
78780e7b38
Allow master view/update when current buffer is the master
2013-09-01 20:14:44 +02:00
Juergen Spitzmueller
d1a77eadc1
Load AMS packages before newtxmath ( #8824 )
2013-09-01 10:21:21 +02:00
Richard Heck
967e0db9e0
Fix obvious oversight.
2013-08-30 13:16:23 -04:00
Richard Heck
f1d1c06174
Comments only.
2013-08-30 13:03:53 -04:00
Juergen Spitzmueller
f9411f1f26
Catch uncodable character problem
2013-08-30 11:28:15 +02:00
Kornel Benko
29381d2b52
Copyright
2013-08-26 22:06:01 +02:00
Tommaso Cucinotta
cd84a3024d
Now an attempt to export into a folder without write permission causes LyX to automatically pop-up the "Export As" dialog (addressing #3402 ).
2013-08-26 11:28:07 +01:00
Kornel Benko
e6f2598323
Cmake build tests: Unify use of userdir
...
Forgotten in commit 788e2b1ac8
2013-08-25 11:45:26 +02:00
Kornel Benko
788e2b1ac8
Cmake build tests: Unify use of userdir
...
While some test runns lyx-exe, we need userdir be
different from default. All relevant tests should use the same directory.
2013-08-25 11:41:10 +02:00
Tommaso Cucinotta
0b6edb0b2f
Revert "Let non-ASCII chars within regexp insets match their occurrence within TEXT, rather than MATHS (seems the most recurrently needed scenario)."
...
This reverts commit 6a3792bdbb
.
2013-08-24 17:42:14 +01:00
Tommaso Cucinotta
203dab97c3
Now the regexp insets entered in Advanced F&R search/replace boxes do not preview anymore independently, unless embedded/nested within other math elements.
...
Fixing crash as described in #7805 .
2013-08-24 13:06:05 +01:00
Kornel Benko
c5d0e818e6
Cmake tests renaming. tex2lyx2lyx/roundtrip/ => tex2lyx/cmplyx/
...
This one was forgotten
2013-08-23 02:19:09 +02:00
Kornel Benko
bbe183b087
Cmake testing: Added test_biblio
2013-08-07 15:00:03 +02:00
Kornel Benko
723cda15d3
tex2lyx roundtrip: ignore version string while comparing lyx files
2013-08-04 16:47:03 +02:00
Kornel Benko
d3245d4cd2
tex2lyx roundtrip: expand diff to bu usefull to files created by lyx
...
Otherwise the comparision used by tex2lyx2lyx-tests would fail
2013-08-04 15:57:01 +02:00
Kornel Benko
39bef61e84
tex2lyx roundtrip: Ignore the lyx-version which created
...
When comparing the contents of two lyx-files, we should not care about the specific version. Later, this can be extended to also not care whether the file is produced by tex2lyx, lyx2lyx, or LyX.
Modified-By: Vincent van Ravesteijn <vfr@lyx.org>
2013-08-04 15:42:51 +02:00
Juergen Spitzmueller
138bb4d14f
Fix the fix to the decimal separator problem with Qt5
2013-07-27 11:18:16 +02:00
Enrico Forestieri
92863de517
Fix Qt5 decimal separator bug
...
Always use '.' as the decimal separator in the GUI, because we
call setlocale(LC_NUMERIC, "C") in setLocale() (GuiApplication.cpp).
2013-07-26 20:52:44 +02:00
Tommaso Cucinotta
b32ce2cf08
When agreeing to wrap-around, but nothing is found, keep the cursor where it originally was.
...
Now this is coherent with Advanced F&R.
2013-07-22 23:55:43 +01:00
Tommaso Cucinotta
7081fed380
Fixed a number of bugs in "preserve first case" feature of Advanced F&R (addressing #8383 ).
2013-07-22 10:39:11 +01:00
Juergen Spitzmueller
8a15fb0593
Fix setting of is_child runparam if grandchildren are involved
2013-07-21 21:33:34 +02:00
Juergen Spitzmueller
2f2841a016
Establish missing connections to change_adaptor
2013-07-21 19:27:57 +02:00
Tommaso Cucinotta
2a86379ea7
Adding wrap-around pop-up question to simple find and replace dialog (fixing enhancement request #1262 ).
2013-07-21 17:51:53 +01:00
Stephan Witt
bb2a75b778
add frameworks to linker flags for Mac OS X
2013-07-20 21:24:56 +02:00
Juergen Spitzmueller
6445cd9df4
Bug in 'Use non-tex fonts' checkbox auto-toggling ( #8717 )
2013-07-20 16:15:47 +02:00
Juergen Spitzmueller
98dd9e9b91
Fix encoding problems in citation labels by using docstring (not string) where appropriate
2013-07-20 16:05:52 +02:00
Richard Heck
d938284fb3
Fix logic error that led to bug #8777 . I have no idea what I was
...
previously thinking.
2013-07-20 09:56:34 -04:00
Juergen Spitzmueller
d788d497aa
Trivial fix: escape ampersands in file names before pushing to tab header ( #8757 )
2013-07-19 15:55:56 +02:00
Josh Hieronymus
1dcd6ee5e7
Update system identifier in DOCTYPE of MathML-including exported XHTML.
...
From Josh Hieronymous.
(cherry picked from commit 4f0c81937537ca3bf92097e266d367290d6419a9)
2013-07-19 09:45:10 -04:00
Juergen Spitzmueller
49c89d838b
Fix state of certain language packages (polyglossia, japanese) in children ( #8779 )
2013-07-18 09:26:56 +02:00
Georg Baum
c3aad9624f
Fix tests which were forgotten in c7cdac6561
.
2013-07-17 21:08:03 +02:00
Richard Heck
a34ce7ca85
Fix crash reported by Scott on the list. The test on latexname() was
...
obviously wrong. We want to know if we are in the same layout, and
that is not enough.
2013-07-17 11:09:03 -04:00
Juergen Spitzmueller
6f9a272ca3
Fix toggling of 'misc' font options (bug #8764 )
2013-07-17 08:30:42 +02:00
Uwe Stöhr
158571ea00
LaTeXFeatures.cpp: fix bug #8731
...
- we must assure that the package mhchem is loaded before the package esint
2013-07-16 23:16:09 +02:00
Uwe Stöhr
c7cdac6561
Preamble.cpp: fix bug #8723
2013-07-16 23:07:46 +02:00
Georg Baum
85e635d2e3
Fix failing test caused by 89b2c54c00
.
...
Actually, the old reference was wrong, since it misparsed IPA short cuts as
spaces. I verified that the re-exported .tex is correct.
2013-07-16 22:53:25 +02:00
Scott Kostyshak
5225821242
Prevent zombie processes ( #8774 )
...
Using Systemcall::startscript() with Starttype::DontWait used to create
zombie processes, as nobody would collect them. This patch starts those
processes as detached, hence preventing them from becoming zombies.
In addition to #8774 , this bug was also reported here:
https://bugs.launchpad.net/ubuntu/+source/lyx/+bug/1096666
Patch from Guy Rutenberg. For reference, see this email thread:
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg180034.html
2013-07-16 01:02:28 -04:00
Georg Baum
c0ea37f337
Fix image pasting regression
...
I introduced a regression in c14b9e67
for pasting images:
If an image is on the clipboard both as PNG and HTML with just an url,
but no plain text, pasting would fail. The reason for this was that
text contents was detected (the HTML code), nd preferred, but actually
pasting it resulted in an empty string, since the HTML import could not
handle the url This error was not checked.
The solution is first to try text paste if both text and image content
is present, and then try image paste if the text failed.
2013-07-13 22:44:20 +02:00
Juergen Spitzmueller
6e69a61d00
Fix problem with unbalanced braces in XeTeX output (bug #8765 )
2013-07-13 22:44:09 +02:00
Juergen Spitzmueller
c2cea31aea
Properly nest ulem commands within other font changes
...
This reverts the wrong fix to #8424 which caused #8733 and fixes both problems properly
2013-07-13 22:43:39 +02:00
Georg Baum
89b2c54c00
Fix wrong space symbols ( #8729 )
...
The main part of the fix (unicodesymbols) is from Jürgen. This commit fixes
tree problems:
- \; etc. were also used in text mode, but are math only
- all of those glyphs need to be forced with utf8
- actually, \; etc. are not the correct macros, since the encoded spaces are
breakable, but the math spaces are all protected. The sapce symbols are not
defined in the utf8 encodings.
2013-07-13 22:43:31 +02:00
Julien Rioux
73368ed2d9
Fix pdf format conversion
...
When calling the default converter (convert) we pass the format on the
command line. In LyX we have various pdf, pdf2, pdf3, etc. formats all
representing PDF. We need to strip to trailing digit in the format string
otherwise the format is not understood by convert.
2013-07-13 16:15:13 +02:00
Julien Rioux
096204e23f
Fix JPEG format detection
...
Detect JPEG files using the magic number FF D8 (so-called SOI marker)
instead of the string JFIF, which does not appear in all JPEG files.
2013-07-13 16:14:58 +02:00
Georg Baum
822e171762
Fix inconsistent version in .lyx files ( #7951 )
...
LyX, lyx2lyx and tex2lyx produce now all the same version indicator consisting
only of the major and minor version. It is not decided yet whether future
development versions will add a -dev suffix, but for 2.1.0 this change fixes
the inconsistencies.
2013-07-13 16:02:26 +02:00
Pavel Sanda
b76b6575bd
Add introduction to cursor related classes, written by JMarc.
2013-07-01 09:52:06 -07:00
Jean-Marc Lasgouttes
878a86ff46
Document the Bidi class a bit
...
This is from information given by the auther (Dekel Tsur).
2013-06-28 15:18:17 +02:00
Richard Heck
30d3fcd640
Fix bug #8746 : Images have to have alt tags.
2013-06-12 17:25:39 -04:00
Vincent van Ravesteijn
d15bc5ef53
Update tex2lyx testcases to latest fileformat
2013-06-04 21:56:51 +02:00
Jean-Marc Lasgouttes
deb6e16e79
Move a Qt workaround to the Qt frontend.
2013-06-04 12:08:36 +02:00
Vincent van Ravesteijn
9a6c402a82
Make sure numeric conversions are not locale dependent
...
In [19024f72\lyxgit] this line was removed. Later this caused that floats were converted to strings using ','s instead of '.'s. Readding this line fixes this.
2013-06-03 17:58:06 +02:00
Jean-Marc Lasgouttes
a2546357eb
Update chunk handling to use new inset
...
At the same time, rename parse_noweb to parse_chunk.
2013-06-03 12:36:35 +02:00
Pavel Sanda
63c193afef
Remove years forgotten files.
...
http://marc.info/?l=lyx-devel&m=136956959518828&w=2
http://marc.info/?l=lyx-devel&m=120506622513617&w=2
2013-06-03 02:35:32 -07:00
Vincent van Ravesteijn
83399dcb7a
PrefsUi: Remove unneeded widths
2013-06-02 23:30:06 +02:00
Richard Heck
bbce65b68e
Initialize initial_value_.
2013-06-02 09:41:09 -04:00
Vincent van Ravesteijn
129d43c5c9
Correctly find the gmo files in build dir
...
The path to the lyx binary is either <build_dir>/bin (CMake) or
<build_dir>/src (autotools). This means the po directory can be found one
directory up.
2013-06-02 15:32:35 +02:00
Juergen Spitzmueller
c9ea13ee99
Bump RC format for commit 8f287f5ffa
2013-06-02 12:06:01 +02:00
Kornel Benko
22d52f5f08
cmake: Use provided gmo-files if platform lacks python or gettext tools.
...
Running lyx from the build-directory now searches for the gmo-files
first in the build dir and then in source dir
2013-06-02 11:38:27 +02:00
Richard Heck
2374229cc6
Introduce InitialValue tag for counters. Fixes bug #8707 .
2013-06-01 17:42:08 -04:00
Juergen Spitzmueller
8f287f5ffa
Implement option to set a global default output format for dics with non-tex fonts ( #8706 )
2013-06-01 16:58:34 +02:00
Juergen Spitzmueller
0972b15ee2
Typo.
2013-06-01 10:26:03 +02:00
Kornel Benko
823ed6cf17
Remove ugly multiple definition hack (Georg)
...
Enable APPLE again for test_layouts (Missed in commit ...48d3518d6d)
2013-06-01 09:42:36 +02:00
Georg Baum
12554c93d8
Remove ugly multiple definition hack
...
Since 00387b2a38
it is possible to construct a dummy Messages object
which does not translate at all. With the old gettext implementation, a
Messages object without a defined language would have used a language from
an environment variable. Therefore, the duplicate definition of _() is no
longer needed. This gettext removal was really a good idea!
2013-05-31 22:07:14 +02:00
Juergen Spitzmueller
83d0b3bd1a
Re-introduce linebreak after caption, as in LyX 1.6 ( #8514 )
2013-05-31 16:20:00 +02:00
Juergen Spitzmueller
1e42af6c44
Windows compilation fix
2013-05-31 14:27:39 +02:00
Jean-Marc Lasgouttes
00387b2a38
Fix crash at startup for tex2ylx and lyxclient
...
This is done by handling explicitly a dummy Message object, where no parsing of mo file is attempted. This avoids in turn that the lyxerr object is used during initialization of a global dummy Message object.
2013-05-31 11:59:52 +02:00
Jean-Marc Lasgouttes
3a985a228c
tex2lyx does not use LYXERR, but basic cerr stream
2013-05-31 11:38:41 +02:00
Juergen Spitzmueller
a2b34f66ea
revert unintended commit
2013-05-31 11:07:48 +02:00
Juergen Spitzmueller
2c1679e958
Small UI polishment
2013-05-31 10:45:21 +02:00
Stephan Witt
3f59d7e2cc
add toFilesystemEncoding for --binary-dir argument
2013-05-31 09:00:28 +02:00
Uwe Stöhr
bf7af9fd07
Package.cpp: correctly quote configure call
...
- fixes bug #8711
2013-05-31 04:23:40 +02:00
Jean-Marc Lasgouttes
149b574b07
Read the right .gmo files when running in place
...
With gettext, we have been forced to install .mo files at the right place in order to read them. Now that we have our code, the situation changes.
* Add new method Package::messages_file(code), when returns the right path, depending on whether we are running in place.
* In Messages class use that intead of the existing one.
2013-05-30 22:10:01 +02:00
Vincent van Ravesteijn
a3c864102a
CMake: Remove libintl
2013-05-30 22:10:01 +02:00
Jean-Marc Lasgouttes
d7e2705228
Get rid of all traces of libintl.
...
This requires to re-add some tests in configure.ac.
Note that the code to generate a Makefile in po/ has been kept.
2013-05-30 22:10:01 +02:00
Jean-Marc Lasgouttes
19024f7255
Implement native reading of mo files.
...
Get the default language by a mix of QLocale and LyXRC::gui_language
Known limitations:
* encoding is supposed to be UTF-8 (the charset parameter is checked);
* context is not handled (implemented differently in LyX);
* plural forms not implemented (not used for now in LyX);.
* tThe byte endianness of the machine on which the .mo file have been
built is expected to be the same as the one of the machine where this
code is run.
2013-05-30 22:10:01 +02:00
Uwe Stöhr
6baa65119b
Merge branch 'master' of git.lyx.org:lyx
2013-05-30 18:15:57 +02:00
Uwe Stöhr
f33454b3c7
LaTeXFeatures.cpp: add rsphrase
...
- also modify the rsphrase.module
- correct naming scheme for the bicaption.module
2013-05-30 18:15:44 +02:00
Richard Heck
1b6c1380bb
Revert "version.h: tex2lyx can have the same actual fileformat"
...
This reverts commit ca66e175c9
.
2013-05-30 12:10:27 -04:00