Commit Graph

29618 Commits

Author SHA1 Message Date
Pavel Sanda
7b1b9823ff Add comment in lstrings.h 2012-07-15 23:25:58 +02:00
Jean-Marc Lasgouttes
16fd47ad8f Fix bug #7741: incorrect locale when starting R from LyX?
The goal here is to get rid of the old code that modified variables
LANGUAGE and LC_ALL, therefore creating the problems mentionned
in the ticket.

In the new system, there is no explicit "GUI" message handler, that
needs to be reset at each language change. Instead, getGuiMessages
calls getMessages with the correct parameter. This allows to simplify
greatly the code and to remove a lot of old cruft.
2012-07-15 22:22:10 +02:00
Jean-Marc Lasgouttes
f6b1c24b99 Fix bug #5204: Undo removes text selection
This commit does a bit more than fix selection, since it saves the full cursor state
in the undo stack. This means that undo now restores:
* the selection
* the current font
* transient mark (shall we keep this one?), logical position...

In order to do that, it introduces an intermediate class between Cursor and DotIterator: CursorData.
The new inheritance diagram is thus
  DocIteraator -> CursorData -> Cursor

CursorData contains all the members of Cursor that define the current position, but not the stuff
related to current view of dispatch mechanism. It may make sense in the future to move members
between CursorData and Cursor and to move some member functions to CursorData.

Now UndoElement uses CursorData for cur_before and cur_after, but not for the cell. The undo API uses
also CursorData instead of DocIterator.
2012-07-15 18:16:09 +02:00
Richard Heck
20519c9619 Add "Close Current View" to the context menu, as requested by
Andrew Parsloe.
2012-07-14 22:16:13 -04:00
Richard Heck
a0afcdb391 LFUN_CLOSE_TAB_GROUP does exactly the same thing as
LFUN_BUFFER_CLOSE_ALL if there's only one tab group open, so there's
no need to enable it in that case.
2012-07-14 22:13:40 -04:00
Uwe Stöhr
3c4031427d APA.lyx: improve a comment 2012-07-14 16:05:06 +02:00
Uwe Stöhr
062c3a794a Spanish docs update
- Spanish Additional.lyx: update for trunk only
2012-07-13 00:52:49 +02:00
Uwe Stöhr
4396c14dc0 add new Spanish examples
- Spanish europeCV.lyx and modernCV.lyx: new files
- English europeCV.lyx: replace TeX-code by LyX's \nocite feature
2012-07-13 00:19:42 +02:00
Uwe Stöhr
a7e618df61 es.po: updates from Ignacio for trunk 2012-07-12 23:57:07 +02:00
Richard Heck
5400ae0720 Fix bug #8160 by updating the dtd for MathML. 2012-07-10 18:07:07 -04:00
Richard Heck
17c5791454 Fix stupid typo. 2012-07-10 17:11:58 -04:00
Georg Baum
af322ba9b4 Make CJK.lyx exportable.
If there was an encoding set by the inputenc package, it must not be ignored.
Now all tex2lyx test cases can be exported to .tex again by LyX (although
there are still some differences in the .lyx output).
2012-07-08 22:35:22 +02:00
Georg Baum
c3731b25da Fix tex2lyx -roundtrip for XeTeX documents 2012-07-08 21:35:40 +02:00
Uwe Stöhr
f0335cef1e tex2lyx: fix a regression
Preamble.cpp: - partly revert [e1b181dd/lyxgit] because the math packages cannot by default be loaded as the user might have defined special commands
2012-07-08 21:32:26 +02:00
Georg Baum
840f6fda51 Don't stop testing after first error.
This was the reason why I forgot to update the last test file in the last
commit.
2012-07-08 20:52:26 +02:00
Georg Baum
45fd75fe96 Manually update test results to current format.
Now you can see the regressions without differences caused by real
fixes or file format updates.
2012-07-08 20:09:02 +02:00
Georg Baum
1c0bd0132c Add very simple tex2lyx regression test suite.
It is invoked by 'make check' (automake only, it would be nice if someone
could add it to cmake as well), or by calling

python src/tex2lyx/test/runtests.py <path to tex2lyx binary>

by hand. Currently, it does not compare the output (this comes later).
The added .lyx files are from tex2lyx around mid of april, so that you
can see the regressions of the current version if you run the test
yourself (simply run git diff afterwards).

The home made test runner is quite stupid, but better than nothing.
Feel free to improve it or replace it with something better, as long
as running it stays as simple as now.
2012-07-08 19:28:19 +02:00
Georg Baum
57a8ea32c0 Include the recently added test files in package 2012-07-08 18:12:26 +02:00
Uwe Stöhr
88513c0a90 installer: rename install folder as discussed
- the proposed install folder is now "LyX 2.0" as discussed
- promote our wiki and also our website (as almost all other programs do as well and which is quite helpful)
2012-07-08 15:48:26 +02:00
Uwe Stöhr
4e69b9bac5 tex2lyx/text.cpp: fix typos 2012-07-07 13:40:07 +02:00
Uwe Stöhr
fe5a4c8c81 tex2lyx: improve CJK handling
- tex2lyx/text.cpp:
 - fix bug that swallowed valid braces
 - the encoding is "Bg5" not "BIG5"
 - add and update comments

- CJK.tex: add an example for the Bg5 encoding
2012-07-07 13:37:26 +02:00
Uwe Stöhr
6b6a2eb8e6 docs: port fix and update description of labeling
- UserGuide.lyx: fix description of the labeling lists, fixes also bug #8224
- German UserGuide.lyx: adapt some sections to be compliant with the other language variants
2012-07-07 02:00:37 +02:00
Uwe Stöhr
d8611f25f2 tex2lyx: remove some superfluous code
text.cpp: besides that eat_whitespace does nothing these calls would be wrong as whitespace is allowed as argument of the box commands
2012-07-06 23:35:33 +02:00
Uwe Stöhr
02b6586ad7 update a tex2lyx test file
box-color-size-space-align.tex:
 - add all possible math spaces
 - remove 2 invalid non-math spaces
2012-07-06 23:33:28 +02:00
Uwe Stöhr
e777b18066 remove an obsolete layout file
as the support for the buggy and outdated ArmTeX was removed, this layout is now obsolete and can also be removed
2012-07-06 22:34:02 +02:00
Kornel Benko
278c8e4d27 * sk.po 2012-07-05 17:42:04 +02:00
Jean-Marc Lasgouttes
4471e65fa1 Handle version numbers like 2.0.5dev in LYX_CHECK_VERSION 2012-07-04 12:18:15 +02:00
Kornel Benko
8881a443fb 1.) Typo in checking for spaces <=> menu shortcuts
2.) Do not use [[...]] strings in msgid to be checked
2012-07-03 14:36:44 +02:00
Uwe Stöhr
17ec737dd6 installer: 3 fixes
- uninstall.nsh: don't uninstall the user preferences by default
- configure.nsh:
 - set also the .lyx file association when the user is not admin
 - fix the path in which the LyX start menu shortcut is executed
2012-07-03 01:42:30 +02:00
Uwe Stöhr
057543326f update APA template file
APA.lyx: the template missed the \notes command
2012-07-03 00:56:39 +02:00
Uwe Stöhr
b3e49a803a fix for APA layout
- apa.layout: the commands \volume, \copnum and \notes are only allowed in the preamble; fixes bug #8187
2012-07-03 00:54:50 +02:00
Uwe Stöhr
3e250d2ce6 Merge branch 'master' of git.lyx.org:lyx 2012-07-03 00:40:23 +02:00
Uwe Stöhr
487c8b5bd3 tex2lyx: update a command
Parser.cpp: improve a command as discussed
2012-07-03 00:39:41 +02:00
Richard Heck
c3fe0fd7e2 Port changes to update-po.sh script to trunk. 2012-07-02 17:49:08 -04:00
Richard Heck
06112dea74 Fix typo. 2012-07-02 17:44:22 -04:00
Uwe Stöhr
40fb3cca64 installer: fix a permission right issue
We must prevent that LyX is installed as admin and then afterwards the same LyX version also without admin privileges.
2012-07-02 23:37:15 +02:00
Kornel Benko
bd0b46872d * sk.po 2012-07-02 23:27:29 +02:00
Uwe Stöhr
8d163b19b3 installer: fix a typo in translation 2012-07-02 23:04:18 +02:00
Juergen Spitzmueller
11ac5b78f3 Document QuoteStyle options 2012-07-02 10:50:06 +02:00
Uwe Stöhr
00833efd10 Merge branch 'master' of git.lyx.org:lyx 2012-07-01 16:15:55 +02:00
Uwe Stöhr
e4018a327e elsarticle already provides refstyle
- elsarticle.layout: elsarticle already provides refstyle thus the document becomes uncompilable if we don't declare this in the layout

Also OK for branch?
2012-07-01 16:15:42 +02:00
Juergen Spitzmueller
555ae019b8 update tex2lyx TODO 2012-07-01 14:48:20 +02:00
Juergen Spitzmueller
11f7efe2eb Set the appropriate quote style when switching the main language 2012-07-01 11:27:42 +02:00
Juergen Spitzmueller
837869452a Add quote style information to languages 2012-07-01 11:25:52 +02:00
Juergen Spitzmueller
507302b444 Whitespace 2012-07-01 08:38:54 +02:00
Uwe Stöhr
56f0e0c4fc tex2lyx/Parser.cpp: refine \verb handling 2012-07-01 02:12:56 +02:00
Uwe Stöhr
d10063fd20 polyglossia tex2lyx coding style improvement
- Preamble.cpp/:
 - move list definition out of anon namespace
 - declare lists and a function in the class

- text.cpp: remove the now already defined list
2012-07-01 01:47:39 +02:00
Pavel Sanda
06c1d24bdb Fix #8201: our translation mechanism chokes on the character " 2012-06-30 19:24:22 +02:00
Uwe Stöhr
85c479f4e7 test-structure.tex: add checks for \verb 2012-06-30 15:29:53 +02:00
Juergen Spitzmueller
e903d0158e Whitespace
If someone can tell me how I can tell QtCreator to actually use tabs, not spaces, I would be most grateful (yes, I have set Tab Policy to Tabs Only in Prefs)
2012-06-30 13:45:58 +02:00