]> git.lyx.org Git - lyx.git/log
lyx.git
8 years agonb layout translations reviewed by Helge.
Pavel Sanda [Sat, 25 Jul 2015 18:03:50 +0000 (11:03 -0700)]
nb layout translations reviewed by Helge.

8 years agoDo not attempt to select an empty cell before inserting a longtable caption
Juergen Spitzmueller [Sat, 25 Jul 2015 10:48:13 +0000 (12:48 +0200)]
Do not attempt to select an empty cell before inserting a longtable caption

Fixes: #9692
8 years agoResolve shortcut conflict
Juergen Spitzmueller [Sat, 25 Jul 2015 08:15:44 +0000 (10:15 +0200)]
Resolve shortcut conflict

8 years agocorrect symlink creation - make them relative instead of absolute
Stephan Witt [Fri, 24 Jul 2015 16:41:26 +0000 (18:41 +0200)]
correct symlink creation - make them relative instead of absolute
follow up of f45202acde6a98d9338f162f8ba917b2432580aa

8 years agoAvoid duplicates of dictionaries and thesauri in distributed package
Stephan Witt [Thu, 23 Jul 2015 10:55:02 +0000 (12:55 +0200)]
Avoid duplicates of dictionaries and thesauri in distributed package

8 years agoGerman genitive of LyX is LyX' (not LyXs)
Juergen Spitzmueller [Thu, 23 Jul 2015 07:26:29 +0000 (09:26 +0200)]
German genitive of LyX is LyX' (not LyXs)

(see Amtl. Regel. § 96 (1))

8 years agoRemove ugly and now redundant ERT-braces from the docs
Juergen Spitzmueller [Thu, 23 Jul 2015 07:12:26 +0000 (09:12 +0200)]
Remove ugly and now redundant ERT-braces from the docs

These were used to prevent the former auto-logoification of LyX etc.

Also fixed some spelling errors I passed by.

8 years agoAnother go at improving row shortening
Jean-Marc Lasgouttes [Wed, 22 Jul 2015 22:39:27 +0000 (00:39 +0200)]
Another go at improving row shortening

Instead of remembering the last breakable element in the row, search
backward in the row and consider all string elements one by one until
a correct place to break is found.

This fixes the case where the row ends with a string, but there is no
space soon enough in the string to break it here. In this case, we
need to consider the previous row.

8 years agoComment.
Richard Heck [Wed, 22 Jul 2015 16:08:20 +0000 (12:08 -0400)]
Comment.

8 years agoFix bug noticed by Pavel. Apparently, some changes Abdel made to preview loading...
Richard Heck [Wed, 22 Jul 2015 15:04:35 +0000 (11:04 -0400)]
Fix bug noticed by Pavel. Apparently, some changes Abdel made to preview loading for 2.1.x broke LyXHTML preview of math as images.

We have been here before. The png files are generated, but then by the time we preview the document, they are gone. This is because (a) when the PreviewLoader for a Buffer is deleted, it removes all its previews and (b) we export in a clone, so that Buffer gets deleted before the preview is actually shown. So we need to check whether we are a preview for a clone before we delete anything.

8 years agoRemove ugly and now redundant ERT-braces from the German docs
Juergen Spitzmueller [Wed, 22 Jul 2015 12:54:26 +0000 (14:54 +0200)]
Remove ugly and now redundant ERT-braces from the German docs

These were used to prevent the former auto-logoification of LyX etc.

Also fixed some spelling errors I passed by.

8 years agopreserve symlinks on copying of user directory from previous version
Stephan Witt [Wed, 22 Jul 2015 04:37:52 +0000 (06:37 +0200)]
preserve symlinks on copying of user directory from previous version

8 years agoDo not break row at inset boundary if possible
Jean-Marc Lasgouttes [Wed, 22 Jul 2015 09:05:02 +0000 (11:05 +0200)]
Do not break row at inset boundary if possible

The first change is to concentrate on the last ro elements that contain separators and try to break it a a width that is shorter than both
- its current width (we want to break it, after all)
- the amount of space available.

This simple heuristic seems to give good results.

8 years agoImproved symlink creation for Mac OS for first LyX start
Stephan Witt [Mon, 20 Jul 2015 23:06:36 +0000 (01:06 +0200)]
Improved symlink creation for Mac OS for first LyX start

8 years agoUse the safer addName helper function to add the configure lock name to user support...
Stephan Witt [Mon, 20 Jul 2015 23:05:04 +0000 (01:05 +0200)]
Use the safer addName helper function to add the configure lock name to user support directory path name

8 years agoFix bug #9684: Update previews after background color change
Enrico Forestieri [Tue, 21 Jul 2015 22:56:34 +0000 (00:56 +0200)]
Fix bug #9684: Update previews after background color change

8 years agoMerge branch 'rowpainter2'
Jean-Marc [Tue, 21 Jul 2015 21:47:12 +0000 (23:47 +0200)]
Merge branch 'rowpainter2'

8 years agoRemember the cursor before an undo group
Jean-Marc Lasgouttes [Thu, 16 Jul 2015 12:13:13 +0000 (14:13 +0200)]
Remember the cursor before an undo group

With this patch, the cursor position before undo can be saved when
creating an undo group. Any such value will supercede parameters
passed to recordUndo. Only the first such cursor set by nested
beginUndoGoup takes effect.

Fixes bug #9663.

8 years agoReset properly the cursor font when leaving an inset to the left
Jean-Marc Lasgouttes [Tue, 21 Jul 2015 09:50:36 +0000 (11:50 +0200)]
Reset properly the cursor font when leaving an inset to the left

There was a missing setCursorFont there.

Fixes bug #6032.

8 years agoInitialize correctly the default keymap
Jean-Marc Lasgouttes [Tue, 21 Jul 2015 09:36:49 +0000 (11:36 +0200)]
Initialize correctly the default keymap

If keymaps are activated and there is a secondary keymap but no
primary one, then the pointer to the active keymap was 0x0. This can't
be good.

Fixes bug #9685.

8 years agoGet rid of SEPARATOR row element type
Jean-Marc Lasgouttes [Tue, 21 Jul 2015 07:51:06 +0000 (09:51 +0200)]
Get rid of SEPARATOR row element type

It is not used anymore.

Also get rid of a comment made irrelevant by recent changes.

8 years agoReset cursor font when entring an inset with char-forward/backward
Jean-Marc Lasgouttes [Fri, 17 Jul 2015 14:13:34 +0000 (16:13 +0200)]
Reset cursor font when entring an inset with char-forward/backward

When entering an inset from the keyboard, setCurrentFont()
was not called and thus the cursor retained the font that was set
before. This could create strange behavior that could often go
unnoticed by the user.

It is easy to imagine many other situations similar to #9597 where
the user could trigger this bug.

Fixes bug #9597.

8 years agoOnly compute string length every 30 characters
Jean-Marc [Mon, 20 Jul 2015 22:14:39 +0000 (00:14 +0200)]
Only compute string length every 30 characters

This makes paragraph rebreaking muh much faster, at least on my ancient iMac Core 2 Duo.

8 years agoRe-implement text justification
Jean-Marc Lasgouttes [Sat, 18 Jul 2015 23:22:10 +0000 (01:22 +0200)]
Re-implement text justification

* GuiFontMetrics::pos2x, x2pos: add support for inter-word spacing.
* GuiPainter::text: idem

* Row::Element::countSeparators:
  Row::countSeparators: new methods that count spaces in strings.
  Row::setSeparatorExtraWidth: new method (code lifted from TextMetrics.cpp).

* TextMetrics::computeRowMetrics: rely on the above methods.

* RowPainter::paintMispelledMarked: pass only a Row::Element object reference
  RowPainter::paintStringAndSel: idem; do not rely on values returned by
      Painter::text (trailing spaces do not honor wordspacing value).

8 years agoDo not break row elements at spaces
Jean-Marc Lasgouttes [Sat, 18 Jul 2015 23:22:10 +0000 (01:22 +0200)]
Do not break row elements at spaces

The goal of this commit is to make painting faster by reducing the
number of strings to paint. To this end, it is necessary to include
spaces in row elements.

Also importantly, this commit should fix existing problems with line
breaking in chinese text.

* TextMetrics::breakRow: do not do anything special for word separators.

* Row::add: when adding a character to a row element, keep the string
  width updated. If need be, it is possible to tweak this by updating
  every 10 characters, for example.

* GuiFontMetrics::breakAt (new): use QTextLayout to break text either
  at word boundary or at an arbitrary width.

* Row::Element::breakAt: use the above method.

* Row::shortenIfNeeded: simplify now that because there is no need for
  handling separator elements. This will be taken care of by the
  improved breakAt.

Two things remain to be done:

* remove all traces of separator row element

* re-implement text justification.

8 years agoSupport Photos in RasterImage template
Georg Baum [Mon, 20 Jul 2015 19:14:45 +0000 (21:14 +0200)]
Support Photos in RasterImage template

Actually photos (i.e. .jpg files) where supported previously, but for pdflatex
output an unneeded conversion to png was done. The RasterImage templates
behaves now exactly as InsetGraphics for these files: If the input format is
jpg, use that for pdflatex, else convert to png.

8 years agoReplace LaTeX logo with plain text
Georg Baum [Mon, 20 Jul 2015 19:05:34 +0000 (21:05 +0200)]
Replace LaTeX logo with plain text

This is another advantage of the new logo insets: We see in LyX where they are
inserted for the output. In these two cases, the text describes keywords of
the external template configuration file language, so these should not be
typeset as logos.

8 years agoUpdate sk.po
Kornel Benko [Sun, 19 Jul 2015 14:33:11 +0000 (16:33 +0200)]
Update sk.po

8 years agoChangelog-UserGuide-LyX_22x.txt: add a todo note
Uwe Stöhr [Sun, 19 Jul 2015 13:03:42 +0000 (15:03 +0200)]
Changelog-UserGuide-LyX_22x.txt: add a todo note

for new external template

Please also announce new features here:
http://wiki.lyx.org/LyX/NewInLyX22

8 years agoAdd template for vector graphics
Georg Baum [Sun, 19 Jul 2015 11:42:22 +0000 (13:42 +0200)]
Add template for vector graphics

The difference to bitmap graphics is that these will be included as PDF for
pdflatex, so the vector properties are retained if a suitable conversion path
exists.

8 years agoRewrite RowPainter::paintOnlyInsets to use row elements
Jean-Marc Lasgouttes [Sat, 18 Jul 2015 18:37:53 +0000 (20:37 +0200)]
Rewrite RowPainter::paintOnlyInsets to use row elements

8 years agoStore InsetGraphics bounding box in parsed form
Georg Baum [Sat, 18 Jul 2015 15:02:54 +0000 (17:02 +0200)]
Store InsetGraphics bounding box in parsed form

This is like InsetExternal does it, avoids some string parsing, reduces the
amount of code and makes it more robust.

8 years agoRemove relative units from bounding box
Georg Baum [Sat, 18 Jul 2015 14:41:52 +0000 (16:41 +0200)]
Remove relative units from bounding box

When adding units to the external inset bounding box I overlooked that
InsetGraphics supports only bb, cm, mm and in. Therefore I added too many
units for the external insets. We are not as strict as the graphics inset
and allow all absolute units, but no relative ones.

8 years agoLengthCombo does not depend on VSpace
Georg Baum [Sat, 18 Jul 2015 14:29:04 +0000 (16:29 +0200)]
LengthCombo does not depend on VSpace

so use the right include

8 years agoDevirtualize some methods
Georg Baum [Sat, 18 Jul 2015 14:23:24 +0000 (16:23 +0200)]
Devirtualize some methods

These do not need to be virtual, since no class inherits from LengthCombo.h,
and they do not exist in the base class either.

8 years agoForgot that in 81e592603
Georg Baum [Sat, 18 Jul 2015 06:49:42 +0000 (08:49 +0200)]
Forgot that in 81e592603

8 years agoRewrite Cursor::posVisToRowExtremity without Bidi class
Jean-Marc Lasgouttes [Fri, 17 Jul 2015 22:39:55 +0000 (00:39 +0200)]
Rewrite Cursor::posVisToRowExtremity without Bidi class

It is trivial to implement it using TextMetrics::getPosNearX.

8 years agoSome fixups to row margins
Jean-Marc Lasgouttes [Fri, 17 Jul 2015 22:07:30 +0000 (00:07 +0200)]
Some fixups to row margins

In breakRow set left and right margin properly for RTL paragraphs.
Remove corresponding code from ComputeRowMetrics.

In row painter, check the use of left and right margin depending on
context. The problem in the original text is that the various
leftMargin() methods actually represent right margin for RTL
paragraphs. This should be fixed eventually.

8 years agoar.po: update from Hatim
Uwe Stöhr [Fri, 17 Jul 2015 20:16:00 +0000 (22:16 +0200)]
ar.po: update from Hatim

8 years agonew French translation of the PDF-comment example file
Uwe Stöhr [Fri, 17 Jul 2015 20:11:46 +0000 (22:11 +0200)]
new French translation of the PDF-comment example file

8 years agoFix logic error in on-screen font shape
Jean-Marc Lasgouttes [Fri, 17 Jul 2015 10:07:52 +0000 (12:07 +0200)]
Fix logic error in on-screen font shape

This made text in smallcaps+emph display as upright instead of plain
emph. There is no latex font for smallcaps + emph, but it is not a
reason for displaying it wrong.

8 years agoChangelog-UserGuide-LyX_22x.txt: add a todo note
Uwe Stöhr [Thu, 16 Jul 2015 22:21:18 +0000 (00:21 +0200)]
Changelog-UserGuide-LyX_22x.txt: add a todo note

8 years agoEmbeddedObjects.lyx: update all language versions after [d16a95af/lyxgit]
Uwe Stöhr [Thu, 16 Jul 2015 22:19:27 +0000 (00:19 +0200)]
EmbeddedObjects.lyx: update all language versions after [d16a95af/lyxgit]

Please use change tracking when modifying the docs

8 years agoRemove old cruft
Jean-Marc Lasgouttes [Thu, 16 Jul 2015 21:34:33 +0000 (23:34 +0200)]
Remove old cruft

There are many things that are not necessary anymore:

* remove methods paintText2, paintFromPos, leftMargin, paintInlineCompletion

* Remove use of Bidi class.

* add a Font and a Change parameter to paintInset.

Also remove a comment that describes what we have just done.

8 years agoRely on Row elements to draw rows.
Jean-Marc Lasgouttes [Thu, 16 Jul 2015 21:18:55 +0000 (23:18 +0200)]
Rely on Row elements to draw rows.

The new version of paintText is quite short. Elements are treated one
by one. They are already in the right ordering.

The other changes are:

* a new paintChange method is added (using code lifted from old version)

* in paintLast, the support for end of paragraph markers is removed
  (this is already part of the Row object.

8 years agoCode cleanup in RowPainter
Jean-Marc Lasgouttes [Thu, 16 Jul 2015 21:10:44 +0000 (23:10 +0200)]
Code cleanup in RowPainter

* move some code that handle selection to paintInset()

* change the arguments of paintSeparator()

8 years ago#9496 add a check for requested thesaurus files if thesaurusdir_path of lyxrc is...
Stephan Witt [Thu, 16 Jul 2015 20:06:23 +0000 (22:06 +0200)]
#9496 add a check for requested thesaurus files if thesaurusdir_path of lyxrc is empty
This path configuration variable is used for user defined location.
There are other possible places for the thesauri like mythes installers or bundled with LyX.

8 years agoSupport units in external inset bbox
Georg Baum [Thu, 16 Jul 2015 20:04:08 +0000 (22:04 +0200)]
Support units in external inset bbox

This brings the external inset on par with the graphics insets as far as the
clipping option is concerned. The graphicxs package supports both: A bounding
box without units (which means that bp ia assumed), and a bounding box with
units, so we can simply output the values including the units.

8 years agoUpdate default path prefix for Mac OS to include the texbin folder inside the TeX...
Stephan Witt [Thu, 16 Jul 2015 19:52:55 +0000 (21:52 +0200)]
Update default path prefix for Mac OS to include the texbin folder inside the TeX Library path and remove old powerpc path entries.
The upcoming Mac OS version 10.11 (El Capitan) will not allow TeX the installation of links inside the /usr directory anymore.

8 years ago#9496 factor out getting language from LFUN args or cursor position in speller LFUNs
Stephan Witt [Thu, 16 Jul 2015 19:26:41 +0000 (21:26 +0200)]
#9496 factor out getting language from LFUN args or cursor position in speller LFUNs

8 years agoVCBackend.cpp: addendum to [f51d7fdd/lyxgit]
Uwe Stöhr [Thu, 16 Jul 2015 19:10:50 +0000 (21:10 +0200)]
VCBackend.cpp: addendum to [f51d7fdd/lyxgit]

8 years agoRemove InsetGraphics noUnzip parameter
Georg Baum [Thu, 16 Jul 2015 18:44:47 +0000 (20:44 +0200)]
Remove InsetGraphics noUnzip parameter

Being able to compile document with zipped .eps files was a useful feature of
the graphicxs package 20 years ago, but the LyX support is no longer relevant:
- The flag is ignored if preview is on
- If pdflatex is used then uncompressing happens during the compilation anyway
- If set, the flag prevents LyX from issuing proper error messages if
something with the image is wrong
- For hard disk capacities from 20 years ago not uncompressing is a useful
feature, but for current hard disk capacities it does not matter
- The external inset does not have it, and if we want to merge both insets
one day we would need to implement it there, which is even more difficult
than in InsetGraphics

8 years agoUpdate comment.
Jean-Marc Lasgouttes [Thu, 16 Jul 2015 14:29:55 +0000 (16:29 +0200)]
Update comment.

8 years agoEnd all Undo::Private members names with an underscore
Jean-Marc Lasgouttes [Thu, 16 Jul 2015 12:48:23 +0000 (14:48 +0200)]
End all Undo::Private members names with an underscore

8 years agoMove some functions out of Bidi.*
Jean-Marc Lasgouttes [Thu, 16 Jul 2015 09:55:45 +0000 (11:55 +0200)]
Move some functions out of Bidi.*

The functions reverseDirectionNeeded() and reverseDirectionNeeded() do
not rely on the Bidi class. The first one is changed into a Cursor
method, and the second one is replaced with explicit code.

8 years agoCompilation fix for windows
Jean-Marc Lasgouttes [Thu, 16 Jul 2015 07:45:45 +0000 (09:45 +0200)]
Compilation fix for windows

Since commit 7ac70092, lyx::dispatch returns a DispatchResult const &,
which is ignored in the cases below. Nevertheless, the windows
compiler complains that it does not know this type. Gcc and clang can
deal with it without problem.

8 years agoRemove extra row painting added by horizontal scroll branch
Jean-Marc Lasgouttes [Wed, 15 Jul 2015 20:48:49 +0000 (22:48 +0200)]
Remove extra row painting added by horizontal scroll branch

The bug workaround added an extra repaint, which can be very bad when
editing large tables.

It turns out that the bug this is trying to fix is due to the handling
of LFUN_LINE_END in InsetMathGrid. Adding the same code as in
InsetMathNest fixes the problem.

The workaround can therefore be removed.

8 years agoRename paintTextAndSel to paintStringAndSel
Jean-Marc Lasgouttes [Wed, 15 Jul 2015 20:47:47 +0000 (22:47 +0200)]
Rename paintTextAndSel to paintStringAndSel

8 years agoWhen adding completion to a row, add also the unique part
Jean-Marc Lasgouttes [Wed, 15 Jul 2015 19:38:55 +0000 (21:38 +0200)]
When adding completion to a row, add also the unique part

The unique and non-unique parts of the completion are show in different colors.

8 years agoAvoid crash when inserting space in the middle of misspelled character
Jean-Marc Lasgouttes [Wed, 15 Jul 2015 18:36:51 +0000 (20:36 +0200)]
Avoid crash when inserting space in the middle of misspelled character

This is a fixup to commit 4796e6b3.

8 years agoAdd "TODO-comments" with link to textcyr/textgreek tickets.
Günter Milde [Wed, 15 Jul 2015 16:55:30 +0000 (18:55 +0200)]
Add "TODO-comments" with link to textcyr/textgreek tickets.

Add links to tickets #9637 and  #9681 at places that require
changes in the code and/or comments.

8 years agoAuto feature for minibuffer toolbar
Jean-Marc Lasgouttes [Sat, 18 Apr 2015 17:10:33 +0000 (19:10 +0200)]
Auto feature for minibuffer toolbar

Now the minibuffer toolbar is "auto" by default. It is opened by
command-execute (M-x) and closed when the command is executed without error.

* make lyx::dispatch return a DispatchResult struct

* there is a new MINIBUFFER type of toolbar, that can be used for this use.

* remove special handling of M-x in minnibuffer; Escape can be used instead. Fix focus in this case.

* when minibuffer toolbar is "auto", make the toolbar close itself after
  - a command has been executed without error
  - an empty command has been executed
  - the Escape key has been used

[this is actually commit fdcff02a, which was later reverted at dd61d8cf]

8 years agoAvoid breaking kerning with continuous spell checking
Jean-Marc Lasgouttes [Tue, 14 Jul 2015 21:45:41 +0000 (23:45 +0200)]
Avoid breaking kerning with continuous spell checking

There is a mismatch between the way text is tokenized in Row objects
and the way it is shown on screen. When metrics are computed,
continuous spell checking has not been done yet. Yet, the row painter
explicitly breaks words at spell status boundaries. This creates
problem with a text like "PMP," (see bug #9649), where there is a
negative kerning before the comma.

This is solved by not taking in account spell status when drawing
text, and drawing spell underlines separately.

* replace Paragraph::isSameSpellRange with new method getSpellRange.

* merge RowPainter::paintChars into RowPainter::paintFromPos

* move the actual text painting code into the new paintTextAndSel.

* merge some code from paintFromPos to paintMisspelledMark

* in paintMisspelledMark, scan the string which needs to be annotated
  and add dashed line below text marked as misspelled.

Fixes bug #9649.

8 years agoConvert a few more variables to int
Jean-Marc Lasgouttes [Wed, 15 Jul 2015 08:16:42 +0000 (10:16 +0200)]
Convert a few more variables to int

This avoids warnings with windows compiler. It is a pity that even
clang does not give those. Maybe I missed them with the large amount
of boost warnings that it spits.

8 years agoAlways use unicode override characters to enforce direction
Jean-Marc Lasgouttes [Tue, 14 Jul 2015 21:19:26 +0000 (23:19 +0200)]
Always use unicode override characters to enforce direction

There is a second solution in the code which uses some undocumented Qt
stuff, but it does not work in some cases. The best is to rely on the
documented way.

8 years agoFix comment.
Jean-Marc Lasgouttes [Tue, 14 Jul 2015 16:03:58 +0000 (18:03 +0200)]
Fix comment.

8 years agoUse integer line thickness in painter
Jean-Marc Lasgouttes [Tue, 14 Jul 2015 15:42:45 +0000 (17:42 +0200)]
Use integer line thickness in painter

There is no need for real-valued line width in painters. Actually, this even leads to uneven dashes for continuous spell checker.

The new code is supposed to be equivalent to the old one, just more readable. From this, we can try to see whether some lines need to be made thicker on HiDPI screens.

8 years agoFix #9679 textcyr fails without fontenc
Günter Milde [Tue, 14 Jul 2015 12:47:44 +0000 (14:47 +0200)]
Fix #9679 textcyr fails without fontenc

8 years agoinstaller/include/filelist.nsh: add the QtSvg library
Uwe Stöhr [Mon, 13 Jul 2015 19:29:48 +0000 (21:29 +0200)]
installer/include/filelist.nsh: add the QtSvg library

8 years agoDo not forget QtSvg when using pkgconfig in autoconf
Jean-Marc [Sun, 12 Jul 2015 16:32:41 +0000 (18:32 +0200)]
Do not forget QtSvg when using pkgconfig in autoconf

8 years agoCmake tests: Add missing definition for check_Length_SOURCES
Kornel Benko [Sun, 12 Jul 2015 16:59:24 +0000 (18:59 +0200)]
Cmake tests: Add missing definition for check_Length_SOURCES

This was forgotten in previous commit ccbac353eaea45f8480523caba9c0697cb3eacb2

8 years agoFix Length::inBP()
Georg Baum [Sun, 12 Jul 2015 16:36:19 +0000 (18:36 +0200)]
Fix Length::inBP()

Length::inBP() returned the wrong values for most units. I guess that this was
caused by the default case in the switch statement: It did probably exist
before the other units were added.
inBP() is now correct for all units except the font dependent ones em, ex and
mu and the percent units: For these only approximate values are returned,
since not all needed information is available.

8 years agoAdd unit test for the Length class
Georg Baum [Sun, 12 Jul 2015 16:08:41 +0000 (18:08 +0200)]
Add unit test for the Length class

I noticed that inBP() is wrong for several units and want to fix it.
The unit test will help me to find regressions.

8 years agoFix Ticket #9607 (support comma below accent in unicodesymbols).
Günter Milde [Sun, 12 Jul 2015 14:21:25 +0000 (16:21 +0200)]
Fix Ticket #9607 (support comma below accent in unicodesymbols).

LaTeXFeatures defines \textcommabelow and \textcommaabove based on a
generic \LyXTextAccent and declares TextCompositeCommands for the Baltic
letters in the T1 font encoding, using \textcommaabove for the small letter g
and \textcommabelow else.

This allows overwriting of the composite definition for other font encodings.
Especially, it does not interfere with the polish/baltic font encoding L7x
(supported by LatinModern and TeXGyre fonts)  that provides pre-composed
glyphs.

8 years agoGreek subsript letters require "textgreek" flag.
Günter Milde [Sat, 11 Jul 2015 16:18:28 +0000 (18:18 +0200)]
Greek subsript letters require "textgreek" flag.

Add the "textgreek" feature to entries for greek subscript letters
in "unicodesymbols".

8 years agoFix #9636 textgreek: restore compatibility with lgrenc.def.
Günter Milde [Sat, 11 Jul 2015 13:39:02 +0000 (15:39 +0200)]
Fix #9636 textgreek: restore compatibility with lgrenc.def.

Greek characters with perispomeni (tilde) accent were not properly shown
in the output document, because the "textgreek" feature re-defined \~ in
a way incompatible with lgrenc.def since version 0.8  (2013-05-13)
(package greek-fontenc).

The compatibility-definition is required for older versions of the font setup
(before the move of "lgrenc.def" from "babel" to "greek-fontenc").
It is now done with "ProvideTextCommand" to not overwrite the more complete
implementation in lgrenc.def.
With the compatibility definition, combined diacritics with tilde
must be input with the tilde first (e.g. \~>, not \>~).
"unicodesymbols" is changed accordingly.

Also, some LICRs for combining Greek diacritical characters were added to
Unicodesymbols.

8 years agoFontEncoding format is "utf8" instead of "utf-8"
Scott Kostyshak [Sat, 11 Jul 2015 00:16:55 +0000 (20:16 -0400)]
FontEncoding format is "utf8" instead of "utf-8"

Otherwise LyX does not recognized the encoding.

This is a follow-up of commit f7518565.

8 years agoApply #9652: fixes for the lib/language file.
Günter Milde [Thu, 9 Jul 2015 16:41:28 +0000 (18:41 +0200)]
Apply #9652: fixes for the lib/language file.

Add font encodings auto-set by babel.

Set font encoding for georgian to the babel default.

Remove InternalEncoding from languages that use a font encoding
compatible to T1.

Change (LaTeX input) encoding for Serbian (cyrillic) and Romanian.

See #9652 for details.

8 years agoPosition better the cursor after math-display
Jean-Marc Lasgouttes [Wed, 8 Jul 2015 09:01:42 +0000 (11:01 +0200)]
Position better the cursor after math-display

When the cursor had idx > 0 (since math-display does merging anyways),
reset cursor to the start of the inset. This looks less strange than
setting it at the end.

Now at least the basic case of a displayed equation with cursor
somewhere at top-level is handled correctly.

The math-display lfun operates at top level in the math inset.
Therefore, when the cursor is in an inner inset, it will after the
lfun be moved at top level. Unfortunately, there is no way that I know
f to detect this in Inset::doDispatch.

Even if we could, as things stand, it is difficult to keep the cursor in the
inner inset, especially if the inner inset moves : this happens for
example when moving from eqnarray to inline maths.

Therefore this fix is the best I can think of now.

Fixes part of bug #9664.

8 years agoRemove "notermination" flags from combining characters in "unicodesymbols".
Günter Milde [Thu, 9 Jul 2015 09:54:37 +0000 (11:54 +0200)]
Remove "notermination" flags from combining characters in "unicodesymbols".

This fixes bug #9615.

The "notermination" flag tells LyX, that terminating an LICR macro with {} is
not necessary. This is normally the case for all macros with non-alphabetical
name (e.g. \{).

However, combining diacritical characters are converted to *accent macros*,
which expect an argument (the base character).
In Unicode, the base character precedes the combining character,
in LaTeX the combining character precedes the base character.
LyX changes the order of the two characters to get this right,
e.g. "x" + "combining tilde" becomes "\~{x}".

In the special case there is no preceding character (e.g. at the start of the
document or a paragraph), Unicode shows the combining diacritical character
without base character.
The replacement is currently not "terminated" (e.g. "\~"), because of the
"notermination=text" flags in "unicodesymbols".
The accent macros take the *following* character as base character, which is
clearly not intended.
In case of a paragraph consisting of just one combining diacritical character,
LaTeX compilation fails with an error.

With the patch, LyX writes the accent macros with an empty argument,
e.g.  "\~{}", the output is similar to the view in the GUI with the diacritical
character on its own, not on the follwoing character.

8 years agoDon't touch @rpath based frameworks with install_name_tool
Stephan Witt [Wed, 8 Jul 2015 16:02:21 +0000 (18:02 +0200)]
Don't touch @rpath based frameworks with install_name_tool

8 years agoQt5.5 cannot be build in parallel anymore
Stephan Witt [Wed, 8 Jul 2015 16:01:05 +0000 (18:01 +0200)]
Qt5.5 cannot be build in parallel anymore
Automatic symlink creation for Qt frameworks

8 years agoQt 5.5.x introduced a new framework dependency: QtDBus
Stephan Witt [Wed, 8 Jul 2015 15:58:07 +0000 (17:58 +0200)]
Qt 5.5.x introduced a new framework dependency: QtDBus

8 years agoAdd paths of private frameworks to linker rpath options
Stephan Witt [Wed, 8 Jul 2015 15:56:26 +0000 (17:56 +0200)]
Add paths of private frameworks to linker rpath options

8 years agoSmall clean-up to debug support
Jean-Marc Lasgouttes [Wed, 8 Jul 2015 08:57:04 +0000 (10:57 +0200)]
Small clean-up to debug support

8 years agoUse font 'Scheherazade' in tests of Arabic docs
Scott Kostyshak [Tue, 7 Jul 2015 10:52:03 +0000 (06:52 -0400)]
Use font 'Scheherazade' in tests of Arabic docs

We do not currently have any Arabic documents, but when we do, these
fonts will be used for the tests that use system fonts.

They can be installed on Debian-type systems from the
'fonts-sil-scheherazade' package.

8 years agoRemove unneeded header
Enrico Forestieri [Mon, 6 Jul 2015 21:47:22 +0000 (23:47 +0200)]
Remove unneeded header

Forgot this at 4dff1394

8 years agoFix clash between marvosym and bbding packages (fixes #7811).
Günter Milde [Mon, 6 Jul 2015 12:10:34 +0000 (14:10 +0200)]
Fix clash between marvosym and bbding packages (fixes #7811).

Both marvosym and bbding define the "Cross" macro.
To prevent a compilation error due to conflicting definitions,
we undefine the "Cross" macro if both packages are required.

8 years agoUpate layouttranslations for he.po.
Pavel Sanda [Sun, 5 Jul 2015 22:26:52 +0000 (15:26 -0700)]
Upate layouttranslations for he.po.

8 years agoRemerge he.po
Pavel Sanda [Sun, 5 Jul 2015 21:45:50 +0000 (14:45 -0700)]
Remerge he.po

8 years agoAvoid calling Buffer::getMacro inside the MathMacro copy constructor
Enrico Forestieri [Sun, 5 Jul 2015 18:44:54 +0000 (20:44 +0200)]
Avoid calling Buffer::getMacro inside the MathMacro copy constructor

It turns out that it is always better using the copy of the MacroData
for updating the macro_ pointer to avoid problems related to the cursor
position.

8 years agoFix a couple of issues with filename encodings.
Enrico Forestieri [Sun, 5 Jul 2015 13:45:40 +0000 (15:45 +0200)]
Fix a couple of issues with filename encodings.

* Take into account the filesystem encoding for the zip export on *nix
  such that the representation of filenames in the zip archive is not
  mangled, when possible. This only concerns the way filenames are displayed
  as their creation in the filesystem was nevertheless correct.

* On Windows, try to obtain the command line parameters from the wide char
  representation by directly accessing the platform APIs through ctypes.
  This allows to also deal with filenames not exactly representable using
  the current code page and corrects a bug resulting in silently dropping
  those kind of filenames.

8 years agolyxpak: Fix the common path prefix calculation.
Guy Rutenberg [Fri, 26 Jun 2015 15:35:52 +0000 (18:35 +0300)]
lyxpak: Fix the common path prefix calculation.

The old implementation could fail in some rare cases.

8 years agoFix for #9659 - Qt may send more then one close event to a window. Therefore multiple...
Stephan Witt [Sat, 4 Jul 2015 16:59:29 +0000 (18:59 +0200)]
Fix for #9659 - Qt may send more then one close event to a window. Therefore multiple calls to unregisterView for a GuiView are possible. The first one removes the view from the list of known views, subsequent calls do nothing.

8 years agoar.po: update from Hatim
Uwe Stöhr [Sat, 4 Jul 2015 12:23:17 +0000 (14:23 +0200)]
ar.po: update from Hatim

9 years agoRemove an incorrect horizontal size policy
Scott Kostyshak [Thu, 2 Jul 2015 14:14:00 +0000 (10:14 -0400)]
Remove an incorrect horizontal size policy

This effectively makes the horizontal size policy "minimum", which
makes it clear that there is no advantage for this widget of
increasing the horizontal size past the minimum, allowing other
GUI elements to use the horizontal space if useful.

This change for caseCB is consistent with wordsCB and searchbackCB.

9 years agoAvoid code duplication
Enrico Forestieri [Tue, 30 Jun 2015 17:27:38 +0000 (19:27 +0200)]
Avoid code duplication

9 years agoAvoid using a dangling pointer
Enrico Forestieri [Tue, 30 Jun 2015 16:54:19 +0000 (18:54 +0200)]
Avoid using a dangling pointer

This can happen when a macro is copied and then the document where
it is defined is closed. In this case, the macro survives in the
cut stack but the the buffer pointer is dangling.

9 years agoRevert "Auto feature for minibuffer toolbar"
Jean-Marc Lasgouttes [Tue, 30 Jun 2015 09:09:48 +0000 (11:09 +0200)]
Revert "Auto feature for minibuffer toolbar"

This reverts commit fdcff02a3124845d1033d3d804cede127850ff0f.

This was pushed too early, we are not ready yet.

9 years agoConstify RowPainter (no intended change)
Jean-Marc Lasgouttes [Mon, 29 Jun 2015 14:12:11 +0000 (16:12 +0200)]
Constify RowPainter (no intended change)