]>
git.lyx.org Git - lyx.git/log
Juergen Spitzmueller [Wed, 20 Mar 2019 11:37:55 +0000 (12:37 +0100)]
Do not close LyXFiles dialog on double-clicking header
Juergen Spitzmueller [Wed, 20 Mar 2019 11:36:39 +0000 (12:36 +0100)]
Jean-Marc Lasgouttes [Wed, 20 Mar 2019 10:45:29 +0000 (11:45 +0100)]
Compilation fix for Qt < 5.2.
Jean-Marc Lasgouttes [Wed, 20 Mar 2019 09:56:16 +0000 (10:56 +0100)]
Cache the value of GuiFontMetrics::lbearing().
This seems to be necessary on windows, where math editing can get very
slow. Note that other methods like rbearing already use a cache.
In the future all these caches for single characters shall be unified.
Scott Kostyshak [Wed, 20 Mar 2019 03:08:35 +0000 (23:08 -0400)]
ctests: inverted -> "wrong output" for 2 uk tests
These exports no longer give an error (with TL18, TL19-pre), but
have wrong output.
Scott Kostyshak [Wed, 20 Mar 2019 03:00:25 +0000 (23:00 -0400)]
Development.lyx: s/splash.lyx/Welcome.lyx/g
This follows
d3ec77c6 .
Scott Kostyshak [Wed, 20 Mar 2019 02:54:40 +0000 (22:54 -0400)]
ctest control files: s/splash.lyx/Welcome.lyx/g
This follows
d3ec77c6 .
Günter Milde [Mon, 11 Mar 2019 14:24:22 +0000 (15:24 +0100)]
Fix remainder of #9681 (textcyrillic and textgreek handling).
* Fix macro termination if \textcyrillic or \textgreek is not required
for Greek or Cyrillic letter.
* Replace "writeScriptChars" with conditionals in the character-output loop in
"Paragraph::latex" (solves "FIXME: modifying i here is not very nice...").
The font changing commands \textcyrillic and \textgreek are no longer
part of the textcommand in "lib/unicodesymbols" but added when required
in Paragraph::Private::latexSpecialChar.
Günter Milde [Tue, 19 Mar 2019 21:14:44 +0000 (22:14 +0100)]
ctest update and small documentation fixes.
Kornel Benko [Tue, 19 Mar 2019 17:29:55 +0000 (18:29 +0100)]
Update sk.po
Juergen Spitzmueller [Tue, 19 Mar 2019 16:55:19 +0000 (17:55 +0100)]
GuiLyXFiles: add language selector.
Juergen Spitzmueller [Tue, 19 Mar 2019 15:58:23 +0000 (16:58 +0100)]
GuiLyXFiles: A bit more work towards generalization
Bind and Ui files can be displayed in this dialog now (via lfun
dialog-show lyxfiles ui|bind), although it is not yet usable in prefs.
Kornel Benko [Tue, 19 Mar 2019 13:34:32 +0000 (14:34 +0100)]
Cmake build: Amend(2)
d3ec77c6 : Reorganize templates and example folders
Install files from these new directories
Juergen Spitzmueller [Tue, 19 Mar 2019 12:36:05 +0000 (13:36 +0100)]
cosmetics
Juergen Spitzmueller [Tue, 19 Mar 2019 12:29:32 +0000 (13:29 +0100)]
GuiLyXFiles: minor generalization
Kornel Benko [Tue, 19 Mar 2019 09:58:48 +0000 (10:58 +0100)]
Update sk.po
Kornel Benko [Tue, 19 Mar 2019 09:56:06 +0000 (10:56 +0100)]
Amend
d3ec77c6 : Reorganize templates and example folders
Fixed cmake tests
Juergen Spitzmueller [Tue, 19 Mar 2019 08:10:14 +0000 (09:10 +0100)]
de.po
Juergen Spitzmueller [Tue, 19 Mar 2019 08:08:44 +0000 (09:08 +0100)]
Add examples/templates dialog entries to po files.
Juergen Spitzmueller [Tue, 19 Mar 2019 07:22:22 +0000 (08:22 +0100)]
de.po
Juergen Spitzmueller [Tue, 19 Mar 2019 07:08:30 +0000 (08:08 +0100)]
Fix redundancy
Juergen Spitzmueller [Tue, 19 Mar 2019 06:42:11 +0000 (07:42 +0100)]
Fix strings
Juergen Spitzmueller [Tue, 19 Mar 2019 06:13:51 +0000 (07:13 +0100)]
Fix redundant naming
Juergen Spitzmueller [Tue, 19 Mar 2019 06:07:22 +0000 (07:07 +0100)]
Reorganize templates and example folders
Re-structure and rename files in a transparent way. Most template/example
names now correspond to the (verbose GUI) name of their layouts.
Note that this, most prominently, also changes [LANG/]splash.lyx to
something less insiderish, namely "Welcome.lyx".
Juergen Spitzmueller [Tue, 19 Mar 2019 05:59:24 +0000 (06:59 +0100)]
Add new dialog for templates and examples
This lists all respective files from user, build and system directory
in a structured way and thus allows for easier access to them.
Fixes: #2396, #6861
Kornel Benko [Mon, 18 Mar 2019 17:19:44 +0000 (18:19 +0100)]
FindAdv: Polishing
1.) Use vector for borders, because any value may be too small
if there are plenty of accented characters in a paragraph
2.) use '[\S]' instead of '.' in regex for 'accre'. The regex would
otherwise find also patterns like '\ {some text}'
Günter Milde [Mon, 18 Mar 2019 17:16:40 +0000 (18:16 +0100)]
Fix #11520 Wrong inpute encoding when master and child use different setting.
Günter Milde [Mon, 18 Mar 2019 11:49:10 +0000 (12:49 +0100)]
Warn user, if input encodings of master and child document differ.
Kornel Benko [Mon, 18 Mar 2019 11:59:40 +0000 (12:59 +0100)]
FindAdv: Added remaining accents cedilla, subring, subhat subtilde
Kornel Benko [Mon, 18 Mar 2019 08:38:34 +0000 (09:38 +0100)]
FindAdv: Casting to satisfy Windows compiler
Thanks to Jean-Marc Lasgouttes
Jean-Marc Lasgouttes [Sun, 17 Mar 2019 13:28:22 +0000 (14:28 +0100)]
Fix MSVC warning
Jean-Marc Lasgouttes [Sun, 17 Mar 2019 12:57:44 +0000 (13:57 +0100)]
Update poor man's profiler to use C++11 std::chrono
This is more portable, and the old code prevented in windows to use
instrument several classes at the same time (several .obj files,
actually).
No new feature here, bu the code is nicely slower. It might be less
efficient, I am not really at ease with how std::chrono works.
Kornel Benko [Sun, 17 Mar 2019 12:06:56 +0000 (13:06 +0100)]
FindAdv: Expand the list of handled chars for ogonek
Günter Milde [Sun, 17 Mar 2019 10:32:14 +0000 (11:32 +0100)]
ctests: update tagging scripts.
Günter Milde [Sun, 17 Mar 2019 10:31:07 +0000 (11:31 +0100)]
unicodesymbols: Add force flags for Arabic and Hebrew input encodings.
Günter Milde [Sun, 17 Mar 2019 10:20:58 +0000 (11:20 +0100)]
Amend
d53a13a : Bug 11519 only manifests if inputenc != "auto".
Günter Milde [Sat, 16 Mar 2019 16:55:44 +0000 (17:55 +0100)]
ctest for bug #11519
Günter Milde [Sat, 16 Mar 2019 12:39:56 +0000 (13:39 +0100)]
ctests: add tests for #10600 (forced inputenc "ascii" with XeTeX and TeX-fonts).
Günter Milde [Sat, 16 Mar 2019 11:59:34 +0000 (12:59 +0100)]
Small formatting and comments update.
Kornel Benko [Sat, 16 Mar 2019 10:26:20 +0000 (11:26 +0100)]
FindAdv: Correct start of search if not using regex
Do not try to find pattern inside the leading string.
Juergen Spitzmueller [Sat, 16 Mar 2019 08:03:19 +0000 (09:03 +0100)]
Handle \protect'ion of label in listings
Since listings labels are passed as an argument of their own, we need
to strip the \protect flag.
Kornel Benko [Sat, 16 Mar 2019 07:17:09 +0000 (08:17 +0100)]
Amend
7ac04a2b : Count and display number of replaced strings in FindAdv
We have to know if the previous call to search was a single replace or not,
so that we can correctly initialize the numer of replaed strings.
Juergen Spitzmueller [Fri, 15 Mar 2019 10:23:53 +0000 (11:23 +0100)]
Do not force LTR with nameref and non-TeX fonts
Fixes: #11518
Richard Kimberly Heck [Fri, 15 Mar 2019 00:28:01 +0000 (20:28 -0400)]
Fix regression concerning collapsing insets after search.
To reproduce: Do a search for text in a footnote (say) that is
currently closed. Click inside the now open footnote. It will close
by itself.
We need to know whether we can go into the inset, not whether we can
edit once we're there.
Juergen Spitzmueller [Thu, 14 Mar 2019 13:38:08 +0000 (14:38 +0100)]
Protect label in moving argument
Fixes: #9404
Juergen Spitzmueller [Thu, 14 Mar 2019 13:24:43 +0000 (14:24 +0100)]
Move labels and insets out of moving arguments
Fixes: #2154
Kornel Benko [Wed, 13 Mar 2019 18:49:11 +0000 (19:49 +0100)]
Amend
92628a29 :Try to use valid locales for testing
Kornel Benko [Wed, 13 Mar 2019 13:30:47 +0000 (14:30 +0100)]
Update sk.po
Kornel Benko [Wed, 13 Mar 2019 13:14:35 +0000 (14:14 +0100)]
Typo
Kornel Benko [Wed, 13 Mar 2019 13:06:18 +0000 (14:06 +0100)]
Fix #11505. Count and display number of replaced strings in FindAdv
Günter Milde [Wed, 13 Mar 2019 10:31:25 +0000 (11:31 +0100)]
Use CJKutf8 package if input encoding is "utf8" and a used language requires CJK.
CJKutf8 now used also if a secondary language requires CJK.
Günter Milde [Wed, 13 Mar 2019 10:13:44 +0000 (11:13 +0100)]
Remove special code for CJK that is no longer required (amends
e665715fc4 ).
Günter Milde [Tue, 12 Mar 2019 21:44:13 +0000 (22:44 +0100)]
ctests: dedicated test for problem with textgreek and textcyrillic.
Jean-Marc Lasgouttes [Tue, 12 Mar 2019 11:44:08 +0000 (12:44 +0100)]
Revert "Let tm be a reference here as elsewhere"
This commit was wrong because a reference variable can never be
re-assigned (it would change the original variable). I learn C++
pitfalls every day.
Fixes bug #11512.
This reverts commit
10e2c658351c237d3b35566857a533a9d08f7f65 .
Jean-Marc Lasgouttes [Tue, 12 Mar 2019 11:40:32 +0000 (12:40 +0100)]
Make TextMetrics noncopyable
This is done by declaring unimplemented private copy constructor and
assignment operator.
This breaks compilation in BufferView::textMetrics, which does a copy when
inserting a TextMetrics object in the cache. Some C++11 wizardry I will not
pretend to completely understand saves the day.
See the following page for details:
https://en.cppreference.com/w/cpp/container/map/emplace
This avoids real world bugs like #11512.
Juergen Spitzmueller [Tue, 12 Mar 2019 13:14:43 +0000 (14:14 +0100)]
Update layout versions
Juergen Spitzmueller [Tue, 12 Mar 2019 13:08:05 +0000 (14:08 +0100)]
Add NeedMBoxProtect [inset]layout option
This accesses the inulemcmd output param which protects specific commands
(\cite, \ref) in an \mbox.
This is needed in ulem and soul commands, since their complex
detokenization makes such commands (who produce multiple words via local
assignment) fail.
So now it is possible to properly support ulem and soul via
[inset]layout
Fixes a case reported in #9404
Kornel Benko [Tue, 12 Mar 2019 11:35:34 +0000 (12:35 +0100)]
Update sk.po
Juergen Spitzmueller [Tue, 12 Mar 2019 10:11:59 +0000 (11:11 +0100)]
de.po
Juergen Spitzmueller [Tue, 12 Mar 2019 08:00:59 +0000 (09:00 +0100)]
Warn if included file does not exist
Patch by Jürgen Womser-Schütz
Juergen Spitzmueller [Mon, 11 Mar 2019 15:14:13 +0000 (16:14 +0100)]
Add Jürgen Womser-Schütz to the credits
Juergen Spitzmueller [Mon, 11 Mar 2019 10:42:54 +0000 (11:42 +0100)]
revert_language: fix document language assignment
Juergen Spitzmueller [Mon, 11 Mar 2019 10:05:10 +0000 (11:05 +0100)]
thinko
Juergen Spitzmueller [Mon, 11 Mar 2019 09:56:50 +0000 (10:56 +0100)]
Dix revert_language with multiple languages per paragraph
Juergen Spitzmueller [Mon, 11 Mar 2019 09:56:12 +0000 (10:56 +0100)]
Prevent multiple insertion of language switch at document body
Juergen Spitzmueller [Mon, 11 Mar 2019 09:37:33 +0000 (10:37 +0100)]
Move function out of loop
Juergen Spitzmueller [Sun, 10 Mar 2019 15:37:31 +0000 (16:37 +0100)]
More exceptions to percent encoding
See #11511
Juergen Spitzmueller [Sun, 10 Mar 2019 12:40:29 +0000 (13:40 +0100)]
Remove misplaced comment
Juergen Spitzmueller [Sun, 10 Mar 2019 12:23:36 +0000 (13:23 +0100)]
Do not percent-encode & in urls
This is query syntax
Fixes: #11511
follows up [
c2db448ff5 /lyxgit]
Juergen Spitzmueller [Sun, 10 Mar 2019 12:09:28 +0000 (13:09 +0100)]
2de.po
;
Juergen Spitzmueller [Sun, 10 Mar 2019 12:04:15 +0000 (13:04 +0100)]
update tex2lyx tests after file format change
Juergen Spitzmueller [Sun, 10 Mar 2019 12:00:10 +0000 (13:00 +0100)]
use revert_language in more cases
Juergen Spitzmueller [Sun, 10 Mar 2019 11:43:09 +0000 (12:43 +0100)]
Further simplification
Juergen Spitzmueller [Sun, 10 Mar 2019 11:36:56 +0000 (12:36 +0100)]
lyx_2_3.py: use revert_language rather than local methods.
Juergen Spitzmueller [Sun, 10 Mar 2019 11:36:06 +0000 (12:36 +0100)]
Enhance revert_language function
This should now consider all cases (many of which were not handled so far)
Juergen Spitzmueller [Sun, 10 Mar 2019 09:31:39 +0000 (10:31 +0100)]
Correct message reference
Juergen Spitzmueller [Sun, 10 Mar 2019 09:26:20 +0000 (10:26 +0100)]
Add Joice to the credits
Juergen Spitzmueller [Sun, 10 Mar 2019 09:21:59 +0000 (10:21 +0100)]
Support for the Malayalam language
Patch by Joice Joseph
Kornel Benko [Sat, 9 Mar 2019 23:29:56 +0000 (00:29 +0100)]
FindAdv: Special handling for \dot{i} and 'ß'
Different behaviour in regexp{..} for 'İ' and 'ß':
1.) lowercase routine for 'İ' gives 'İ', so that if we are searching
while ignoring case, the string '\dot{I}' is converted to '\dot{i}'.
In this case we have to change it to 'İ' (instead of 'i', as one would expect).
2.) If 'ß' is inserted via keybord on fresh created regexp box it appears as \lyxmathsym{ß},
if pasted from the lyx-screen it appears as \text{ß}
Kornel Benko [Sat, 9 Mar 2019 20:24:21 +0000 (21:24 +0100)]
Amend
62f8b8be
The file test-insets.tex is changed, therefore the file
which is expected by tex2lyx (test-insets.lyx.lyx) has to be changed too.
Juergen Spitzmueller [Sat, 9 Mar 2019 11:00:40 +0000 (12:00 +0100)]
Do not use GUI language for shortcut info inset if no translation is available
Fixes: #11508
Now there is the opposite case which needs to be addressed:
If no translation is available for a shortcut in a non-latin-scripted
document, we need to switch the language to English.
Kornel Benko [Fri, 8 Mar 2019 21:44:00 +0000 (22:44 +0100)]
FindAdv: Expand the list of handled chars for dot below and ring above
Günter Milde [Fri, 8 Mar 2019 18:19:32 +0000 (19:19 +0100)]
ctests: Update tagging rules and comments.
Günter Milde [Fri, 8 Mar 2019 17:06:53 +0000 (18:06 +0100)]
unicodesymbols: Use \r{A} instead of \AA for "Latin letter A with ring" and "Ångström sign".
Xe/LuaTeX convert \AA to the deprecated character u212B (which is missing
in the default LatinModern font) instead of the recommended u00C5.
Also fix some of the "missing character" errors in Math.lyx if compiled with
Xe/LuaTeX which were caused by the replacement of \AA with literal u212B characters
in math-insets due to the old definitions in unicodesymbols.
Update the minimal example for failures of Math.lyx with system fonts.
Juergen Spitzmueller [Fri, 8 Mar 2019 15:48:49 +0000 (16:48 +0100)]
Silence compiler warning
Scott Kostyshak [Thu, 7 Mar 2019 22:20:37 +0000 (17:20 -0500)]
ctests: invert luainputenc-utf8_pdf5_texF
From Günter:
> OK, so in TL18 the Ukrainean "auto-date" (7 березня 2019 р.) fails with
> PDF (XeTeX) and DVI (LuaTeX) but not PDF (LuaTeX).
> Strange. Feel free to invert.
Günter Milde [Thu, 7 Mar 2019 16:01:05 +0000 (17:01 +0100)]
Ensure \LyX macro works also with non-standard font encodings (Greek, ...).
Babel provides the \textlatin macro to ensure Latin letter ASCII characters are
output as Latin letters.
Instead of 8 different definitions for the several variants of the macro definition,
wrappers are individually added if required and available.
Scott Kostyshak [Thu, 7 Mar 2019 01:46:12 +0000 (20:46 -0500)]
ctests: invert an unreliable test
We try to make it so that the test passes on the most up-to-date TL.
Scott Kostyshak [Thu, 7 Mar 2019 01:14:47 +0000 (20:14 -0500)]
ctests: ignore a texF test
The document has "use_non_tex_fonts true" set.
Scott Kostyshak [Thu, 7 Mar 2019 01:01:53 +0000 (20:01 -0500)]
ctests: uninvert languagenesting2_pdf5_systemF
This export succeeds.
Scott Kostyshak [Tue, 5 Mar 2019 19:02:55 +0000 (14:02 -0500)]
ctests: correct an inverted pattern
Amends
65fbd585 .
Günter Milde [Tue, 5 Mar 2019 08:59:43 +0000 (09:59 +0100)]
Re-invert failing tests with Hebrew, LuaTeX and 8-bit fonts.
Günter Milde [Mon, 4 Mar 2019 21:12:09 +0000 (22:12 +0100)]
ctest update: compilation errors due to #6463 are fixed.
Scott Kostyshak [Tue, 5 Mar 2019 07:45:42 +0000 (02:45 -0500)]
ctests: invert ja ps2pdf Additional, UserGuide
These exports did not have correct output before, and now (with an
updated TL18), ps2pdf gives an error.
Scott Kostyshak [Tue, 5 Mar 2019 03:28:10 +0000 (22:28 -0500)]
ctests: uninvert LuaTeX texF es/EmbeddedObjects
With updated TL 2018, there is no longer an error (however, the
output is still incorrect).
Günter Milde [Mon, 4 Mar 2019 12:14:50 +0000 (13:14 +0100)]
ctests: Problem with auto-date for Ukrainian with Xe/LuaTeX and TeX fonts.
New bug in TeXLive 18.
Missing characters with XeTeX and wrong characters with LuaTeX.
Also:
* Remove spurious (Latin) characters from uk/Intro.lyx
* "wrong-output" tag for Cyrillic documents with XeTeX and TeX fonts.
Kornel Benko [Mon, 4 Mar 2019 13:37:10 +0000 (14:37 +0100)]
FindAdv: Amend
cd4ae51f
Prevent to match only part of a macro.
For instance, we want find '\imath' but not '\imathxxxx'
while checking for accents.
Kornel Benko [Mon, 4 Mar 2019 13:05:44 +0000 (14:05 +0100)]
FindAdv: Amend
b21c8b21 : Expand the list for handled latin characters
1.) Added for 'breve' and 'grave' accents
2.) Corrected handling for 'i'-accents (allowed \hat{i} _and_ \hat{\imath})
because of problems with ignoring case
3.) Spaces: Changed some indents in source
Günter Milde [Sun, 3 Mar 2019 17:19:51 +0000 (18:19 +0100)]
ctest and documentation update
The special test "arabic_simple.lyx" is no longer required,
"examples/ar/splash.lyx" works with 8-bit fonts now.
Update tagging patterns and comments.
Günter Milde [Sat, 2 Mar 2019 19:24:05 +0000 (20:24 +0100)]
Fix/simplify "if" clause for application of \textcyrrillic or \textgreek.
Also with Xe/LuaTeX only required with non-native font encodings.