]>
git.lyx.org Git - lyx.git/log
Richard Heck [Sun, 18 Dec 2016 03:16:49 +0000 (22:16 -0500)]
Don't need the else, since all codepaths return.
Richard Heck [Sun, 18 Dec 2016 03:13:37 +0000 (22:13 -0500)]
Invert logic.
Richard Heck [Sun, 18 Dec 2016 03:12:27 +0000 (22:12 -0500)]
Re-organize, whitespace.
Richard Heck [Sun, 18 Dec 2016 03:09:03 +0000 (22:09 -0500)]
Remove useless for loop.
Juergen Spitzmueller [Thu, 29 Dec 2016 16:36:55 +0000 (17:36 +0100)]
More precise format description
Juergen Spitzmueller [Thu, 29 Dec 2016 15:48:22 +0000 (16:48 +0100)]
The usual tex2lyx tests update after file format change
Juergen Spitzmueller [Thu, 29 Dec 2016 15:45:19 +0000 (16:45 +0100)]
Add support for the Crimson font
We use the more comprehensive cochineal package if available and fall
back to the crimson package, if not.
Math support is provided by means of newtxmath
Fixes: #9974, #9976
Scott Kostyshak [Fri, 25 Nov 2016 02:47:45 +0000 (21:47 -0500)]
Warn if child has diff non-Tex font settings
It is easy to come across problems when the settings are not the
same.
This is consistent with our current warning about different document
classes.
For discussion and a motivating MWE, see:
https://www.mail-archive.com/search?l=mid&q=
20161121024539 .kn6rsqotaw4n2efk%40klay
Kornel Benko [Thu, 29 Dec 2016 08:43:00 +0000 (09:43 +0100)]
Update sk.po
Juergen Spitzmueller [Thu, 29 Dec 2016 08:17:53 +0000 (09:17 +0100)]
Fix two hyperlink-insert problems
1. Do not prematurely cut selection (#10306); patch proposed by Daniel Ramöller
2. Obey lfun argument, even if there is a selection
Juergen Spitzmueller [Thu, 29 Dec 2016 08:04:22 +0000 (09:04 +0100)]
de.po
Jean-Marc Lasgouttes [Wed, 28 Dec 2016 21:44:40 +0000 (22:44 +0100)]
Fixup
c49cd699 : QString::toStdString is not always available
This method requires STL support in Qt. Fortunately, it is not needed
here.
Juergen Spitzmueller [Wed, 28 Dec 2016 15:50:25 +0000 (16:50 +0100)]
Add Joel Kulesza to the credits
Juergen Spitzmueller [Wed, 28 Dec 2016 15:34:44 +0000 (16:34 +0100)]
From
c7899a30a0b5975bf599a69ecd11ab25e1cdf1a4 Mon Sep 17 00:00:00 2001
From: "Joel A. Kulesza" <jkulesza@gmail.com>
Date: Mon, 24 Oct 2016 17:37:58 -0600
Subject: [PATCH] Add "Swap & Reverse" to math delimiter dialog
When "Keep matched" is unchecked, a button becomes enabled to "Swap &
Reverse" the left and right delimiters. This is expected to be of use
with line-wrapped equations featuring one or more set of delimiters that
break across the lines. When "Keep matched" is checked, the button is
visible but disabled.
The most common use case is expected to be the user entering a pair of
unmatched delimiters on the first line of an equation (e.g., "(" and
"(None)"), entering the inner text, going to the next line, and
inserting the opposite set of delimiters (e.g., "(None)" and ")").
This button will negate the need to find the correct corresponding
combination. However, it relies on the dialog's memory of the previous
unmatched set.
This change addresses Ticket #10457
-----------
Modifications by spitz to the original patch:
* Only enable the button if an unmatched pair is selected
* Consider l7n when locating the string "(None)"
* Add an accelerator and a tooltip to the dialog
* Simplify the code a bit
Guillaume Munch [Tue, 27 Dec 2016 18:25:46 +0000 (19:25 +0100)]
Status bar information for InsetMathKern
\mkern is invisible in mathed as a consequence of
10c8d51b . Add information in
the status bar when it is there.
Juergen Spitzmueller [Tue, 27 Dec 2016 15:02:31 +0000 (16:02 +0100)]
Add some line breaks
Kornel Benko [Tue, 27 Dec 2016 11:22:46 +0000 (12:22 +0100)]
Update sk.po
Juergen Spitzmueller [Tue, 27 Dec 2016 11:06:54 +0000 (12:06 +0100)]
Improve quotation mark opening/closing guess
Fixes: #8831
This introduces
* a new inset member isPartOfTextSequence() that returns
whether the inset produces something visible at the current position
in the text flow
* an isOpenPunctuation() test that returns whether a character is in the
'Punctuation, Open' unicode class. This is used instead of just checking
for two (Western, ASCII) opening brackets
It also fixes the isChar() and isLetter() value of InsetSpecialChar,
since some types have not been assigned correctly.
Juergen Spitzmueller [Tue, 27 Dec 2016 07:39:06 +0000 (08:39 +0100)]
Update quote-insert bindings
Juergen Spitzmueller [Mon, 26 Dec 2016 13:41:14 +0000 (14:41 +0100)]
Handle the case of TeX fonts LuaTeX
Juergen Spitzmueller [Mon, 26 Dec 2016 13:04:52 +0000 (14:04 +0100)]
update tex2lyx tests
Juergen Spitzmueller [Mon, 26 Dec 2016 13:03:48 +0000 (14:03 +0100)]
Support for CJK quotation marks
File format change
Fixes: #2712
Juergen Spitzmueller [Mon, 26 Dec 2016 10:25:34 +0000 (11:25 +0100)]
Do not attempt to add dynamic quotes to the style combo
Juergen Spitzmueller [Mon, 26 Dec 2016 09:47:28 +0000 (10:47 +0100)]
add missing bit
Juergen Spitzmueller [Sun, 25 Dec 2016 16:23:07 +0000 (17:23 +0100)]
Use master buffer params for quote style
+ some formatting polishment
Juergen Spitzmueller [Sun, 25 Dec 2016 16:13:42 +0000 (17:13 +0100)]
de.po
Juergen Spitzmueller [Sun, 25 Dec 2016 12:38:52 +0000 (13:38 +0100)]
UserGuide: Document the quotation mark changes
Juergen Spitzmueller [Sun, 25 Dec 2016 11:20:06 +0000 (12:20 +0100)]
Update tex2lyx tests
Juergen Spitzmueller [Sun, 25 Dec 2016 11:19:02 +0000 (12:19 +0100)]
Implement dynamic quotation marks
File format change.
Juergen Spitzmueller [Sat, 24 Dec 2016 14:08:04 +0000 (15:08 +0100)]
de.po
Juergen Spitzmueller [Sat, 24 Dec 2016 13:31:59 +0000 (14:31 +0100)]
Update tex2lyx tests
Juergen Spitzmueller [Sat, 24 Dec 2016 13:27:00 +0000 (14:27 +0100)]
Some new quote styles
* b `british' (``inner quotation'')
* w >>swedishg>> ('inner quotation') ["g" = Guillemets]
* f <<french>> (``inner quotation'')
* i <<frenchin>> (<<inner quotation>>) ["in" = Imprimerie Nationale]
* r <<russian>> (,,inner quotation``)
Rename "french" to "swiss"
Also rename "single/double" to "secondary/primary" ("inner/outer" in
the UI) and "left/right" to "opening/closing". Note that the inset
identifier string is left as is ("s/d" and "l/r")
Juergen Spitzmueller [Sat, 24 Dec 2016 12:32:49 +0000 (13:32 +0100)]
Fix glitch introduced in
2e255b1c4f
set correct combo values.
Juergen Spitzmueller [Sat, 24 Dec 2016 09:13:51 +0000 (10:13 +0100)]
Restructure InsetQuotes for better extensibilty
The current char-based implementation gets increasingly unreadable,
especially if styles are added that do not follow the strict
single-double paradigm.
Juergen Spitzmueller [Wed, 21 Dec 2016 14:22:32 +0000 (15:22 +0100)]
de.po
Juergen Spitzmueller [Wed, 21 Dec 2016 14:17:30 +0000 (15:17 +0100)]
Add "Plain" quotation mark style
File format change
Juergen Spitzmueller [Wed, 21 Dec 2016 11:29:32 +0000 (12:29 +0100)]
Handle fontenc in InsetQuotes::updateBuffer
Uwe Stöhr [Wed, 21 Dec 2016 01:21:59 +0000 (02:21 +0100)]
EmbeddedObjects.lyx: fix some typos and few improvements
Juergen Spitzmueller [Tue, 20 Dec 2016 17:57:34 +0000 (18:57 +0100)]
Update tex2lyx tests for format 519.
Juergen Spitzmueller [Tue, 20 Dec 2016 17:54:07 +0000 (18:54 +0100)]
Rename \\quotes_language to\\quotes_style
File format change.
Juergen Spitzmueller [Tue, 20 Dec 2016 16:55:43 +0000 (17:55 +0100)]
Rename some quote-related params
Quote Language -> Quote Style
Quote Times-> Quote Level
No change in functionality.
Kornel Benko [Tue, 20 Dec 2016 15:26:07 +0000 (16:26 +0100)]
Cmake tests: Remove use of 'UNRELIABLE' label
Using this label in invertedTests expands the testname unnecessary, so that
we get e.g. labels like:
SUSPENDED.UNRELIABLE.WRONG_OUTPUT.UNRELIABLE_export/doc/de/EmbeddedObjects_pdf4_texF
OTOH, if using label 'unreliable', we get a warning about label-names clash.
The best is to reset any previous label setting.
Jean-Marc Lasgouttes [Tue, 20 Dec 2016 11:14:21 +0000 (12:14 +0100)]
Update description of cursor classes
Uwe Stöhr [Tue, 20 Dec 2016 01:46:47 +0000 (02:46 +0100)]
EmbeddedObjects.lyx: new description how to change table line colors within tables
will be backported the tomorrow
Guillaume Munch [Mon, 19 Dec 2016 23:15:59 +0000 (00:15 +0100)]
Thickness of \cancel
Guillaume Munch [Mon, 19 Dec 2016 23:15:59 +0000 (00:15 +0100)]
Fix missing \bigg variants for \llbracket
Guillaume Munch [Mon, 19 Dec 2016 23:15:59 +0000 (00:15 +0100)]
Factor code for math axis height
Guillaume Munch [Mon, 19 Dec 2016 23:15:59 +0000 (00:15 +0100)]
Add InsetMathClass to the list of math completions
Guillaume Munch [Mon, 19 Dec 2016 23:15:59 +0000 (00:15 +0100)]
Do not rely on toolTip() to generate LaTeX code
Guillaume Munch [Mon, 19 Dec 2016 23:15:58 +0000 (00:15 +0100)]
Fix compilation with Qt5.8dev
Guillaume Munch [Mon, 19 Dec 2016 23:15:58 +0000 (00:15 +0100)]
MathClass of xrightarrow & co
Uwe Stöhr [Mon, 19 Dec 2016 22:49:47 +0000 (23:49 +0100)]
UserGuide.lyx: fix 2 typos spotted by a user
Jean-Marc Lasgouttes [Tue, 5 Jul 2016 12:06:22 +0000 (14:06 +0200)]
Add caching for the QTextLayout objects we use
The QTextLayout handling is terribly slow on Qt 4.8.7, but some
caching has been added in Qt5 that makes it much faster. For some
reason, it is not that slow with Qt 4.8.1.
Caches are introduced for the three following methods
* width(doctring), controlled by CACHE_METRICS_WIDTH. This cache already
existed, but the code has been cleaned up
* getTextLayout, controlled by CACHE_METRICS_QTEXTLAYOUT (disabled by
default on Qt5, which does its own caching). This is used for pos2x
and x2pos and now for drawing of text too. The previous code used a
trivial caching scheme of the last used QTextLayout, but now they
are properly kept in a QCache. Moreover, the cacheEnabled() property
is enabled for these QTextLayout object (not sure what this does).
* breakAt, controlled by CACHE_METRICS_BREAKAT. This is the only user
of QTextLayout which did not have some kind of caching already.
For some weird reasons related to Argument-dependent look-up, the
qHash(docstring) function has to be defined in std namespace, since
lyx::docstring is actually std::basic_string<wchar_t>.
[NOTE: this version has profiling hooks, enabled by commenting out the line
#define DISABLE_PMPROF
that should eventually be removed.]
Tommaso Cucinotta [Mon, 19 Dec 2016 09:40:03 +0000 (10:40 +0100)]
Fix segfault on null buffer in Converters::checkAuth(), introduced in [
244de5d2 /lyxgit].
Juergen Spitzmueller [Mon, 19 Dec 2016 10:39:56 +0000 (11:39 +0100)]
Further improve quote-inserts documentation
Günter Milde [Sun, 18 Dec 2016 22:41:43 +0000 (23:41 +0100)]
Use xfrac package for "fraction characters".
The xfrac package is the "state of the art" for "split-level" (nice) fractions.
Character replacements look consistent, scale properly and fit in the line.
Fixes #5220.
Scott Kostyshak [Sun, 18 Dec 2016 17:43:20 +0000 (12:43 -0500)]
ctests: invert two unreliable tests
Invert the following two tests:
UNRELIABLE.WRONG_OUTPUT_export/doc/es/Math_dvi3_texF (Failed)
UNRELIABLE.WRONG_OUTPUT_export/doc/es/Math_pdf5_texF (Failed)
For discussion, see:
https://www.mail-archive.com/search?l=mid&q=
1482080739 .2685.14.camel%40lyx.org
Juergen Spitzmueller [Sun, 18 Dec 2016 13:00:08 +0000 (14:00 +0100)]
Update inset-modify description
Juergen Spitzmueller [Sun, 18 Dec 2016 12:38:41 +0000 (13:38 +0100)]
Some documentation of quote's inset-modify
Juergen Spitzmueller [Sun, 18 Dec 2016 12:13:19 +0000 (13:13 +0100)]
Thinko
This needs to be a char_type, not char.
Juergen Spitzmueller [Sun, 18 Dec 2016 09:29:35 +0000 (10:29 +0100)]
Allow wildcards in inset-modify for quotes
A dot in the <lang><side><times> string means: keep current value.
This expert feature allows to change arbitrary quote features in one step.
E.g.,
inset-forall Quotes inset-modify changetype f..
=> change all quote insets to French style, maintaining current side
and times setting
inset-forall Quotes inset-modify changetype ..s
=> change all quote insets to single quotes, keeping style and times
inset-forall Quotes inset-modify changetype g.s
=> change all quote insets to German single quotes, keeping left/right
setting
Any idea where to document this?
Juergen Spitzmueller [Sun, 18 Dec 2016 08:54:37 +0000 (09:54 +0100)]
whitespace.
Juergen Spitzmueller [Sat, 17 Dec 2016 13:34:46 +0000 (14:34 +0100)]
de.po
Juergen Spitzmueller [Sat, 17 Dec 2016 11:59:03 +0000 (12:59 +0100)]
Whitespace
Juergen Spitzmueller [Sat, 17 Dec 2016 11:58:33 +0000 (12:58 +0100)]
Context menu for quote insets
Allows to switch quote type.
Juergen Spitzmueller [Fri, 16 Dec 2016 10:24:03 +0000 (11:24 +0100)]
Update LFUNs.lyx
Juergen Spitzmueller [Fri, 16 Dec 2016 10:23:22 +0000 (11:23 +0100)]
Extend quote-insert
Two more optional arguments to specify side and quote style.
GUI support follows.
Juergen Spitzmueller [Fri, 16 Dec 2016 09:20:25 +0000 (10:20 +0100)]
context-sensitive command termination at some more places.
Juergen Spitzmueller [Fri, 16 Dec 2016 08:27:10 +0000 (09:27 +0100)]
remove archaic comments.
lyx3 was a vision of the last century.
Juergen Spitzmueller [Fri, 16 Dec 2016 08:26:01 +0000 (09:26 +0100)]
Use context-sensitive command termination
This fixes some kerning issues.
Juergen Spitzmueller [Thu, 15 Dec 2016 09:41:10 +0000 (10:41 +0100)]
Literal quotation mark chars for polyglossia
Juergen Spitzmueller [Thu, 15 Dec 2016 09:26:42 +0000 (10:26 +0100)]
InsetQuotes::latex: some cleanup
Also switch to docstring in preparation for unicode quotation marks
Juergen Spitzmueller [Thu, 15 Dec 2016 08:18:52 +0000 (09:18 +0100)]
Remove redundant blank
Richard Heck [Wed, 14 Dec 2016 03:03:59 +0000 (22:03 -0500)]
Simplify some lyx2lyx code.
Also, if the local layout we are removing is all there was, then
we can remove the entire block.
Richard Heck [Wed, 14 Dec 2016 02:51:11 +0000 (21:51 -0500)]
Update tex2lyx references after last format change.
Richard Heck [Wed, 14 Dec 2016 02:49:04 +0000 (21:49 -0500)]
New format for changes to iopart.layout made at
91f980cf31 .
Juergen Spitzmueller [Tue, 13 Dec 2016 06:50:08 +0000 (07:50 +0100)]
Limit ligature protection to quote ligature chars
Should also go to stable.
Juergen Spitzmueller [Tue, 13 Dec 2016 06:30:40 +0000 (07:30 +0100)]
speed up lyx2lyx reversion for non-Hebrew documents
Juergen Spitzmueller [Mon, 12 Dec 2016 17:08:20 +0000 (18:08 +0100)]
Fix Hebrew quotation marks
All typographic quotation marks are supported, if the proper
LaTeX macros (as opposed to ligatures) are used.
So no need for forcing straight quotes.
This is in line with what babel-hebrew suggests.
Juergen Spitzmueller [Mon, 12 Dec 2016 17:00:28 +0000 (18:00 +0100)]
Add FIXME
Juergen Spitzmueller [Mon, 12 Dec 2016 16:52:59 +0000 (17:52 +0100)]
Thinko
Juergen Spitzmueller [Mon, 12 Dec 2016 16:00:20 +0000 (17:00 +0100)]
Fix command termination before line breaks.
Juergen Spitzmueller [Mon, 12 Dec 2016 15:57:06 +0000 (16:57 +0100)]
Correctly handle the " \\fg" case.
Juergen Spitzmueller [Mon, 12 Dec 2016 14:57:42 +0000 (15:57 +0100)]
Properly terminate quote macros by means of new textstream function
This prevents kerning destruction.
Juergen Spitzmueller [Mon, 12 Dec 2016 14:55:28 +0000 (15:55 +0100)]
texstream: implement way to terminate a command depending on the context
i.e.,
* space if non terminating char follows
* {} if space follows
* nothing if \, { or } follow
Juergen Spitzmueller [Mon, 12 Dec 2016 09:49:08 +0000 (10:49 +0100)]
Fix some thinkos in the revert_quotes routine
Juergen Spitzmueller [Mon, 12 Dec 2016 09:27:26 +0000 (10:27 +0100)]
Update tex2lyx tests
Thanks Scott for the heads-up!
Juergen Spitzmueller [Sat, 10 Dec 2016 16:25:04 +0000 (17:25 +0100)]
Do not use babel quotation mark macros with non-TeX fonts
These rely on [O]T1 font encoding.
Also, add some comments.
Juergen Spitzmueller [Sat, 10 Dec 2016 15:13:02 +0000 (16:13 +0100)]
Fix xhtml output of French double guillemets (spacing)
Juergen Spitzmueller [Sat, 10 Dec 2016 15:07:04 +0000 (16:07 +0100)]
Do not output quote TextCommand definitions for polyglossia
These are meant to be output for non-T1 8bit font encodings.
Juergen Spitzmueller [Sat, 10 Dec 2016 13:57:25 +0000 (14:57 +0100)]
The extra space for French quotes only applies to guillemets.
Tommaso Cucinotta [Sat, 10 Dec 2016 13:55:09 +0000 (14:55 +0100)]
Remove unused lyxrc.use_converter_wrappers that inadvertently slipped through [
244de5d2 /lyxgit].
Juergen Spitzmueller [Sat, 10 Dec 2016 11:54:12 +0000 (12:54 +0100)]
revert_quotes: consider verbatim layouts and some forgotten insets.
Juergen Spitzmueller [Sat, 10 Dec 2016 10:53:42 +0000 (11:53 +0100)]
Enable InsetQuote in verbatim and Hebrew
In this context, the inset outputs straight quotes in LaTeX.
File format change.
Fixes: #7309
Enrico Forestieri [Fri, 9 Dec 2016 18:12:37 +0000 (19:12 +0100)]
Update it.po
Jean-Marc Lasgouttes [Fri, 9 Dec 2016 14:44:45 +0000 (15:44 +0100)]
Add a way to disable the poor man's profiler
Just define DISABLE_PMPROF _before_ #including the header.
Guillaume Munch [Thu, 8 Dec 2016 16:21:19 +0000 (17:21 +0100)]
Validate html
Qt html is based on html 4. </p> is in fact optional, but <p> is mandatory
around <tt>.
Guillaume Munch [Thu, 8 Dec 2016 15:27:45 +0000 (16:27 +0100)]
Fix compilation with MSVC
Günter Milde [Wed, 7 Dec 2016 17:38:41 +0000 (18:38 +0100)]
File format update after
418016bf792
Removing unsupported encoding "pt254" from \inputencoding values makes documents using this value invalid (J.S.).
Juergen Spitzmueller [Wed, 7 Dec 2016 15:50:54 +0000 (16:50 +0100)]
Fix mis-nomer