Commit Graph

29823 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
92363ce20d Use proper tabs instead of spaces 2012-09-10 22:59:21 +02:00
Jean-Marc Lasgouttes
a57a2d9acf Streamline a bit po/Rules-lyx
Make use of normal and automatic variables to avoid repetition. Things could be made shorter by using the %_l10n.pot pattern (GNU make extension).
2012-09-10 11:55:52 +02:00
Kornel Benko
84ef6f391f Stop handling file 'installed_translations' in cmake-build 2012-09-08 18:07:43 +02:00
Jean-Marc Lasgouttes
740c83637d Correctly initialize a member variable
This has be diagnosed by valgrind, I do not know how important it is.
2012-09-08 16:59:19 +02:00
Jean-Marc Lasgouttes
7a7b9abf1b 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-08 16:59:19 +02:00
Jean-Marc Lasgouttes
a86de5d3c0 Revert "Read list of translated languages from a file"
This reverts commit ed1515ef69.
2012-09-08 16:59:18 +02:00
Enrico Forestieri
d7dd80e654 Update it.po 2012-09-03 00:00:25 +02:00
Enrico Forestieri
91afc2430d 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.
2012-08-30 14:09:23 +02:00
Juergen Spitzmueller
458c143e49 Fix forward search with okular
Implement a placeholder 2008f which points to the tex file with full path, since this is what okular expects nowadays.
2012-08-26 11:42:43 +02:00
Juergen Spitzmueller
56e6549b11 Merge branch 'master' of git.lyx.org:lyx 2012-08-25 10:49:08 +02:00
Juergen Spitzmueller
719ec62e28 Fix thinkos in LaTeX font reading 2012-08-25 10:48:37 +02:00
Kornel Benko
4dd86adffd * sk.po 2012-08-24 15:48:03 +02:00
Juergen Spitzmueller
e36e46b335 Fix bibliography indentation 2012-08-24 15:24:32 +02:00
Juergen Spitzmueller
c4a233e9e9 Documentation of new IPA features 2012-08-24 15:20:48 +02:00
Juergen Spitzmueller
2a22d999b2 Implement plaintext for tie bars 2012-08-24 10:12:17 +02:00
Kornel Benko
1108de11c3 * sk.po 2012-08-24 10:00:35 +02:00
Juergen Spitzmueller
60643d43a9 de.po: update 2012-08-24 08:24:43 +02:00
Juergen Spitzmueller
7d5f0070eb Add missing icons 2012-08-24 08:12:49 +02:00
Juergen Spitzmueller
706c5d25de Fix documentation 2012-08-23 17:47:12 +02:00
Juergen Spitzmueller
ee1fc9130a Add support for some basic non-unicoded IPA macros
We now support everything on the IPA chart via the toolbar
2012-08-23 17:42:53 +02:00
Kornel Benko
8fe8966a97 * sk.po 2012-08-22 13:58:07 +02:00
Kornel Benko
d67bd17b34 cmake build: Add msgfmt po-checking 2012-08-22 13:57:43 +02:00
Juergen Spitzmueller
133474830c Style. Thanks, Pavel and Scott 2012-08-22 08:35:06 +02:00
Pavel Sanda
fc439f6bfe Make tree compilable again.
Natives should check and fix.
2012-08-21 23:09:45 +02:00
Kornel Benko
8869433d41 sk.po: Some found phonetic symbols 2012-08-21 21:09:33 +02:00
Juergen Spitzmueller
99088a1152 de.po: update 2012-08-21 18:13:49 +02:00
Juergen Spitzmueller
3855f5c5ce The SVG sources of the IPA icons 2012-08-21 16:28:29 +02:00
Juergen Spitzmueller
b6a63bfce8 An IPA toolbar
Translators: sorry ;-)
2012-08-21 14:56:34 +02:00
Juergen Spitzmueller
042a1c4d3b Make tipa shortcuts work for combining chars 2012-08-21 12:48:34 +02:00
Juergen Spitzmueller
f251c4973c More tipa shortcuts 2012-08-21 12:47:50 +02:00
Enrico Forestieri
ac92f2a79b 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.
2012-08-21 04:04:54 +02:00
Enrico Forestieri
f251e01892 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 "^ {}".
2012-08-21 01:30:51 +02:00
Jean-Marc Lasgouttes
3a99e351d9 Merge branch 'master' of git.lyx.org:lyx 2012-08-20 17:39:25 +02:00
Jean-Marc Lasgouttes
6a936d63d3 Fix crash with undo in nested insets introduced by commit 6ec1683
The code in DocIterator::sanitize now follows more closely the
previous StableDocIterator::asDocIterator code. In particular, it adds
the slices one by one, since fixIfBroken will chop the cursor
otherwise.
2012-08-20 17:20:59 +02:00
Juergen Spitzmueller
c235e73301 Merge branch 'master' of git.lyx.org:lyx 2012-08-20 09:32:04 +02:00
Kornel Benko
2b98e7a288 * sk.po 2012-08-20 09:03:54 +02:00
Juergen Spitzmueller
1267319117 The tipa tone macro requires the tone package from the tipa bundle 2012-08-20 08:52:42 +02:00
Stephan Witt
4674c3e1c5 Patch from Benjamin Piwowar - see ticket #8185:
In order to interact with native osx applications, AppleScript support is a plus.
Here is a patch that makes LyX respond to a simple command (run) and that allows to communicate with LyX as with the LyX client.
Example of use:
	tell application "LyX" to run "server-get-filename" with argument ""'
returns
	message:/Users/bpiwowar/newfile1.lyx, code:0
with a message and the error code
2012-08-19 22:27:20 +02:00
Stephan Witt
8bf0652b9c * Make package with hunspell dictionaries per default.
* Change the sub-shell notation to $(cmd) style.
* Qt4Version variable checks environment too.
2012-08-19 22:09:03 +02:00
Juergen Spitzmueller
16ec8a08ef TIPA additions 2012-08-19 19:33:48 +02:00
Juergen Spitzmueller
66729e434e TIPA fixes 2012-08-19 16:59:53 +02:00
Juergen Spitzmueller
54c41ce26e Support for the TeX Gyre fonts (#4332) 2012-08-19 11:57:48 +02:00
Tommaso Cucinotta
0f97ae5480 Avoid that, if an error dialog pops up during a long operation, it freezes LyX. 2012-08-18 22:45:21 +01:00
Juergen Spitzmueller
4964388408 Merge branch 'master' of git.lyx.org:lyx 2012-08-18 14:46:07 +02:00
Juergen Spitzmueller
b501845b2c Support for the mathdesign fonts (#6072) 2012-08-18 14:45:41 +02:00
Kornel Benko
8570e14501 Merge branch 'master' of git.lyx.org:lyx 2012-08-18 13:58:11 +02:00
Kornel Benko
aac637ddab * sk.po 2012-08-18 13:57:46 +02:00
Juergen Spitzmueller
6dd333b432 Add missing option commas 2012-08-18 13:29:14 +02:00
Juergen Spitzmueller
c409c9e3d1 Allow for general package options for LaTeX font packages (needed e.g. by mathdesign) 2012-08-18 13:10:34 +02:00
Juergen Spitzmueller
a9ad5c3337 Factor out duplicated code 2012-08-18 11:57:16 +02:00