Commit Graph

44250 Commits

Author SHA1 Message Date
Juergen Spitzmueller
a89ff030cf Amend 0f80de308c 2022-03-17 08:16:54 +01:00
Juergen Spitzmueller
0f80de308c 0 is a plausible intermediate length in positive context (#12508) 2022-03-17 08:15:09 +01:00
Kornel Benko
2e9c962a24 FindAdv: Generalize substitutions of commands to unicode inside regex 2022-03-16 13:46:24 +01:00
Kornel Benko
9bef4f9f1a Amend f8071449: Added conversion for unicode 0x2bb
Now regex using \textquoteleft works also without format search.
2022-03-15 13:01:51 +01:00
Kornel Benko
f80714497b FindAdv: Added conversion for unicode 0x2bb
In math-mode \textquoteleft was still not used as unicode
so it was not possible to find the char using regex
2022-03-15 10:35:22 +01:00
Kornel Benko
2e43b458a9 Update sk.po 2022-03-13 23:23:09 +01:00
Daniel Ramoeller
f21899661a Add toggle feature for all, outer and inner borders
Fix for bug #12503.

Also some bug fixes for the set inner lines algorithm. See discussion of #12503.
2022-03-13 10:34:16 -04:00
Juergen Spitzmueller
a88f67ac60 Fix signal (#12506) 2022-03-13 10:26:26 +01:00
Scott Kostyshak
d01f1428be ctests: log a fixed issue 2022-03-12 07:43:54 -05:00
Jean-Marc Lasgouttes
dc502c8279 Fixup 12dfdbf0: intercept validate(), not latex()
The fake contents of the inset should be created before validate(), so
that the correct packages are loaded.
2022-03-10 17:10:17 +01:00
Jean-Marc Lasgouttes
a6db1383f5 Get rid of spelling and language marks in info inset
These are just annoying. Note that the language mark cannot currently
be specified in a layout file, but it is not clear that there is a
need for that. Therefore I used the simple and hackish way.
2022-03-10 13:35:45 +01:00
Jean-Marc Lasgouttes
12dfdbf0a3 Fix crash in InsetInfo when bindings change
This is actually a generic InsetInfo issue:

1/ the contents of the inset is computed in updateBuffer, so that it
   is available for drawing but also for latex output (think batch
   export). When it is called, it deletes the existing inner paragraph
   and replaces it by a new one

2/ metrics build a new Row object that represents to paragraph

3/ draw() relies on this information

Now, imagine that updateBuffer() is called after metrics(). This can
happen for many reasons, and does happen here (display a shortcut info
and change the shortcut file from cua to emacs).

This problem has been here forever, but is only visible now that the
(experimental) bookmark display code needs to read the underlying
paragraph id.

The solution is to compute the inset contents at metrics time. This
is done by moving the relevant code to a new standalone build() method
that is called in metrics() but also in latex().
2022-03-10 12:45:07 +01:00
Kornel Benko
498a5cd487 FindAdv: Added possibility to search also in deactvated branches
To include content of deactivated branches to the searched region
one has to use the lyx-funcion
	search-ignore non-output-content true
2022-03-10 10:51:02 +01:00
Pavel Sanda
b257e2999b Correct fix for search-ignore docs. 2022-03-08 21:51:41 +01:00
Scott Kostyshak
ae31e16952 lyx2lyx: prefix warning messages with "lyx2lyx"
Both lyx2lyx and LyX write output to the terminal, and it's helpful
to know which messages are coming from lyx2lyx. For example, before
this commit if we opened a document in LyX that has a newer file format than
lyx2lyx can deal with, we see the following output in the terminal:

  Warning: 619: Format not supported.
  Warning: Quitting.
  Error: Document format failure

The first two lines (the warnings) are output from lyx2lyx, and the
third is output by LyX. This output was particularly confusing
because I first thought "LyX tries to quit if the document is too
new?", but in fact LyX still stays open; it just doesn't open the
document. After this change, the output is now the following:

  lyx2lyx warning: 619: Format not supported.
  lyx2lyx warning: Quitting.
  Error: Document format failure
2022-03-08 11:57:04 -05:00
Jean-Marc Lasgouttes
d15a96d93d updateBuffer needs an undo group
Otherwise warning messages appear when loading a file that contains
missing modules, for example (which may require to adjust depths in
document).
2022-03-08 16:16:50 +01:00
Enrico Forestieri
955308de57 Amend 3f9e21b8
This avoids a compile error on cygwin.
2022-03-06 23:01:56 +01:00
Juergen Spitzmueller
1c2628b5de Do not try to access user_defined_bullet with nesting > 3
We only have 4 nesting labels available.

In the workarea, display a fallback label with deeper nesting.
2022-03-06 17:27:28 +01:00
Scott Kostyshak
a175caf256 ctests: uninvert 2 LuaTeX tests fixed on TL21
These exports now pass, and a quick check of the output looks good.

These might have been fixed (although it is just a guess) due to the
following entry in the changelog of luaotfload v3.19:

  A new algorithm for selecting fonts based on font family names
  allows to more reliably load fonts based on their family name.

This commit reverts 2a665dcc.
2022-03-06 09:20:12 -05:00
Juergen Spitzmueller
b296941d90 Revert "Don't asssert on (too) deeply nested items"
This reverts commit 44d1756783.
2022-03-06 09:48:39 +01:00
Juergen Spitzmueller
44d1756783 Don't asssert on (too) deeply nested items
Use a fallback label instead.
2022-03-05 14:17:37 +01:00
Juergen Spitzmueller
ed2e242b1e Whitespace 2022-03-05 13:45:27 +01:00
Juergen Spitzmueller
c02fe70797 Use a more transparent lexic for bullet label functions 2022-03-05 09:00:47 +01:00
Juergen Spitzmueller
ad31043987 Remove unused function 2022-03-05 08:51:32 +01:00
Thibaut Cuvelier
ffc1976b97 Avoid copies of vectors. 2022-03-05 03:46:22 +01:00
Enrico Forestieri
8496b7dc9a Compile fix 2022-03-05 02:19:38 +01:00
Kornel Benko
ada2fd2d65 Update sk.po 2022-03-04 17:40:36 +01:00
Kornel Benko
4b58e3b4fe Format of description of function search-ignore 2022-03-04 17:29:37 +01:00
Thibaut Cuvelier
422bb60a14 tex2lyx tests: set the encoding when reading a file, not all OSes default to UTF-8 2022-03-03 01:57:28 +01:00
Juergen Spitzmueller
b5b3f56abb Encoding::fromLaTeXCommand: properly record requirements when exiting early 2022-03-02 12:48:10 +01:00
Juergen Spitzmueller
0c73df6efb Revert "Adapt resulting lyx-file to amend 39c0b322 (changed tex2lyx output)"
This reverts commit 5e8969b597.
2022-03-02 12:30:16 +01:00
Kornel Benko
5e8969b597 Adapt resulting lyx-file to amend 39c0b322 (changed tex2lyx output) 2022-03-02 08:48:35 +01:00
Juergen Spitzmueller
39c0b322f7 Encodings::fromLaTeXCommand: properly set needsTermination on early exit 2022-03-02 08:11:34 +01:00
Juergen Spitzmueller
afd6e1d45e Fix indentation fix. 2022-03-02 07:11:27 +01:00
Thibaut Cuvelier
c66be94d14 Fix indentation. 2022-03-02 00:39:53 +01:00
Thibaut Cuvelier
997f0621c5 Rename LATEX debug level to OUTFILE and use it for DocBook, HTML, and XML messages. 2022-03-01 16:05:42 +01:00
Thibaut Cuvelier
1220f399a7 Use a static method instead of a method call on a global variable. 2022-03-01 03:15:30 +01:00
Kornel Benko
3002a20800 FindAdv: Add missed command after 030db93a 2022-02-28 09:53:12 +01:00
Juergen Spitzmueller
6c530e1215 Still more indentation fixes. 2022-02-28 08:04:55 +01:00
Thibaut Cuvelier
75be9b1200 Slightly simplify code by using for range. 2022-02-27 20:37:51 +01:00
Juergen Spitzmueller
9cd479a044 Clarify debug message 2022-02-27 15:12:33 +01:00
Juergen Spitzmueller
6d17c5a1d6 Another indentation fix 2022-02-27 14:53:01 +01:00
Juergen Spitzmueller
f2bd823217 Fix indentation 2022-02-27 14:45:16 +01:00
Juergen Spitzmueller
b04a930a27 Amend 8a0715d0bd
Also do not use the bb trick when exporting "nice".
2022-02-27 10:02:52 +01:00
Thibaut Cuvelier
030db93ab2 unicodesymbols: fix problematic entries. 2022-02-27 04:14:12 +01:00
Juergen Spitzmueller
8a0715d0bd Do not output eps bounding box for unknown/missing graphics (#8899)
Except for dvi/ps output chain for which this trick was meant.
Also, issue an error message in this case. This is analogous to
the other output flavors now.
2022-02-26 16:23:27 +01:00
Kornel Benko
de0dbfb61b Amend(2) b5d9bbfe: FindAdv: Added handling of some missing conversions 2022-02-23 18:22:16 +01:00
Daniel Ramoeller
8bc6aa7535 Footnote LabelString should be "Foot" rather than "foot"
Fix for bug #12487.
2022-02-22 10:33:51 +01:00
Thibaut Cuvelier
4cab1a77d2 Encodings::fromLaTeXCommand: if the command directly maps an entry of unicodesymbols, use it and bypass most of the logic.
This is important for commands like !`, that are equivalent to \textexclamdown. However, ! is matched earlier, because the logic works with prefixes, hence the output doesn't make sense.
2022-02-21 18:24:26 +01:00
Thibaut Cuvelier
0cde3dce12 unicodesymbols: add math versions of some symbols according to unicodetex 2022-02-21 18:24:26 +01:00