]> git.lyx.org Git - features.git/log
features.git
9 years agoImprove log scanner to correctly report error
Scott Kostyshak [Sat, 21 Feb 2015 05:00:51 +0000 (00:00 -0500)]
Improve log scanner to correctly report error

When scanning the LaTeX log, previously we only looked ahead 10 lines
after a "!" line and if we did not find a line number we did not count
an error. This lead to the problem that templates/ACM-sigplan.lyx was
showing a successful export and the PDF was shown (it is still
created despite the error). Now that the exit code of the latex
command is checked (as of the previous commit), an error is correctly
given, but by parsing the log better with this commit, a more
informative error is given.

Increasing the look-ahead to 15 lines leads to correct parsing of
the ACM-sigplan log. The excerpt in the log file where there are more
than 10 lines in-between the "!" line and the line number is below:

! Undefined control sequence.
\@toappear ...ent http://dx.doi.org/10.1145/\@doi

<argument> ...n is removed.]\par \else \@toappear
                                                  \fi \if \@reprint
\noinden...

\@begin@tempboxa ...mpboxa #1{\color@begingroup #2
                                                  \color@endgroup }\def
\wid...

\@iiiparbox ...tempdima \@parboxrestore #5\@@par }
                                                  \ifx \relax #2\else
\setle...

\@copyrightspace ...planconf@finalpage}.\par \fi }
                                                  }\end@float
\maketitle ... \@copyrightwanted \@copyrightspace
                                                  \fi
l.34 \maketitle

Another example is posted here:
http://tex.stackexchange.com/questions/231655/lyx-cannot-output-to-pdflatex-for-a-specific-file

9 years agoCheck exit code of LaTeX process in LaTeX::run
Scott Kostyshak [Fri, 20 Mar 2015 04:40:01 +0000 (00:40 -0400)]
Check exit code of LaTeX process in LaTeX::run

Systemcall::startscript returns the exit code of the LaTeX command
that is run, but the return value was not being checked by
LaTeX::run.  Instead, we relied on parsing log files. However, this
parsing is not perfect.

The return value is now checked and if the exit code of the command
is non-zero, an enum value is added to the return and the user is
notified of the error.

At a higher level, if the LaTeX command returns a non-zero exit code,
in the GUI a message such as
"Error while exporting format: PDF (LuaTeX)" will be given instead of
"Successful preview of format: PDF (LuaTeX)".

When run on the commandline, lyx -e lualatex example.lyx
will give "Error: LaTeX failed" and a non-zero exit code
where before it gave a zero exit code.

A real example of the bug this commit fixes is LyX's (as of this commit)
ACM-sigplan.lyx template.
Before this commit:
  $ lyx -e pdf2 ACM-sigplan.lyx
  [...snip...]
  support/Systemcall.cpp (288): Systemcall: 'pdflatex  "ACM-sigplan.tex"'
  finished with exit code 1
  $ echo $?
  0
Starting with this commit:
  $ mylyx master -e pdf2 ACM-sigplan.lyx
  support/Systemcall.cpp (288): Systemcall: 'pdflatex  "ACM-sigplan.tex"'
  finished with exit code 1
  Error: LaTeX failed
  ----------------------------------------
  LaTeX did not run successfully. The command that was run exited with
  error.
  $ echo $?
  1

9 years agoAllow cloned buffers to give alerts in runLaTeX()
Scott Kostyshak [Fri, 20 Feb 2015 22:45:36 +0000 (17:45 -0500)]
Allow cloned buffers to give alerts in runLaTeX()

This was disabled in 2009 in bea0925f but it is now safe.

From Richard:
"I am pretty sure that all the work that Peter Kümmel did with the
InGuiThread classes dealt with this issue."

9 years agoRemove an outdated comment
Scott Kostyshak [Fri, 20 Feb 2015 22:31:53 +0000 (17:31 -0500)]
Remove an outdated comment

LaTeX::deleteFilesOnError is no longer a dummy function.

This comment was interoduced with the first version of this
function, at e6d063c4.

9 years agoRemove output file in temporary folder on error
Scott Kostyshak [Fri, 20 Mar 2015 06:03:51 +0000 (02:03 -0400)]
Remove output file in temporary folder on error

This commit solves two issues:

(1) A PDF from a previous run could have been the result of a command
that exited with error (e.g. sometimes pdflatex still produces a PDF if
it exits with error). If the "View" button were clicked a second time
without changing the .lyx file, then the checksum of the .tex file would
not have changed so LyX would show the PDF (which was created from the
first run that exited with error), and this time LyX would not report
the error (because the parsing of the logs only happens when the .tex
file is compiled).

(2) A myfile.tex that results in no output does not yield a myfile.pdf.
Thus, Any myfile.pdf in the temporary directory will not be overwritten.
Before this commit, the following scenario was possible: LyX runs
pdflatex which processes myfile.tex and no error is given so LyX opens
myfile.pdf. However, it could have been the scenario that pdflatex did
not exit with error and did not create myfile.pdf, in which case
whichever myfile.pdf is being shown is not correct. To see this bug in
action, start a new document, type "abc", view the PDF, delete "abc",
view the PDF (this correctly gives an error that empty output was
created), view the PDF again (this does not give an error because the
checksum has not changed). The PDF shown will contain "abc".

Note that the above also applies to DVI files and that the fix is
general.

9 years agoClarify message about an empty file
Scott Kostyshak [Sun, 22 Feb 2015 04:46:42 +0000 (23:46 -0500)]
Clarify message about an empty file

When empty output is generated, no PDF is produced. The previous
message made it seem like an empty PDF was produced.

9 years agoSVG: text -> Path
Juergen Spitzmueller [Thu, 19 Mar 2015 08:25:05 +0000 (09:25 +0100)]
SVG: text -> Path

9 years agoImprove source code documentation
Georg Baum [Wed, 18 Mar 2015 20:31:50 +0000 (21:31 +0100)]
Improve source code documentation

Adjust comments to current code and extend them a bit, also revert a part
of af5acb6d which was certainly not wanted.

9 years agowhitespace
Georg Baum [Sun, 15 Mar 2015 17:20:01 +0000 (18:20 +0100)]
whitespace

9 years agoFix math macro plain text output
Georg Baum [Sun, 15 Mar 2015 16:47:38 +0000 (17:47 +0100)]
Fix math macro plain text output

Previously it was not thread safe, and the translation could be wrong.

9 years agoRevise svg icons for the math toolbar
Enrico Forestieri [Wed, 18 Mar 2015 19:29:31 +0000 (20:29 +0100)]
Revise svg icons for the math toolbar

- Use paths, not fonts. Have a look at the sqrt icon in the image attached
  here http://thread.gmane.org/gmane.editors.lyx.devel/154179/focus=154183
  to see what may happen when a font is not present on a given system.
- Make uniform the height of the parentheses.
- Move a couple of icons to the oxygen subdir (I was not sure it was Ok
  replacing them. If yes, they can be simply deleted).

9 years agoUse integer arithmetic for drawing logos; fix LaTeX output
Jean-Marc Lasgouttes [Wed, 18 Mar 2015 10:32:49 +0000 (11:32 +0100)]
Use integer arithmetic for drawing logos; fix LaTeX output

Using fraction of points is a reasonable way to avoid warnings with fussy compilers.

Moreover, this fixes the output of PHRASE_LATEX2E to use the proper form \LaTeXe.

The file format still uses the questionnable form \\LaTeX2e.

9 years agoCmake build: Add .svgz files to Resources.
Kornel Benko [Tue, 17 Mar 2015 19:46:02 +0000 (20:46 +0100)]
Cmake build: Add .svgz files to Resources.

It does not seam to make a difference.
Added because other icons are also included.

9 years agoNew test for seach and replace of a logo
Kornel Benko [Tue, 17 Mar 2015 16:52:37 +0000 (17:52 +0100)]
New test for seach and replace of a logo

9 years agoMake tests for QT5 and QT4 work.
Kornel Benko [Tue, 17 Mar 2015 16:36:47 +0000 (17:36 +0100)]
Make tests for QT5 and QT4 work.

Changing *-in.txt due to erroneous shortcuts in it.po
keytest.py, single-test.cmake and CMakeLists.txt now
provide a frontend hint for xvkbd.

9 years agoToggle properly toolbar icons that set layout of a paragraph.
Jean-Marc Lasgouttes [Tue, 17 Mar 2015 15:40:55 +0000 (16:40 +0100)]
Toggle properly toolbar icons that set layout of a paragraph.

Fixes bug #9463.

9 years agoFix setting Interlingua as GUI language
Jean-Marc Lasgouttes [Tue, 17 Mar 2015 10:34:28 +0000 (11:34 +0100)]
Fix setting Interlingua as GUI language

The problem came from the fact that Qt associates Interlingua to locale C.
Now, we do not rely anymore on the Qt locale to set the language. I suspect that the problem will still exist if the system locale is ia_IA.

Fixes bug #9267.

9 years agofixltx2e must be loaded as early as possible
Juergen Spitzmueller [Tue, 17 Mar 2015 09:24:16 +0000 (10:24 +0100)]
fixltx2e must be loaded as early as possible

Fixes: #9452, #9361
This reverts the 'fix' to #7233, which must be solved differently.

9 years agoadd "Keywords" to lyx.desktop file
Jean-Marc Lasgouttes [Tue, 17 Mar 2015 09:17:35 +0000 (10:17 +0100)]
add "Keywords" to lyx.desktop file

Fixes bug #9414.

9 years agoUpdate it.po
Enrico Forestieri [Mon, 16 Mar 2015 23:33:37 +0000 (00:33 +0100)]
Update it.po

9 years agoMake the missing class warning opt-out
Juergen Spitzmueller [Mon, 16 Mar 2015 19:34:32 +0000 (20:34 +0100)]
Make the missing class warning opt-out

9 years agoProperly handle the bicaption package (bug #9449)
Juergen Spitzmueller [Mon, 16 Mar 2015 19:31:38 +0000 (20:31 +0100)]
Properly handle the bicaption package (bug #9449)

9 years agoAdd proper importers for Sweave and knitr.
Jean-Marc Lasgouttes [Mon, 16 Mar 2015 17:43:51 +0000 (18:43 +0100)]
Add proper importers for Sweave and knitr.

Fixes bug #8734.

9 years agoImprove undo of consecutive insertions/deletions
Jean-Marc Lasgouttes [Thu, 12 Mar 2015 13:47:39 +0000 (14:47 +0100)]
Improve undo of consecutive insertions/deletions

The old scheme was:
 * multiple insertions are undone by groups of 20
 * multiple deletions are undone in one big block

The new scheme is to stop merging undo elements after 2 seconds of elapsed time.

Moreover, the merging of undo elements stops when the cursor has moved. Potentially, this could allow to remove many of the finishUndo() calls.

Fixes bug #9204.

9 years agoAdd missing breaks (and time for a break :-()
Juergen Spitzmueller [Mon, 16 Mar 2015 13:49:58 +0000 (14:49 +0100)]
Add missing breaks (and time for a break :-()

9 years agoMore switches and whitespace fixes
Juergen Spitzmueller [Mon, 16 Mar 2015 13:47:38 +0000 (14:47 +0100)]
More switches and whitespace fixes

9 years agode.po
Juergen Spitzmueller [Mon, 16 Mar 2015 13:31:24 +0000 (14:31 +0100)]
de.po

9 years agoGrr...
Juergen Spitzmueller [Mon, 16 Mar 2015 13:30:02 +0000 (14:30 +0100)]
Grr...

9 years agoProperly escape backslash in string
Juergen Spitzmueller [Mon, 16 Mar 2015 13:28:16 +0000 (14:28 +0100)]
Properly escape backslash in string

9 years agoInsetPhantom::latex(): use a switch
Juergen Spitzmueller [Mon, 16 Mar 2015 13:22:03 +0000 (14:22 +0100)]
InsetPhantom::latex(): use a switch

9 years agoWhitespace
Juergen Spitzmueller [Mon, 16 Mar 2015 13:15:05 +0000 (14:15 +0100)]
Whitespace

Time to properly set up QtCreator...

9 years agoPhantom is fragile (#9456)
Juergen Spitzmueller [Mon, 16 Mar 2015 13:11:45 +0000 (14:11 +0100)]
Phantom is fragile (#9456)

9 years agoupdate sk.po
Kornel Benko [Mon, 16 Mar 2015 11:30:08 +0000 (12:30 +0100)]
update sk.po

9 years agoUse German localization in German europass example
Juergen Spitzmueller [Mon, 16 Mar 2015 10:23:24 +0000 (11:23 +0100)]
Use German localization in German europass example

9 years agode.po
Juergen Spitzmueller [Mon, 16 Mar 2015 10:12:55 +0000 (11:12 +0100)]
de.po

9 years agoRefine fix for #9453
Enrico Forestieri [Mon, 16 Mar 2015 09:50:02 +0000 (10:50 +0100)]
Refine fix for #9453

It is better to introduce a dummy blank dir in TEXINPUTS rather than
appending a blank at the end. Even if I have checked that this is not
a problem with MikTeX, some other engine (maybe texlive, but I cannot
check) could not ignore this space and take it as the name of a dir.
In this case, TEXINPUTS would not end with an empty element and the
standard search path would not be inserted there.

9 years agoAdd Stefan Swerk to the Credits
Juergen Spitzmueller [Mon, 16 Mar 2015 09:54:02 +0000 (10:54 +0100)]
Add Stefan Swerk to the Credits

9 years agoAdd support for the europasscv class
Juergen Spitzmueller [Mon, 16 Mar 2015 09:47:17 +0000 (10:47 +0100)]
Add support for the europasscv class

Patch by Stefan Swerk

9 years agoFix bug #9453
Enrico Forestieri [Sun, 15 Mar 2015 23:34:35 +0000 (00:34 +0100)]
Fix bug #9453

This was due to a problem with the QProcess parser.
See #9453 for details.

9 years agomake build: Make it compilable for Qt4 too.
Kornel Benko [Sun, 15 Mar 2015 19:12:55 +0000 (20:12 +0100)]
make build: Make it compilable for Qt4 too.

9 years agoDocument the drawing of logos
Jean-Marc [Sun, 15 Mar 2015 17:21:01 +0000 (18:21 +0100)]
Document the drawing of logos

Also fix a couple of spacings.

9 years agoImprove code readability
Georg Baum [Sun, 15 Mar 2015 12:57:45 +0000 (13:57 +0100)]
Improve code readability

Using a small helper struct instead of a std::pair makes things like
it->second.first a little less confusing: it->second.scope.

9 years agoAdd missing check
Georg Baum [Sun, 15 Mar 2015 12:56:48 +0000 (13:56 +0100)]
Add missing check

The other insert method has this as well, and it is indeed a problem is pos
points outside the vector.

9 years agoUse QLocale::toDouble instead of QString::toDouble in the length validator
Juergen Spitzmueller [Sun, 15 Mar 2015 10:48:36 +0000 (11:48 +0100)]
Use QLocale::toDouble instead of QString::toDouble in the length validator

Fixes: #9214
9 years agoSet the logic straight
Juergen Spitzmueller [Sun, 15 Mar 2015 09:38:37 +0000 (10:38 +0100)]
Set the logic straight

9 years agoAllow to disable inputenc loading via 'Provides inputenc 1'
Juergen Spitzmueller [Sun, 15 Mar 2015 09:29:07 +0000 (10:29 +0100)]
Allow to disable inputenc loading via 'Provides inputenc 1'

9 years agoBetter oxygen citation icon
Juergen Spitzmueller [Sun, 15 Mar 2015 08:12:17 +0000 (09:12 +0100)]
Better oxygen citation icon

9 years agoOxygen svg: transform more text to paths
Juergen Spitzmueller [Sun, 15 Mar 2015 08:02:56 +0000 (09:02 +0100)]
Oxygen svg: transform more text to paths

9 years agoInstall the svg icons.
Enrico Forestieri [Sun, 15 Mar 2015 01:52:29 +0000 (02:52 +0100)]
Install the svg icons.

9 years agoAdd last missing svg icons.
Enrico Forestieri [Sun, 15 Mar 2015 01:48:31 +0000 (02:48 +0100)]
Add last missing svg icons.

Also correctly rename an oxygen icon.

9 years agoBetter oxygen nomencl icon
Juergen Spitzmueller [Sat, 14 Mar 2015 16:36:54 +0000 (17:36 +0100)]
Better oxygen nomencl icon

9 years agoImprove display of the logos.
Jean-Marc Lasgouttes [Fri, 13 Mar 2015 11:05:15 +0000 (12:05 +0100)]
Improve display of the logos.

This look now more like the real logos. Moreover, we use not the normal font color because Color_special is a bit too flashy.

9 years agoFix the oxygen math svg icon issues pointed out by Enrico
Juergen Spitzmueller [Sat, 14 Mar 2015 15:21:10 +0000 (16:21 +0100)]
Fix the oxygen math svg icon issues pointed out by Enrico

9 years agoCmake build: Remove deleted svg subdir from installation.
Kornel Benko [Sat, 14 Mar 2015 15:15:35 +0000 (16:15 +0100)]
Cmake build: Remove deleted svg subdir from installation.

Also added missing images/math/oxygem icons to installation.

9 years agoRestore some inadvertently overwritten oxygen icons.
Enrico Forestieri [Sat, 14 Mar 2015 14:42:38 +0000 (15:42 +0100)]
Restore some inadvertently overwritten oxygen icons.

I did not notice that all icons in math/ are shared and in a0895046 I have
overwritten some of them. I am restoring them in the proper subdir.
Two of them, namely font.svgz and frac.svgz, give warnings that should
be addressed. Anyway, I see that these icons use fonts. They are better
substitued with paths (a menu entry in inkscape) because if the fonts
are missing on a system, the icons look different and, in general, they
may look ugly.

9 years agoA simplistic svg banner
Juergen Spitzmueller [Sat, 14 Mar 2015 14:35:33 +0000 (15:35 +0100)]
A simplistic svg banner

This is just a proof of concept. We should find somebody who can re-draw our banner (or a new one) with inkscape.

9 years agode.po
Juergen Spitzmueller [Sat, 14 Mar 2015 12:20:18 +0000 (13:20 +0100)]
de.po

9 years agoupdate sk.po
Kornel Benko [Sat, 14 Mar 2015 12:04:01 +0000 (13:04 +0100)]
update sk.po

9 years agoFurther oxygen svg fixes
Juergen Spitzmueller [Sat, 14 Mar 2015 11:18:59 +0000 (12:18 +0100)]
Further oxygen svg fixes

9 years agoSquash last icon warnings and improve rendering at default size.
Enrico Forestieri [Sat, 14 Mar 2015 07:43:58 +0000 (08:43 +0100)]
Squash last icon warnings and improve rendering at default size.

9 years agoSome more oxygen svg icon fixes
Juergen Spitzmueller [Fri, 13 Mar 2015 21:26:08 +0000 (22:26 +0100)]
Some more oxygen svg icon fixes

With this, all console errors when loading the oxygen set should be resolved

9 years agoFix rendering issue in oxygen tabular-feature_delete-column icon
Juergen Spitzmueller [Fri, 13 Mar 2015 19:23:16 +0000 (20:23 +0100)]
Fix rendering issue in oxygen tabular-feature_delete-column icon

9 years agoFix rendering issue in oxygen promote icon
Juergen Spitzmueller [Fri, 13 Mar 2015 18:40:09 +0000 (19:40 +0100)]
Fix rendering issue in oxygen promote icon

9 years agoChanged ti utf-8 encoding, otherwise python3 chokes on undecodable 0xfc character
Kornel Benko [Fri, 13 Mar 2015 18:19:06 +0000 (19:19 +0100)]
Changed ti utf-8 encoding, otherwise python3 chokes on undecodable 0xfc character

9 years agoFix rendering issue in oxygen xref icon
Juergen Spitzmueller [Fri, 13 Mar 2015 18:04:12 +0000 (19:04 +0100)]
Fix rendering issue in oxygen xref icon

9 years agoFix rendering glitch in oxygen thesaurus svg icon
Juergen Spitzmueller [Fri, 13 Mar 2015 17:39:55 +0000 (18:39 +0100)]
Fix rendering glitch in oxygen thesaurus svg icon

9 years agoFix stmaryrd operators with limits (bug 9458)
Georg Baum [Fri, 13 Mar 2015 17:34:39 +0000 (18:34 +0100)]
Fix stmaryrd operators with limits (bug 9458)

LyX did not display the limits of the big math operators defined by
stmaryrd.sty correctly. The reason for this was a missing check in
InsetMathSymbol::metrics(), where it is hardcoded which symbols use display
style limits and which symbols use inline limits. In an ideal world this
information would be contained explicitly in lib/symbols.

This should go to branch as well.

9 years agoMake sure that a generated temporary filename doesn't end with a dot.
Enrico Forestieri [Fri, 13 Mar 2015 17:12:08 +0000 (18:12 +0100)]
Make sure that a generated temporary filename doesn't end with a dot.

This may happen if the extension is empty, and a filename ending with
a dot may give troubles on Windows.

9 years agoMake sure an unzipped file has correct extension.
Enrico Forestieri [Fri, 13 Mar 2015 16:24:09 +0000 (17:24 +0100)]
Make sure an unzipped file has correct extension.

If a mask is missing, the TempFile class appends it to the filename.
This may be a problem with applications relying on the extension,
so explicitly add a mask.

9 years agoCmake build: QtGui now needed also for filetools.cpp
Kornel Benko [Fri, 13 Mar 2015 13:22:12 +0000 (14:22 +0100)]
Cmake build: QtGui now needed also for filetools.cpp

9 years agoMove svg icons to proper place.
Enrico Forestieri [Fri, 13 Mar 2015 00:29:37 +0000 (01:29 +0100)]
Move svg icons to proper place.

You have to manually delete the lib/images/svg directory as git
tracks only files.

There may be warnings on the terminal due to some faulty icons that have
to be found and corrected. Moreover, some of the icons are not rendered
too well at the default size. These ones should be properly tweaked.
Kudos to Jürgen for putting together such a large number of icons.

9 years agoPrefer svg icons.
Enrico Forestieri [Thu, 12 Mar 2015 23:47:21 +0000 (00:47 +0100)]
Prefer svg icons.

If a compressed svg icon is present, load it instead of a png one.
Also introduce two more sizes (huge and giant icons) that should be
useful when using hires displays, as svg icons automatically scale
to the desired size without loss of quality.

9 years agoUse the nominal theme's icon size for displaying the icon in an info inset.
Enrico Forestieri [Thu, 12 Mar 2015 23:38:05 +0000 (00:38 +0100)]
Use the nominal theme's icon size for displaying the icon in an info inset.

9 years agoProperly name an uncompressed sgvz file.
Enrico Forestieri [Thu, 12 Mar 2015 23:34:53 +0000 (00:34 +0100)]
Properly name an uncompressed sgvz file.

Some tools may rely on the extension and do not actually check whether
a svg file is compressed or not.

9 years agoMake sure a temporary file is always created in the global temporary dir.
Enrico Forestieri [Thu, 12 Mar 2015 23:31:08 +0000 (00:31 +0100)]
Make sure a temporary file is always created in the global temporary dir.

9 years agoFix tex2lyx script output
Georg Baum [Wed, 11 Mar 2015 21:20:44 +0000 (22:20 +0100)]
Fix tex2lyx script output

tex2lyx did not use the InsetLayout for the script insets, so it did not know
that it had to use Plain Layout. However, there is still a possible pitfall:
InsetScript uses a hard coded plain layout for the InsetText constructor, so
if anybody would remove ForcePlain 1 and MultiPar false from the InsetLayout
then LyX would still write script insets with plain layout, but tex2lyx would
output standard layout again.

9 years agowhitespace
Georg Baum [Wed, 11 Mar 2015 21:03:29 +0000 (22:03 +0100)]
whitespace

9 years agoUpdate tex2lyx test references
Georg Baum [Wed, 11 Mar 2015 20:00:53 +0000 (21:00 +0100)]
Update tex2lyx test references

tex2lyx outputs the correct layout ("Plain Layout") for captions since
9d824a04d11. Previously, it did output  "Standard", which was wrong.

9 years agoPreparation to support translations with python3
Kornel Benko [Wed, 11 Mar 2015 19:54:28 +0000 (20:54 +0100)]
Preparation to support translations with python3

Thanks to José.

9 years agoAvoid crash with after a params undo.
Jean-Marc Lasgouttes [Wed, 11 Mar 2015 15:55:51 +0000 (16:55 +0100)]
Avoid crash with after a params undo.

When doing a non-atomic undo, one should not try to merge with a previous params undo.

This fixes bug #7740.

9 years agoFirst step to make po python files to support both python 2 and python 3 (3.3+)
José Matos [Wed, 11 Mar 2015 13:41:10 +0000 (13:41 +0000)]
First step to make po python files to support both python 2 and python 3 (3.3+)

Most of the changes are related with dictionaries returning iterators instead of
    lists. (Iterators and not views as I wrote in the previous commit message)

    xrange -> range (since xrange is gone in python 3)

9 years agoFirst step to make lyx2lyx code support both python 2 and python 3 (3.3+)
José Matos [Wed, 11 Mar 2015 12:04:46 +0000 (12:04 +0000)]
First step to make lyx2lyx code support both python 2 and python 3 (3.3+)

Most of the changes are related with dictionaries returning views instead of
lists.

xrange -> range (since xrange is gone in python 3)

The code that is special to support both python 2 and 3 is enclosed in a comment
 \# Provide support for both python 2 and 3
and
 \# End of code to support for both python 2 and 3

And so later it can be removed safely when python 2 is no longer supported.

9 years agoctests: revert a MultilingualCaptions XeTeX test
Scott Kostyshak [Wed, 11 Mar 2015 03:35:49 +0000 (23:35 -0400)]
ctests: revert a MultilingualCaptions XeTeX test

This file and format exports correctly since 5753760b.

9 years agoRemove unsupported macros from autocompletion
Georg Baum [Tue, 10 Mar 2015 19:53:56 +0000 (20:53 +0100)]
Remove unsupported macros from autocompletion

We have some math macros that exist only because LyX can display them easily,
but which require user preamble code. These commands should not appear in
autocompletion, they are only there to make the formulas of users who actually
need thgese symbols and know what to put into the preamble more beautiful.

9 years agoFix generation of lyx_commit_hash.h
Jean-Marc Lasgouttes [Tue, 10 Mar 2015 18:11:48 +0000 (19:11 +0100)]
Fix generation of lyx_commit_hash.h

Now version.o is not recompiled on already built tree.

9 years agoProperly define MultiPar status of caption in the layout definition.
Juergen Spitzmueller [Tue, 10 Mar 2015 17:31:55 +0000 (18:31 +0100)]
Properly define MultiPar status of caption in the layout definition.

Also remove hardcoded paragraph break disabling.

Candidate for branch.

9 years agoCmake preparation to support python3
Kornel Benko [Tue, 10 Mar 2015 16:29:58 +0000 (17:29 +0100)]
Cmake preparation to support python3

9 years agoTake in account the parent's getStatus in macro templates
Jean-Marc Lasgouttes [Tue, 10 Mar 2015 15:05:22 +0000 (16:05 +0100)]
Take in account the parent's getStatus in macro templates

This avoids invoking the insert space dialog instead of the math version. Thereafter, spaces are correctly inserted inside macro templates.

This is the last part of the fix to #9432.

9 years agoDo not sanitize the anchor of cursor when selection is not set
Jean-Marc Lasgouttes [Tue, 10 Mar 2015 14:53:25 +0000 (15:53 +0100)]
Do not sanitize the anchor of cursor when selection is not set

Additionally, move the code to write to a stream from Cursor to CursorData (so that debugging undo is easier). We loose x_target, but I am not sure it is important.

This is the second part of bug #9432.

9 years agoCheck that DocIterator::sanitize only adds editable insets
Jean-Marc Lasgouttes [Mon, 9 Mar 2015 10:14:26 +0000 (11:14 +0100)]
Check that DocIterator::sanitize only adds editable insets

This fixes the crash on ticket #9432, but the bug there has other causes.

9 years agoFirst step to support python 2(.7) and 3(.3+)
José Matos [Tue, 10 Mar 2015 13:55:59 +0000 (13:55 +0000)]
First step to support python 2(.7) and 3(.3+)

When the work is finished the moniker "work in progress" should be removed.

9 years agoForgotten in previous commit
Kornel Benko [Mon, 9 Mar 2015 09:38:07 +0000 (10:38 +0100)]
Forgotten in previous commit

This is not needed bacause the command 'grep' is not
so language sensitive as pcregrep. It's only for the sake of consistence

9 years agoRemove the need of specific language packs for keytests
Kornel Benko [Mon, 9 Mar 2015 08:41:34 +0000 (09:41 +0100)]
Remove the need of specific language packs for keytests

The command pcregrep failed trying to set locales to
not installed language pack.

9 years agoReduce size of some svg icons.
Enrico Forestieri [Mon, 9 Mar 2015 01:38:12 +0000 (02:38 +0100)]
Reduce size of some svg icons.

The svg files produced by vector editors may end up containing a lot
of unused elements that increase their size without any impact on
quality. For example, this occurs when copy/pasting between images
such that unused effects or shadings simply clutter the files.
Removing these elements in some cases may reduce the size to one half
or one third of the original one, leaving unmodified the image quality.

9 years agoAdd another bunch of svg icons.
Enrico Forestieri [Sun, 8 Mar 2015 19:25:40 +0000 (20:25 +0100)]
Add another bunch of svg icons.

Also tweaked some existing icons for better rendering at default size.

9 years agopdfcomment.module: fix dependencies
Uwe Stöhr [Sat, 7 Mar 2015 23:41:08 +0000 (03:41 +0400)]
pdfcomment.module: fix dependencies

9 years agoMultilingualCaptions.lyx: port recent changes to master
Uwe Stöhr [Sat, 7 Mar 2015 23:39:54 +0000 (03:39 +0400)]
MultilingualCaptions.lyx: port recent changes to master

9 years agoFrench MultilingualCaptions.lyx: this time really the french version
Uwe Stöhr [Sat, 7 Mar 2015 09:16:35 +0000 (13:16 +0400)]
French MultilingualCaptions.lyx: this time really the french version

9 years agoSome code factorization for the Change template
Jean-Marc Lasgouttes [Thu, 5 Mar 2015 15:30:22 +0000 (16:30 +0100)]
Some code factorization for the Change template

The original motivation is to initialize the change_ member but do it only once.

This fixes coverity issue 23432.

9 years agoRemove variable properly now
Jean-Marc Lasgouttes [Thu, 5 Mar 2015 11:48:01 +0000 (12:48 +0100)]
Remove variable properly now

This is a follow-up to db1979f39871.