Kornel Benko
d7354a1a09
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}'
2019-03-18 18:28:49 +01:00
Günter Milde
553bebc355
Fix #11520 Wrong inpute encoding when master and child use different setting.
2019-03-18 18:17:39 +01:00
Günter Milde
dae90c6161
Warn user, if input encodings of master and child document differ.
2019-03-18 18:17:39 +01:00
Kornel Benko
9e825d5035
FindAdv: Added remaining accents cedilla, subring, subhat subtilde
2019-03-18 12:59:40 +01:00
Kornel Benko
13b3808aa0
FindAdv: Casting to satisfy Windows compiler
...
Thanks to Jean-Marc Lasgouttes
2019-03-18 09:38:34 +01:00
Jean-Marc Lasgouttes
9a15d35443
Fix MSVC warning
2019-03-17 14:28:22 +01:00
Jean-Marc Lasgouttes
bdf3924fc7
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.
2019-03-17 14:01:02 +01:00
Kornel Benko
bf4394e282
FindAdv: Expand the list of handled chars for ogonek
2019-03-17 13:06:56 +01:00
Günter Milde
54b719bf5d
ctests: update tagging scripts.
2019-03-17 11:32:14 +01:00
Günter Milde
7f86f93810
unicodesymbols: Add force flags for Arabic and Hebrew input encodings.
2019-03-17 11:31:07 +01:00
Günter Milde
bda8acee67
Amend d53a13a
: Bug 11519 only manifests if inputenc != "auto".
2019-03-17 11:20:58 +01:00
Günter Milde
d53a13a475
ctest for bug #11519
2019-03-16 17:55:44 +01:00
Günter Milde
2b61033324
ctests: add tests for #10600 (forced inputenc "ascii" with XeTeX and TeX-fonts).
2019-03-16 13:39:56 +01:00
Günter Milde
406b1e7fcf
Small formatting and comments update.
2019-03-16 12:59:34 +01:00
Kornel Benko
9a1a806b60
FindAdv: Correct start of search if not using regex
...
Do not try to find pattern inside the leading string.
2019-03-16 11:26:20 +01:00
Juergen Spitzmueller
85b36769cb
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.
2019-03-16 09:05:04 +01:00
Kornel Benko
8e7c427c7c
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.
2019-03-16 08:17:09 +01:00
Juergen Spitzmueller
f0282ddff4
Do not force LTR with nameref and non-TeX fonts
...
Fixes : #11518
2019-03-15 11:23:53 +01:00
Richard Kimberly Heck
4484cc7751
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.
2019-03-14 20:30:50 -04:00
Juergen Spitzmueller
3272c5a3f4
Protect label in moving argument
...
Fixes : #9404
2019-03-14 14:38:08 +01:00
Juergen Spitzmueller
262e436fc3
Move labels and insets out of moving arguments
...
Fixes : #2154
2019-03-14 14:24:43 +01:00
Kornel Benko
de9b1ae5fa
Amend 92628a29:Try to use valid locales for testing
2019-03-13 19:49:11 +01:00
Kornel Benko
a45407b8c7
Update sk.po
2019-03-13 14:30:47 +01:00
Kornel Benko
4eacc492a3
Typo
2019-03-13 14:14:35 +01:00
Kornel Benko
7ac04a2b75
Fix #11505 . Count and display number of replaced strings in FindAdv
2019-03-13 14:06:18 +01:00
Günter Milde
4a481975b6
Use CJKutf8 package if input encoding is "utf8" and a used language requires CJK.
...
CJKutf8 now used also if a secondary language requires CJK.
2019-03-13 11:31:25 +01:00
Günter Milde
0f265a5ab6
Remove special code for CJK that is no longer required (amends e665715fc4
).
2019-03-13 11:13:44 +01:00
Günter Milde
ddf947b8fd
ctests: dedicated test for problem with textgreek and textcyrillic.
2019-03-12 22:44:13 +01:00
Jean-Marc Lasgouttes
f659af339e
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 10e2c65835
.
2019-03-12 16:03:22 +01:00
Jean-Marc Lasgouttes
63bfaa14be
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 .
2019-03-12 16:03:22 +01:00
Juergen Spitzmueller
569841f292
Update layout versions
2019-03-12 14:14:43 +01:00
Juergen Spitzmueller
8b92a2a689
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
2019-03-12 14:08:05 +01:00
Kornel Benko
de78dc8e79
Update sk.po
2019-03-12 12:36:01 +01:00
Juergen Spitzmueller
fd11b840d4
de.po
2019-03-12 11:11:59 +01:00
Juergen Spitzmueller
c41df5b671
Warn if included file does not exist
...
Patch by Jürgen Womser-Schütz
2019-03-12 09:00:59 +01:00
Juergen Spitzmueller
ae8cb7bc6a
Add Jürgen Womser-Schütz to the credits
2019-03-11 16:14:13 +01:00
Juergen Spitzmueller
abf38e1820
revert_language: fix document language assignment
2019-03-11 11:42:54 +01:00
Juergen Spitzmueller
8b2f89f8bd
thinko
2019-03-11 11:05:10 +01:00
Juergen Spitzmueller
01493e574a
Dix revert_language with multiple languages per paragraph
2019-03-11 10:56:50 +01:00
Juergen Spitzmueller
f320ccdfc6
Prevent multiple insertion of language switch at document body
2019-03-11 10:56:12 +01:00
Juergen Spitzmueller
ef9e73d7fe
Move function out of loop
2019-03-11 10:37:33 +01:00
Juergen Spitzmueller
3c83f01f1b
More exceptions to percent encoding
...
See #11511
2019-03-10 16:37:31 +01:00
Juergen Spitzmueller
3d08c83666
Remove misplaced comment
2019-03-10 13:40:29 +01:00
Juergen Spitzmueller
936cddc715
Do not percent-encode & in urls
...
This is query syntax
Fixes : #11511
follows up [c2db448ff5/lyxgit]
2019-03-10 13:23:36 +01:00
Juergen Spitzmueller
838b9ffb05
2de.po
...
;
2019-03-10 13:09:28 +01:00
Juergen Spitzmueller
de449daa71
update tex2lyx tests after file format change
2019-03-10 13:04:15 +01:00
Juergen Spitzmueller
4bd065f871
use revert_language in more cases
2019-03-10 13:00:10 +01:00
Juergen Spitzmueller
6d6eda3950
Further simplification
2019-03-10 12:43:09 +01:00
Juergen Spitzmueller
27f15ac930
lyx_2_3.py: use revert_language rather than local methods.
2019-03-10 12:36:56 +01:00
Juergen Spitzmueller
c70c049417
Enhance revert_language function
...
This should now consider all cases (many of which were not handled so far)
2019-03-10 12:36:06 +01:00