]> git.lyx.org Git - lyx.git/log
lyx.git
5 years agoTypo
Kornel Benko [Sat, 2 Mar 2019 20:59:29 +0000 (21:59 +0100)]
Typo

5 years agoFindAdv: Try to add the possibility to search for accented characters in regex
Kornel Benko [Sat, 2 Mar 2019 14:42:38 +0000 (15:42 +0100)]
FindAdv: Try to add the possibility to search for accented characters in regex

The problem is the handling of regex as using math-mode. That is
any accented character is converted to a math macro.
For instance "ä" --> "\\ddot{a}".
Outside of math or regex it is not converted (if used xetex flavour),
but there are other chars which are converted in math and in text (but differently)
For instance "ů"
in math --> "\\mathring{u}"
in text --> "\\r{u}"

TODO: determine the still not handled conversions.
It would be nice, if we could persuade math factory to not convert
these characters, but I was unable to find the place where the
conversion actually takes place.

5 years agounicodesymbols: Add force flags for arabic codepage.
Günter Milde [Fri, 1 Mar 2019 17:52:12 +0000 (18:52 +0100)]
unicodesymbols: Add force flags for arabic codepage.

5 years agoMinor documentation fix.
Günter Milde [Thu, 28 Feb 2019 22:01:14 +0000 (23:01 +0100)]
Minor documentation fix.

5 years agoFix AttributeError with Python 3.
Günter Milde [Thu, 28 Feb 2019 21:59:30 +0000 (22:59 +0100)]
Fix AttributeError with Python 3.

At least since Python 3.5, `output` is already a
(unicode) string and does not have a "decode" method.

5 years agoDon't switch encodings when a document wide encoding is specified.
Günter Milde [Wed, 27 Feb 2019 13:01:53 +0000 (14:01 +0100)]
Don't switch encodings when a document wide encoding is specified.

Remove special code for CJK that is no longer required after
we use CJKutf8 document-wide with inputenc "utf8-cjk"
(and "utf8" for languages requiring CJK) (since 7bbf333fa100).

CJK characters can no longer be used with a document-wide 8-bit encoding.
(Hint: Use utf8-cjk or one of the CJK legacy encodings if your document contains CJK characters.)

5 years agoFindAdv: Use isAlnumASCII() instead of std::isalnum()
Kornel Benko [Thu, 28 Feb 2019 12:00:12 +0000 (13:00 +0100)]
FindAdv: Use isAlnumASCII() instead of std::isalnum()

Thanks Jean-Marc

5 years agoUse || instead of or operator
Jean-Marc Lasgouttes [Thu, 28 Feb 2019 11:03:34 +0000 (12:03 +0100)]
Use || instead of or operator

It is more consistent and visual studio seems to dislike it anyway.

5 years agoAmend aaffcd0b: Remove some remnants ...
Kornel Benko [Wed, 27 Feb 2019 09:33:25 +0000 (10:33 +0100)]
Amend aaffcd0b: Remove some remnants ...

5 years agoFindAdv: Do not use data from included listing if in search mode
Kornel Benko [Wed, 27 Feb 2019 09:17:56 +0000 (10:17 +0100)]
FindAdv: Do not use data from included listing if in search mode

Fixes #11496  "Find and replace (advanced)" is too slow

5 years agoFindAdv: Try to use a better algorithm to find begin of a searched string
Kornel Benko [Tue, 26 Feb 2019 22:00:31 +0000 (23:00 +0100)]
FindAdv: Try to use a better algorithm to find begin of a searched string

5 years agoctest update
Günter Milde [Tue, 26 Feb 2019 18:13:15 +0000 (19:13 +0100)]
ctest update

* Do not change font choices when testing with non-TeX fonts.
* Add "nonstandard" tag for documents with requirements outside TeXLive.
* Ignore missing character in legacy Basque document.

5 years agoUpdate screen as needed when preferences are changed
Jean-Marc Lasgouttes [Tue, 26 Feb 2019 15:37:41 +0000 (16:37 +0100)]
Update screen as needed when preferences are changed

This commit removes the adhoc code in GuiPrefs and moves it to LyXRC,
so that it triggers in every preference change.

The code has also been updated to trigger on more variables, e.g.
font_*_foundry.

Note that the actual function that are called have not been changed
(addPreviews and LFUN_SCREEN_FONT_UPDATE), although there are doubts
that they behave as needed (see FIXMEs).

Fixes bug #11498.

5 years agoFindAdv: Partially revert e69f7022
Kornel Benko [Tue, 26 Feb 2019 12:24:36 +0000 (13:24 +0100)]
FindAdv: Partially revert e69f7022

The slowness returns, but the search works again

5 years agoAmend 4028eefe: Make callstack printing useful and optional
Kornel Benko [Tue, 26 Feb 2019 08:50:58 +0000 (09:50 +0100)]
Amend 4028eefe: Make callstack printing useful and optional

Added the option to cmake too

5 years agoFix bad error message (bug 11486).
Richard Kimberly Heck [Tue, 26 Feb 2019 02:56:40 +0000 (21:56 -0500)]
Fix bad error message (bug 11486).

5 years agoMake callstack printing useful and optional
Jean-Marc Lasgouttes [Mon, 25 Feb 2019 16:37:06 +0000 (17:37 +0100)]
Make callstack printing useful and optional

When callback printing is enabled, link lyx with -rdynamic, so that
stacks have LyX symbols available.

Add option --disable-callstack-printing to configure.

Running "size" on binary:
 * with callstack printing support
   text    data     bss     dec     hex filename
20891684   34680  107796 21034160 140f4b0 src/lyx

 * without callstack printing support
    text    data     bss     dec     hex filename
17953640   34648  107796 18096084 1141fd4 src/lyx

5 years agoFix help message for --disable-qt5
Jean-Marc Lasgouttes [Mon, 25 Feb 2019 15:24:30 +0000 (16:24 +0100)]
Fix help message for --disable-qt5

5 years agoUse range-based loops in BufferList
Jean-Marc Lasgouttes [Mon, 25 Feb 2019 14:14:58 +0000 (15:14 +0100)]
Use range-based loops in BufferList

5 years agoChange the way scrolled rows are tracked
Jean-Marc Lasgouttes [Thu, 21 Feb 2019 16:52:36 +0000 (17:52 +0100)]
Change the way scrolled rows are tracked

The goal of this commit is to simplify the logic in TextMetrics::draw.
Now, rows are repainted depending on their changed() status.

Instead of checking whether rows have been scrolled horizontally at
draw time, the code marks the row as changed when testing for
horizontal scrolling.

To this end a new method TestMetrics::setRowChanged is added, that
searches a row in the text metrics cache and marks it changed if
found.

The old code that remembered the previously scrolled row can now be
removed.

5 years agoFindAdv: Fix #11496 -- too slow find
Kornel Benko [Mon, 25 Feb 2019 10:59:54 +0000 (11:59 +0100)]
FindAdv: Fix #11496 -- too slow find

Also added some more macros to handle

5 years agoMove some TextMetrics code around.
Jean-Marc Lasgouttes [Mon, 25 Feb 2019 10:58:50 +0000 (11:58 +0100)]
Move some TextMetrics code around.

No change intended.

5 years agoctest update.
Günter Milde [Mon, 25 Feb 2019 00:17:20 +0000 (01:17 +0100)]
ctest update.

* set required non-TeX fonts in the documents
* update comments for inverted tests
* update some tags

5 years agoFindAdv: Correctly match '\[' and '\]' in regular expressions with format enabled
Kornel Benko [Sat, 23 Feb 2019 12:11:34 +0000 (13:11 +0100)]
FindAdv: Correctly match '\[' and '\]' in regular expressions with format enabled

We have to check for instances of '{[}' and '{]}' and
omit removing the enclosing parentheses

5 years agoAdd few hints for varwidth module.
Pavel Sanda [Fri, 22 Feb 2019 15:51:14 +0000 (16:51 +0100)]
Add few hints for varwidth module.

5 years agorebuild credits
Pavel Sanda [Fri, 22 Feb 2019 15:43:16 +0000 (16:43 +0100)]
rebuild credits

5 years agoFindAdv: debug info
Kornel Benko [Fri, 22 Feb 2019 12:21:23 +0000 (13:21 +0100)]
FindAdv: debug info

1.) Fill the 'head'-member to easier recognize the macro. May be discarded
 later, although it does not take too much run-time
2.) Add some comment
3.) Ignore any macro inside the regex.

5 years agoFindAdv: Discard \parbox, \input macros
Kornel Benko [Thu, 21 Feb 2019 19:32:08 +0000 (20:32 +0100)]
FindAdv: Discard \parbox, \input macros

The languge of these macros does not matter. What's more,
without removing them we may obtain wrong matching.

5 years agoFindAdv: Handle \shortcut
Kornel Benko [Thu, 21 Feb 2019 13:45:41 +0000 (14:45 +0100)]
FindAdv: Handle \shortcut

Essentially remove the header and handle the language inside
\shortcut{...} appropriately

5 years agoHonor Update::SinglePar properly
Jean-Marc Lasgouttes [Wed, 20 Feb 2019 11:01:44 +0000 (12:01 +0100)]
Honor Update::SinglePar properly

The SinglePar update flags has been a no-op for a long time without
naybody noticing. This means that the current paragraph was
always rebroken and redrawn, even when only moving the cursor around.

Now we only do that when Update::SinglePar has been specified. This
means that there may be cases where update will not be correct
anymore, because this flag has not been specified. These places will
have to be found and fixed.

Update PAINTING_ANALYSIS.

5 years agoFindAdv: Added handling for latex environments
Kornel Benko [Wed, 20 Feb 2019 13:14:50 +0000 (14:14 +0100)]
FindAdv: Added handling for latex environments

1.) Make sure the environment is mentioned in the string for search
  (Added the keyword \latexenvironment{...})
2.) Handle it similar to \textcolor{}

That way we can also search for 'conclusion*' or 'summary' etc
in Additional.lyx.

5 years agoFindadv: Added handling for frontmatter macros
Kornel Benko [Tue, 19 Feb 2019 22:11:09 +0000 (23:11 +0100)]
Findadv: Added handling for frontmatter macros

title, subtitle, author etc.

5 years agoFix bug #11490
Enrico Forestieri [Tue, 19 Feb 2019 18:51:11 +0000 (19:51 +0100)]
Fix bug #11490

Correctly add the branch name suffix when the stem
of the filename contains a dot.

5 years agoRename TextMetrics::dimension() to dim()
Jean-Marc Lasgouttes [Tue, 19 Feb 2019 17:04:43 +0000 (18:04 +0100)]
Rename TextMetrics::dimension() to dim()

5 years agoDo not use trailing underscore for local variable
Jean-Marc Lasgouttes [Mon, 18 Feb 2019 15:04:15 +0000 (16:04 +0100)]
Do not use trailing underscore for local variable

5 years agoRemove unused method
Jean-Marc Lasgouttes [Mon, 18 Feb 2019 15:03:38 +0000 (16:03 +0100)]
Remove unused method

5 years agoRename Row::dimension() to dim()
Jean-Marc Lasgouttes [Mon, 18 Feb 2019 14:46:42 +0000 (15:46 +0100)]
Rename Row::dimension() to dim()

This is what is done elsewhere.

5 years agoLet tm be a reference here as elsewhere
Jean-Marc Lasgouttes [Mon, 18 Feb 2019 14:41:00 +0000 (15:41 +0100)]
Let tm be a reference here as elsewhere

5 years agoDEPM: document that Freespacing implies KeepEmpty.
Jean-Marc Lasgouttes [Mon, 18 Feb 2019 11:42:36 +0000 (12:42 +0100)]
DEPM: document that Freespacing implies KeepEmpty.

5 years agoDo a round of DEPM after changing layout
Jean-Marc Lasgouttes [Fri, 15 Feb 2019 16:17:56 +0000 (17:17 +0100)]
Do a round of DEPM after changing layout

5 years agoDEPM: allow to delete empty paragraphs after deleting extra spaces
Jean-Marc Lasgouttes [Fri, 15 Feb 2019 15:23:46 +0000 (16:23 +0100)]
DEPM: allow to delete empty paragraphs after deleting extra spaces

Remove return statement when spaces have been deleted.

Add an early return in part 2 when current paragraph is not empty.

Remove some comments that concern things that are OK now.

5 years agoDEPM: do not strip explicitly leading spaces
Jean-Marc Lasgouttes [Fri, 15 Feb 2019 15:07:00 +0000 (16:07 +0100)]
DEPM: do not strip explicitly leading spaces

For the local version of DEPM, only what was around old cursor should change

For the global version, leading spaces are already handled.

5 years agoDEPM: replace loop by existing method
Jean-Marc Lasgouttes [Fri, 15 Feb 2019 15:02:49 +0000 (16:02 +0100)]
DEPM: replace loop by existing method

5 years agoDEPM: reorganize a bit (no change intended)
Jean-Marc Lasgouttes [Fri, 15 Feb 2019 14:49:53 +0000 (15:49 +0100)]
DEPM: reorganize a bit (no change intended)

Exit early if the cursor has not moved.

Place comments where they belong.

5 years agoDEPM: handle undo when deleting spaces
Jean-Marc Lasgouttes [Fri, 15 Feb 2019 14:33:23 +0000 (15:33 +0100)]
DEPM: handle undo when deleting spaces

Also, do not do any DEPM when the buffer is read-only.

5 years agoFix copy/paste error spotted by coverity.
Juergen Spitzmueller [Mon, 18 Feb 2019 14:12:34 +0000 (15:12 +0100)]
Fix copy/paste error spotted by coverity.

5 years agoInitialize member
Jean-Marc Lasgouttes [Mon, 18 Feb 2019 14:10:05 +0000 (15:10 +0100)]
Initialize member

Spotted by coverity

5 years agoBasic support for biblatex-chicago
Juergen Spitzmueller [Mon, 18 Feb 2019 12:14:53 +0000 (13:14 +0100)]
Basic support for biblatex-chicago

This uses a specific wrapper package that must be loaded instead of
biblatex.

Via "Requires biblatex-chicago", this is now possible.

For proper support, a citeengine file needs to be written

This commit here could also be backported to stable.

5 years agoFindAdv: Handle more cases
Kornel Benko [Sun, 17 Feb 2019 23:40:55 +0000 (00:40 +0100)]
FindAdv: Handle more cases

Some macros need:
1.) Take care of case sensitivity
2.) Better handling of used argument values
3.) Cleaner list-environment search
4.) Remove superfluous '~' if searching for description or labeling env

5 years agoFindAdv: Even more fine tuning
Kornel Benko [Sat, 16 Feb 2019 17:39:10 +0000 (18:39 +0100)]
FindAdv: Even more fine tuning

5 years agoIntro.lyx: remove a "short title"
Scott Kostyshak [Fri, 15 Feb 2019 17:12:10 +0000 (12:12 -0500)]
Intro.lyx: remove a "short title"

This short title removed a spaced, and when taking a look we decided
that the advantages of removing it (simplicity and consistency)
outweigh the benefits of having a shorter entry in the table of
contents and PDF bookmarks.

5 years agoctests: useSystemFonts.pl -- revert changes in 1879fbedfb67cc6.
Günter Milde [Fri, 15 Feb 2019 06:07:15 +0000 (07:07 +0100)]
ctests: useSystemFonts.pl -- revert changes in 1879fbedfb67cc6.

5 years agoctests: "Uninvert" IEEE tests with non-TeX fonts. Fix missing characters.
Günter Milde [Thu, 14 Feb 2019 00:01:43 +0000 (01:01 +0100)]
ctests: "Uninvert" IEEE tests with non-TeX fonts. Fix missing characters.

Documents used deprecated or lookalike characters missing in
Latin Modern system fonts:

Customization.lyx: "figure dash" instead of "emdash".
revtex4-1: "Angstrom sign" instead of "latin letter A with ring".

5 years agoFindAdv: More fine tuning
Kornel Benko [Wed, 13 Feb 2019 12:41:57 +0000 (13:41 +0100)]
FindAdv: More fine tuning

5 years agoctest update: Set non-TeX fonts in documents, update comments and tags.
Günter Milde [Wed, 13 Feb 2019 09:34:18 +0000 (10:34 +0100)]
ctest update: Set non-TeX fonts in documents, update comments and tags.

5 years agoctests: update tagging rules.
Günter Milde [Tue, 12 Feb 2019 23:10:27 +0000 (00:10 +0100)]
ctests: update tagging rules.

5 years agoFindAdv: Fine tuning
Kornel Benko [Tue, 12 Feb 2019 13:21:14 +0000 (14:21 +0100)]
FindAdv: Fine tuning

5 years agoctests: Ignore some MergedManual tests with permanent problems
Kornel Benko [Tue, 12 Feb 2019 08:34:34 +0000 (09:34 +0100)]
ctests: Ignore some MergedManual tests with permanent problems

5 years agoUpdate comment.
Günter Milde [Tue, 12 Feb 2019 08:30:48 +0000 (09:30 +0100)]
Update comment.

5 years agoLoad "textcomp" and "pmboxdraw" before "(lua)inputenc" to fix #11454.
Günter Milde [Tue, 12 Feb 2019 08:22:55 +0000 (09:22 +0100)]
Load "textcomp" and "pmboxdraw" before "(lua)inputenc" to fix #11454.

Prevents wrong or missing characters with LuaTeX and 8-bit fonts.

Also "uninvert" the corresponding test case and two other
no longer failing "unicodesymbols" exports.

5 years agounicodesymbols: even more "force" flags.
Günter Milde [Mon, 11 Feb 2019 17:32:20 +0000 (18:32 +0100)]
unicodesymbols: even more "force" flags.

5 years agoFindAdv: Try to find real start of found match
Kornel Benko [Mon, 11 Feb 2019 12:06:02 +0000 (13:06 +0100)]
FindAdv: Try to find real start of found match

Sometime it happen that the selection contains area which was skipped
in splitOnKnownMacros().
So we check, if a shorter selection would give the same mach size.

5 years agoFix Visual C++ warnning
Jean-Marc Lasgouttes [Mon, 11 Feb 2019 09:43:59 +0000 (10:43 +0100)]
Fix Visual C++ warnning

5 years agoWin installer: remove no longer available package
Uwe Stöhr [Sun, 10 Feb 2019 23:41:22 +0000 (00:41 +0100)]
Win installer: remove no longer available package

5 years agoWin installer: updates and fixes
Uwe Stöhr [Sun, 10 Feb 2019 23:17:42 +0000 (00:17 +0100)]
Win installer: updates and fixes

- enable support for Georgian
- update file sizes
- re-introduce the dictionary download because it is necessary to step through several mirrors if necessary. This function was once added because as it is now, only one mirror is used, if it is dead the user won't get the dictionary
- update the mirror list

5 years agoFindAdv: Add handling of begin{multicols}[...][...]{...}
Kornel Benko [Sun, 10 Feb 2019 17:00:55 +0000 (18:00 +0100)]
FindAdv: Add handling of begin{multicols}[...][...]{...}

Also
a.) try to speed up regex search using non-greedy mode (.*?)
b.) remove '\n' completely in searched strings if it is not surrounded with
aplanumerical chars

5 years agounicodesymbols: one more missing "force" flag.
Günter Milde [Sun, 10 Feb 2019 15:54:34 +0000 (16:54 +0100)]
unicodesymbols: one more missing "force" flag.

5 years agoAmend 1e3e30da15 (unicodesymbols) and uninvert tests that now compile.
Günter Milde [Sat, 9 Feb 2019 19:41:39 +0000 (20:41 +0100)]
Amend 1e3e30da15 (unicodesymbols) and uninvert tests that now compile.

5 years agoDon't switch encodings to/from CJK if the document encoding is using the CJK package.
Günter Milde [Thu, 7 Feb 2019 21:07:59 +0000 (22:07 +0100)]
Don't switch encodings to/from CJK if the document encoding is using the CJK package.

Also, since we return earlier if the document encoding is an utf8-variant
since fc0ab1283, the wrapper around "setEncoding" is no longer required.

5 years agoctests: uninvert a few Farsi splash tests
Scott Kostyshak [Sat, 9 Feb 2019 18:28:29 +0000 (13:28 -0500)]
ctests: uninvert a few Farsi splash tests

Thanks to changing the encoding at f82030d2, these exports now
succeed.

5 years agoFindadv: Add handling for powerdot macros
Kornel Benko [Thu, 7 Feb 2019 12:35:47 +0000 (13:35 +0100)]
Findadv: Add handling for powerdot macros

With format enabled, these macros were hard to process:
lyxslide, twocolumn

5 years agoForce "unicodesymbols" conversions for Hebrew and Arabic encodings.
Günter Milde [Wed, 6 Feb 2019 15:48:48 +0000 (16:48 +0100)]
Force "unicodesymbols" conversions for Hebrew and Arabic encodings.

Fixes wrong output with these encodings for Latin Unicode blocks.
Other Unicode blocks still need verification for correct output.

5 years agoFix algorithm for finding localized files
Jean-Marc Lasgouttes [Wed, 6 Feb 2019 14:49:53 +0000 (15:49 +0100)]
Fix algorithm for finding localized files

Now we search in priority with the GUI language, and then the
language(s) specified in the LANGUAGES environment variable.
Preoviously, the GUI language would only be considered when
LANGUAGES was not set (which was a bug).

Take this opportunity to remove old compatibility code from 2007.

5 years agoFix CJK preamble.
Günter Milde [Tue, 5 Feb 2019 19:27:38 +0000 (20:27 +0100)]
Fix CJK preamble.

Don't load the CJK package with utf8x (feature clash).

Load CJK (not CJKutf8) with traditional Chinese and "language-default".

5 years agoAmend 1c9d3da938 again: some more forced "unicodesymbols" conversions.
Günter Milde [Tue, 5 Feb 2019 19:17:10 +0000 (20:17 +0100)]
Amend 1c9d3da938 again: some more forced "unicodesymbols" conversions.

5 years agoComment: add matching parenthesis
Scott Kostyshak [Tue, 5 Feb 2019 18:42:08 +0000 (13:42 -0500)]
Comment: add matching parenthesis

5 years agoUse braces for listings caption
Enrico Forestieri [Tue, 5 Feb 2019 18:04:12 +0000 (19:04 +0100)]
Use braces for listings caption

Commit [3366c49f/lyxgit] intended to strip braces only for minted
but was actually stripping them also for listings. As the braces
are necessary for the listings package, reintroduce them.
This is a master-only issue.

5 years agoCmake build: Fix some warnings with cmake3.13
Kornel Benko [Tue, 5 Feb 2019 11:27:15 +0000 (12:27 +0100)]
Cmake build: Fix some warnings with cmake3.13

Wrong set() syntax

5 years agoDEPM: fix infinite loop.
Jean-Marc Lasgouttes [Tue, 5 Feb 2019 10:51:24 +0000 (11:51 +0100)]
DEPM: fix infinite loop.

5 years agoCheck for CJK instead of CJKutf8.
Günter Milde [Tue, 5 Feb 2019 10:31:27 +0000 (11:31 +0100)]
Check for CJK instead of CJKutf8.

The specific test was introduced in ef6be5f4 because
CJKutf8 was relatively new (cf. lyx.org/trac/ticket/5386).

10 years on, CJKutf8 is an established part of the CJK bundle
and we can skip the special test for CJKutf8 to make the logic
considerabely simpler to read, maintain and debug.

5 years agoPrevent fallback to "utf8" if "inputenc" package is not loaded.
Günter Milde [Sun, 3 Feb 2019 21:04:17 +0000 (22:04 +0100)]
Prevent fallback to "utf8" if "inputenc" package is not loaded.

Since April 2018, pdflatex falls back to input-encoding utf8 if
it does not detect an input encoding setting.
https://www.latex-project.org/news/latex2e-news/ltnews28.pdf

This leads to failure with CJK legacy encodings and may not
be what you want if selecting "Language Default (no inputenc)"
as document input-encoding.

5 years agoctests: update Korean tests, add "language default" test including Chinese.
Günter Milde [Sun, 3 Feb 2019 21:16:35 +0000 (22:16 +0100)]
ctests: update Korean tests, add "language default" test including Chinese.

Set suitable non-TeX fonts in the test document.
Use "kotex" language package.

5 years agoAmend 1c9d3da938: some more forced "unicodesymbols" conversions.
Günter Milde [Sun, 3 Feb 2019 21:03:28 +0000 (22:03 +0100)]
Amend 1c9d3da938: some more forced "unicodesymbols" conversions.

5 years agoFindadv: Handle \lettrine{} in initials.module
Kornel Benko [Tue, 5 Feb 2019 07:04:47 +0000 (08:04 +0100)]
Findadv: Handle \lettrine{} in initials.module

The problem here is, that selecting any subset of a \lettrine{}
line always creates an initials header. That makes it impossible
to our search engine to find strings, because the regex does not
contain that info. So we have to discard the leading \lettrine part
completely.
We place now a marker (\endarguments) to determine that removable
part.

5 years agoDo not rely on x_ when painting label
Jean-Marc Lasgouttes [Mon, 4 Feb 2019 11:13:01 +0000 (12:13 +0100)]
Do not rely on x_ when painting label

Additionally fixes a warning about unused value (from clang-analyzer).

5 years agoFix bug #11484
Enrico Forestieri [Mon, 4 Feb 2019 09:49:02 +0000 (10:49 +0100)]
Fix bug #11484

When splitting parameters at commas, take into account that
commas inside curly braces are not parameter separators.

5 years agoForce "unicodesymbols" conversion for legacy CJK encodings where required.
Günter Milde [Thu, 31 Jan 2019 17:06:30 +0000 (18:06 +0100)]
Force "unicodesymbols" conversion for legacy CJK encodings where required.

5 years agoctests: invert test for #6197
Günter Milde [Thu, 31 Jan 2019 11:50:19 +0000 (12:50 +0100)]
ctests: invert test for #6197

5 years agoFix DEPM at end of paragraph
Jean-Marc Lasgouttes [Wed, 30 Jan 2019 22:50:53 +0000 (23:50 +0100)]
Fix DEPM at end of paragraph

Remove special handling of spaces at end of paragraph. Now they are
handled like interword spaces by both DEPM methods.

Fix off-by-one error in loop when testing for end of paragraph.

Style: use Dociterator::lastpos() instead of Paragraph::size().

Part of bug #11412.

5 years agoctests: Update Chinese report example.
Günter Milde [Wed, 30 Jan 2019 14:43:11 +0000 (15:43 +0100)]
ctests: Update Chinese report example.

5 years agoDo not use \inputencoding when the buffer input encoding is one of the "legacy" CJK...
Günter Milde [Wed, 30 Jan 2019 14:14:45 +0000 (15:14 +0100)]
Do not use \inputencoding when the buffer input encoding is one of the "legacy" CJK encodings.

If Document>Settings>Language>Encoding is set to any value except "auto" or "default", we
expect the whole document to use this encoding. Wiht encodings from the CJK package, this means
one big "CJK" environment and no encoding switches.

Characters that are not handled by the CJK package need to be "forced" in lib/unicodesymbols.
This is completed for "euc-cn", the others will follow.

5 years agoctests: fix/update CJK tests.
Günter Milde [Tue, 29 Jan 2019 23:53:31 +0000 (00:53 +0100)]
ctests: fix/update CJK tests.

5 years agoUse "ctex" default fonts (FandongSol) with Xe/LuaTeX.
Günter Milde [Tue, 29 Jan 2019 21:44:11 +0000 (22:44 +0100)]
Use "ctex" default fonts (FandongSol) with Xe/LuaTeX.

The default fonts provide a good match to LatinModern and
closer similarity to the look with 8-bit TeX fonts.

Also replace a box-drawing character in a heading with an em-dash.

5 years agoChinese localization in user preamble using "ctex" with non-TeX fonts
Günter Milde [Tue, 29 Jan 2019 21:31:58 +0000 (22:31 +0100)]
Chinese localization in user preamble using "ctex" with non-TeX fonts
https://tex.stackexchange.com/questions/17611/how-does-one-type-chinese-in-latex

TODO: use "ctex" if the document language is Chinese.

Remove "\clearpage" workaround from documents
(not required after fix for #5386 in [5ebc0b3f432f468/lyxgit]).

5 years agoctests: Dedicated test and comments for "lyx2lyx.lyx_2_4.revert_fonts".
Günter Milde [Tue, 29 Jan 2019 11:35:12 +0000 (12:35 +0100)]
ctests: Dedicated test and comments for "lyx2lyx.lyx_2_4.revert_fonts".

5 years ago? and = must not be percent-encoded in hrefs
Juergen Spitzmueller [Tue, 29 Jan 2019 13:49:04 +0000 (14:49 +0100)]
? and = must not be percent-encoded in hrefs

Fixes: #11482
5 years agoDEPM: some factorization beween both versions
Jean-Marc Lasgouttes [Tue, 29 Jan 2019 13:38:17 +0000 (14:38 +0100)]
DEPM: some factorization beween both versions

Additionally, correct the cursor by an offset equal to the variation of paragraph size : if change tracking is on, deleting a space may mean that it is just marked as deleted.

Part of bug #11412.

5 years agoAmend a25b9702, lyx2lyx: Corrected handling of system-font-specs
Kornel Benko [Tue, 29 Jan 2019 12:21:05 +0000 (13:21 +0100)]
Amend a25b9702, lyx2lyx: Corrected handling of system-font-specs

In the lines specifying the font, e.g.
\font_typewriter "DejaVuSansMono" "DejaVu Sans Mono"
the system font specs may contain words separated by spaces

5 years agoctests: update tests after the last fixes.
Günter Milde [Tue, 29 Jan 2019 09:52:41 +0000 (10:52 +0100)]
ctests: update tests after the last fixes.

5 years agoFix CJK environment nesting issue.
Günter Milde [Mon, 28 Jan 2019 22:02:33 +0000 (23:02 +0100)]
Fix CJK environment nesting issue.

If the last paragraph is nested in an environment,
we'll have to \end that first.