Commit Graph

29158 Commits

Author SHA1 Message Date
Juergen Spitzmueller
ecf6ff6c87 de.po: update 2012-09-20 16:13:45 +02:00
Juergen Spitzmueller
f309b3531a Merge branch '2.0.x' of git.lyx.org:lyx into 2.0.x 2012-09-20 16:02:44 +02:00
Juergen Spitzmueller
b11704d2fb Do not update refs on new label creation (#8147)
This assures that refs to existing labels are not being touched if a new label with a duplicate name is created, and the name then changed by the duplicate checker.

Branch candidate.
(cherry picked from commit 86cccf1077)
2012-09-20 16:01:34 +02:00
Kornel Benko
b8fc1d5b6c * sk.po 2012-09-20 15:54:06 +02:00
Enrico Forestieri
63caef5505 Fix bug #8306: LyX incorrectly imports mhchem commands outside math mode
Those commands can also be used in text mode but tex2lyx tries to
translate their argument causing havoc. So, import the whole commands
as ERT.

(cherry picked from commit ac92f2a79b)
2012-09-20 13:39:38 +02:00
Enrico Forestieri
0e33060337 Fix bug #8305: ^ symbol does not render into upward arrow when using mhchem
The mhchem package treats the caret both as a shorthand for \uparrow or
as a superscript operator according to whether it is surrounded by
spaces or not. The \ce and \cf insets allow inserting spaces but there
is no provision for inserting a space after the caret, which is always
considered by LyX as a superscript operator. The solution here is to
insert a space after the caret if the superscript is empty or an empty
brace inset.

Mathed does not allow empty superscripts, so an empty brace has to be
inserted when working in LyX. On the other hand, when importing latex
code, an empty superscript is retained.

This has no effect whatsoever for normal latex code, as a space after
the caret is ignored. In any case, the output is only changed if an
empty brace inset is used as superscript. Specifically, the output is
changed from "^{{}}" to "^ {}".

(cherry picked from commit f251e01892)
2012-09-20 13:39:37 +02:00
Pavel Sanda
17177aaf3f Simplify translation string. 2012-09-20 13:34:47 +02:00
Richard Heck
743801ff71 Backport fix for bug #8278.
Cherry picked from
	2375982f7e
	166deba79b
2012-09-19 21:21:33 -04:00
Pavel Sanda
b3efc9a349 * cs.po 2012-09-20 00:49:26 +02:00
Pavel Sanda
c42d9fa9c9 Remerge cs.po 2012-09-20 00:48:43 +02:00
Juergen Spitzmueller
5fd8bda31a rc.preview and rc.display_graphics are completely unrelated (bug 7562)
(cherry picked from commit 6bf00d9fed)
2012-09-19 17:15:57 +02:00
Juergen Spitzmueller
212af25fb2 Merge branch '2.0.x' of git.lyx.org:lyx into 2.0.x 2012-09-18 08:34:05 +02:00
Jean-Marc Lasgouttes
f8a46c4874 Fix bug #8342: Endless undo group messages
Fix thinko in Undo::endUndoGroup.
Do not reset undo groups in Undo::clean

The underlying problem remains: the various VC functions should not
always reload the buffer or at least should use the parameter
clearUndo=false.
2012-09-17 23:04:42 +02:00
Juergen Spitzmueller
7441db9053 Calibrate log file parser
Filenames embraced in <...> can occur anywhere on the line and multiple times. This fixes for me the case that graphics included via ERT were not tracked. It also fixes #8336.

(cherry picked from commit e8a01d099a)
2012-09-17 10:43:06 +02:00
Juergen Spitzmueller
991af81588 Clarify the logic of fragmental file name checking
No change in functionality.
(cherry picked from commit ba792c4d35)
2012-09-17 10:31:02 +02:00
Jean-Marc Lasgouttes
2512e1f085 Tracking correctly available translations (take 2)
The previous scheme of loading all possible translations and checking
whether the work is a bit too much "brute force" and causes problems
on Mac OS X (documents loaded with the wrong language).

Now there is an helper static method in Messages class that checks
whether a readable .mo file exist for the language. There should be an
API in gettext for doing that, but alas it is not possible.

As a consequence the method Language::translated() has been removed,
along with its cache.
2012-09-12 10:20:05 +02:00
Uwe Stöhr
ca3cf1f222 status.20x: some minor improvements
- list crash bugfixes first
- clarify that it is a menu
2012-09-12 00:11:55 +02:00
Enrico Forestieri
fbaf3fc84d Protect underlined \ref{} commands by enclosing them in \mbox{}.
This is the same protection used for \cite{}. Although "ulem" commands
don't strictly need this protection with \ref{} and friends, this helps
when one wants to use another package souch as "soul".
Indeed, ulem's \uline{} doesn't hyphenate words, while soul's \ul{} does,
and thus the output is much nicer.

With this patch, replacing ulem with soul is as simple as adding
\usepackage{soul}
\renewcommand{\uline}[1]{\ul{#1}}
to the preamble, without worrying about manually enclosing in \mbox the
\ref commands. In any case, the output from ulem remains unchanged.

Another possibility offered by soul is that of typesetting as
"yellow highlighted" the underlined text. This is achieved by adding
\usepackage{color,soul}
\renewcommand{\uline}[1]{\hl{#1}}
to the preamble.

(cherry picked from commit 91afc2430d)
2012-08-30 15:35:22 +02:00
Juergen Spitzmueller
8475f73366 IPA fixes 2012-08-27 08:50:40 +02:00
Juergen Spitzmueller
3ae6400452 Fix forward search with okular 2012-08-27 08:45:21 +02:00
Stephan Witt
7cc30cdf29 Fix bug #8238: correct the forward argument of replace2string() in on_replacePB_clicked().
(cherry picked from commit 44b3278006)
Fix the wrong cursor move when forward flag is false:
The forward flag is used to place the cursor behind the replaced text if it's true.
But it's not correct to move the cursor if it's false. The cursor is in front of the
replacement already after the replaceSelectionWithString() was done.
(cherry picked from commit 430cf3ee5e)
2012-08-22 18:07:58 +02:00
Jean-Marc Lasgouttes
a4db6d6c14 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-08-22 12:36:22 +02:00
Jean-Marc Lasgouttes
824fe17511 Do not kill the undo stack when doing a Save As...
The code does a reload on the buffer to avoid loose pointers if the
file changes directory. This commit adds a bool parameter to
Buffer::reload to allow for keeping the undo stack intact. This is of
couse only wanted in this case, not when reloading an earlier version
of the file.
2012-08-21 12:21:42 +02:00
Jean-Marc Lasgouttes
3bf5d562b9 Fix bug #8242: undo fails for longest label width
In the existing code for setting layout of pragraph parameters,
Text::undoSpan is used to "guess" which paragraphs should be saved in Undo.
With this patch the approach is more precise: before every explicit change
to a paragraph, a Cursor::recordUndo call is inserted. This is much more robust than trying to guess.

In particular, we do not look at depth changes at all, since they are now
handled in updateBuffer since #8159 has been fixed.
2012-08-21 12:08:27 +02:00
Jean-Marc Lasgouttes
a53f9aa8cc Make debug messages more readable
Shorten the file names output by LYXERR so that they start right after /src/.
2012-08-21 12:02:20 +02:00
Jean-Marc Lasgouttes
337bfa6010 Fix shortenng of file names in MakeDisplayPath.
It is not a good idea to slice an utf8 string at arbitrary offsets, we have to work on a docstring instead.
We need unfortunately to switch back and forth between utf8 and docstring.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40149 a592a061-630c-0410-9148-cb99ea01b6c8
2012-08-21 11:59:28 +02:00
Juergen Spitzmueller
33c8906f70 Decouple lyxrc.default_language from useBabel()
No status entry necessary
2012-08-07 07:59:18 +02:00
Juergen Spitzmueller
2d9c9ae77d Fix direction of brackets in Hebrew when using Polyglossia (bug #8251) 2012-07-26 10:08:41 +02:00
Juergen Spitzmueller
7d08836de6 Fixes to the language package call
* Assure that really no language package is called when none is selected.
* Only call global custom package if global is desired.
This is a candidate for branch as well.
2012-07-23 16:24:51 +02:00
Juergen Spitzmueller
0fcd35565c arabi requires the language option to be passed to babel directly. Candidate for branch 2012-07-23 16:20:13 +02:00
Juergen Spitzmueller
d10927c6f2 Suppress babel RTL commands when using polyglossia (part of #8251) 2012-07-23 16:17:43 +02:00
Richard Heck
1a830a6b1c Squash warning. 2012-07-22 10:47:20 -04:00
Richard Heck
ecb65e7038 Fix a long-standing FIXME by resetting only the counter for top-level
sectioning when we see an appendix. This fixes bug #8271, whose root
cause was the fact that we were resetting all the counters inside ERT.

Conflicts:
	src/TextClass.h
2012-07-22 10:44:18 -04:00
Richard Heck
e5b0444bbb Fix crash reported on list when renaming a child buffer and
then trying to compile.

    There are really two problems here. One is that the renamed
    buffer needs to be reloaded. All kinds of files, etc, may not
    exist any more, if we've been saved to a new directory; our
    children e.g. may not be in the right place. And, in this case,
    we may no longer be a child of our old parent. Reloading will
    fix all of that.

    On reload, though, we need to clear our parent, since we may
    not have one any more. It will get reset if need be.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40609 a592a061-630c-0410-9148-cb99ea01b6c8
(cherry picked from commit 9283cbdbcb)
2012-07-21 10:06:44 -04:00
Jean-Marc Lasgouttes
b674c190e7 Make the toolbar code less noisy when the session file is not found
Conflicts:

	src/frontends/qt4/GuiToolbar.cpp
2012-07-19 23:44:43 +02:00
Enrico Forestieri
3967b7b0db Fix bug #8254: An encoding problem
Use the short version of a path, which is guaranteed to be ascii and
works even if the path is not encodable in the current codepage.

(cherry picked from commit 08b3d492fa)
2012-07-19 23:34:07 +02:00
Jean-Marc Lasgouttes
7b93cc5fc4 Make sure that undo is recorded when magic tricks are played with InsetBibitem.
Fixes bug #7111: Assertion with undo and InsetBibitem

  * add Paragraph::brokenBiblio(), with tells whether there is something to fix.
  * rename Paragraph::checkBiblio to fixBiblio; simplify it greatly by using
    InsetList methods
  * In TextMetrics::redoParagraph, call recordUndo before fixBiblio (only when
    there is something to fix obviously)

Special care is taken to update cursor only when it makes sense. Note
that there are cases where undo information is not recorded (current
cursor not in the slice where action happens)
2012-07-18 21:16:45 +02:00
Juergen Spitzmueller
33b2bc45a7 typo 2012-07-18 17:33:32 +02:00
Juergen Spitzmueller
7e7d1c7167 deactivate ~ in Basque, Estonian and Galician (bug #8265) 2012-07-18 17:30:00 +02:00
Juergen Spitzmueller
03c9e5a758 Add \makeat switches to babel settings if necessary.
Babel settings might contain @ characters. Check for this and wrap the settings into \makeatletter ... \makeatother switches if necessary (see discussion at #8265).
2012-07-18 17:24:45 +02:00
Kornel Benko
049f955110 Creating package missed the patch-version number 2012-07-17 11:19:22 +02:00
Juergen Spitzmueller
8dcda08122 update de.po 2012-07-14 17:00:15 +02:00
Uwe Stöhr
2c77326b9b APA.lyx: improve a comment 2012-07-14 16:38:22 +02:00
Uwe Stöhr
08243b54c0 es.po: updates from Ignacio for branch 2012-07-13 22:16:38 +02:00
Uwe Stöhr
b19ae9e7f9 Spanish docs update 2012-07-13 00:55:27 +02:00
Uwe Stöhr
4eccf039bb forgotten status entry 2012-07-13 00:23:21 +02:00
Uwe Stöhr
23348fd302 add new Spanish examples for branch
- Spanish europeCV.lyx and modernCV.lyx: new files
- English europeCV.lyx: replace TeX-code by LyX's \nocite feature
2012-07-13 00:22:14 +02:00
Kornel Benko
62c38fef36 * sk.po 2012-07-11 20:36:30 +02:00
Richard Heck
4eab9d49a4 Allow LyX format to be shown in View>Source.
Cherry-picked from b7ac2d69e7.
2012-07-11 11:39:07 -04:00
Richard Heck
1e8f537481 Math output flavor was not set when viewing source code.
Cherry-picked from e7877f6fee.
2012-07-11 11:35:12 -04:00