Commit Graph

46093 Commits

Author SHA1 Message Date
Scott Kostyshak
294a18b643 ctests: add regression test for #13019
File was posted by Udi.
2023-12-29 17:03:53 -05:00
Udi-Fogiel
9ebc7d9512 Amend 7441172d
colswitch was checking for oldstyle instead of normalcolor
to see if we need \normalcolor, which lead to appearence
of \color{none} in some cases, but "none" is not a known
color.
2023-12-29 20:10:50 +01:00
Enrico Forestieri
24cc72266e Change the way a filepath is displayed
Instead of displaying the complete path, display the file name
first and then the path enclosed in parenthesis.

In this way files with same name but different path can still be
distinguished and, at the same time, files with different names
but same path are more easily spotted in case the complete path
is truncated by file managers.
2023-12-29 19:20:25 +01:00
Scott Kostyshak
fcb3e0cea0 ja docs: restore \font_typewriter to IPAGothic
This fixes, for example, the following ctests:

  export/doc/ja/Customization_pdf4_systemF
  export/doc/ja/Customization_pdf5_systemF

Consistent with ffe5d61b.
2023-12-25 12:20:33 -05:00
Scott Kostyshak
2aee182d9d ja docs: restore \origin
Amends afcd501f.
2023-12-25 12:09:31 -05:00
Koji Yakota
1e6b5448c1 Temporary fix for #11723. 2023-12-25 11:44:21 -05:00
Richard Kimberly Heck
afcd501fe8 Japanese translations and docs from Koji 2023-12-25 11:41:49 -05:00
Richard Kimberly Heck
fad1c81325 Revert "Hebrew translation from Omer"
There are two people working on this, and this one doesn't compile.

This reverts commit 63b4501efd.
2023-12-24 23:05:05 -05:00
Richard Kimberly Heck
63b4501efd Hebrew translation from Omer 2023-12-23 13:21:41 -05:00
Richard Kimberly Heck
1a214f2380 Remove redundant code 2023-12-23 13:17:56 -05:00
Juergen Spitzmueller
378397a6c6 Amend 782f6eae00
Rows should only be removed in ct mode if they have been added
in ct mode by the same author (otherwise mark them deleted)
2023-12-20 08:49:54 +01:00
Jean-Marc Lasgouttes
2d5fa181a1 Fix previews in yellow notes and disabled branches
While it is not necessary to run validate() on insets that do not
produce output (yellow notes and disabled branches), it has to be done
for previewing, since a construct inside the inset may require some
support.

This is done in two steps:

1. in PreviewLoader::dumpPreamble, indicate that a preview is being
   prepared. It is not clear why the `for_preview' boolean was not set
   before.

2. in Inset(Branch|Note)::validate, always call the parent's validate
   method when previewing.

It should have been possible to move the code from 2. to
InsetText::validate, but the weird code in handling
InsetNoteParams::Comment in html makes it difficult.
2023-12-19 17:56:18 +01:00
Jean-Marc Lasgouttes
3695b631c6 Remove unused variables 2023-12-19 17:32:55 +01:00
Juergen Spitzmueller
782f6eae00 Fix tracking of table row/column deletion with added material (#12984) 2023-12-19 16:45:16 +01:00
Daniel Ramoeller
a67a58036f Don't inherit font in Label inset
Fix for #12404.
2023-12-19 16:10:33 +01:00
Juergen Spitzmueller
1aa131de87 Output added par break marker inside argument for commands (#13014) 2023-12-19 15:48:07 +01:00
Jean-Marc Lasgouttes
8832f816ce Show change bar for an end-of-paragraph change
Fixes bug #13003.
2023-12-11 17:57:44 +01:00
Jean-Marc Lasgouttes
94118b865e Disable properly math inset locking
It is not clear whether this feature was once documented and used (it
would have been 20 years ago).

It is mostly disable now, but there was a remaining bit that is
annoying now.

I'll try to restore this later.
2023-12-08 15:32:21 +01:00
Scott Kostyshak
9143878e5d Python fixes for export to LyX Archive
Patch by Kees and José Matos.

For discussion, please see this [1] ML thread. José additionally
notes [2] the following:

  I took the change and I changed some minor annoyances:
  * test comparison with None;
  * fixed a region where the indentation was different from all the
  others (2 spaces instead of 4);
  * replaced xrange with range.

[1] https://www.mail-archive.com/search?l=mid&q=007b01da285a%241b8e28c0%2452aa7a40%24%40gmail.com
[2] https://www.mail-archive.com/search?l=mid&q=0cd9fe5fd161c0ad8950258867255a3bfae8dbc1.camel%40gmail.com
2023-12-06 14:18:11 -05:00
Juergen Spitzmueller
4723f8e754 Amend ddc5fed0ad
*facepalm*
2023-12-05 18:37:26 +01:00
Scott Kostyshak
ea37ee23d3 Fix pt_BR.po escapes
We need to use two backslashes for "\\arabic".

This fixes instances of the following warning:

  warning: internationalized messages should not contain the '\a'
  escape sequence

Amends a82ea09a.
2023-12-05 11:25:28 -05:00
Juergen Spitzmueller
ddc5fed0ad Omit character activation with hanging package
We do not use this feature anyway, and it breaks with other packages/
languages that activate characters
2023-12-05 17:07:10 +01:00
Richard Kimberly Heck
7579662f39 PO file from Georger, and GMO updates 2023-12-04 17:02:35 -05:00
Pavel Sanda
cae6f3801a fr.po - Restore broken header 2023-12-04 21:43:30 +01:00
Pavel Sanda
a82ea09aa7 * pt_BR.po from Georger 2023-12-04 21:22:02 +01:00
Juergen Spitzmueller
ac5cc01717 Amend 3698281943 once more
We need to trim off tabs and spaces
2023-12-03 11:18:42 +01:00
Juergen Spitzmueller
4ba94f74a5 Amend 3698281943 for the sake of the (not exceptionally bright) layout test 2023-12-03 10:36:59 +01:00
Jean-Marc Lasgouttes
a635e461a1 Remove code that has been dead for almost 20 years 2023-11-30 10:07:44 +01:00
Richard Kimberly Heck
1aa890629b Better variable name
I think this one must be a leftover from before the ranges.
2023-11-27 21:35:54 -05:00
Pavel Sanda
731c2e2c35 * Additional.lyx - typo reported by Daniel (#12985). 2023-11-27 20:07:35 +01:00
Juergen Spitzmueller
341dd6364c de/Customization: update 2023-11-24 16:49:35 +01:00
Richard Kimberly Heck
1bc5453cab Amend 28e8bf742.
The default 'empty' layout has "UNDEFINED" for the LabelString.
2023-11-17 19:32:49 -05:00
Enrico Forestieri
dc8d2d554f Document 58103cf2 2023-11-17 19:30:10 +01:00
Enrico Forestieri
ee19d67524 Amend 58103cf2
- Do not clear the initial selection to allow consecutive changes
  (this is in line with the behavior in texted)
- Make the color changes last so that the underline is the right color
- Allow to operate on selections that span multiple cells in a grid
- Use \boldsymbol instead of \mathbf to make everything bold
2023-11-17 19:03:46 +01:00
Richard Kimberly Heck
ac0a12de68 Let label strings work with branches.
A better patch will be attached to bug #12974.
2023-11-16 20:23:12 -05:00
Richard Kimberly Heck
28e8bf742c Fix layout names for branches. 2023-11-16 20:05:38 -05:00
Pavel Sanda
1492e94d81 * cs.po 2023-11-16 00:07:34 +01:00
Pavel Sanda
cc5ea83936 * layouttranslations reviewed by Yuriy 2023-11-13 22:36:57 +01:00
Yuriy Skalko
fd69f35fe9 Update ru.po 2023-11-13 09:46:04 +01:00
jpc
2c51c1be51 Update fr.po 2023-11-11 15:39:09 +01:00
Jean-Marc Lasgouttes
149a34a483 fixup 2b0841b0: forgot to add new file 2023-11-10 14:39:27 +01:00
Jean-Marc Lasgouttes
2b0841b0c9 Move LYX_(BEGIN|END)_MUTE_GCC_WARNING macros to their own header.
It was not nice to other build systems to define that in configure.ac.
2023-11-10 13:14:34 +01:00
Jean-Marc Lasgouttes
c2653e451c Avoid dangling-reference warning in several places
This new warning in gcc 13 is annoying because it happens in certain
parts of our code where it is harmless to pass a temporary variable to
a function that returns a reference.

This patch introduces a new pair of macros,
LYX_BEGIN_MUTE_GCC_WARNING(warn) and LYX_END_MUTE_GCC_WARNING, which
can be used to define a block of code where a given GCC warning is disabled.

The macros are no-ops with compilers other than gcc, although some
compilers that pretend to be GCC make be mis-detected. The worse that
can happen AFAIU is a bunch of warnings.

The macro relies on an intimidating set of for nested macros. The goal
of these macros is to build a nested string bit by bit. Here is how it
works:

PRAGMA_IGNORE(dangling-reference)
  => PRAGMA_IGNORE_1(-Wdangling-reference)
  => PRAGMA_IGNORE_2("-Wdangling-reference")
  => PRAGMA_IGNORE_3(GCC diagnostic ignored "-Wdangling-reference")
  => _Pragma("GCC diagnostic ignored \""-Wdangling-reference\"")

The next question is: what is _Pragma() good for? Well, it is a
version of #pragma that can be used in a macro.

And finally, what are those pragmas good for? The 'push' and 'pop'
ones make changes to warnings local. The 'ignored' ones allow
to disable some warnings. And disabling -Wpragmas ensures that we do
not have a warning if we try to disable a warning that is not
supported by the compiler.
2023-11-10 10:36:52 +01:00
Juergen Spitzmueller
3698281943 Read separated required arg without enquoting 2023-11-09 22:06:39 +01:00
Juergen Spitzmueller
97d596cda2 Improve documentation of required argument tag 2023-11-09 22:06:11 +01:00
Pavel Sanda
2828ae44ee * layouttranslations - uk review by Yuri 2023-11-09 20:38:34 +01:00
Richard Kimberly Heck
83cad93ccb GMO for Ukranian update 2023-11-08 22:48:13 -05:00
Richard Kimberly Heck
e849f40f98 Ukranian update from Yuri. Thanks Yuri! 2023-11-08 22:46:33 -05:00
Enrico Forestieri
039de52ad9 Amend 58103cf2
The \underbar macro is a text mode macro that can also be used
in math mode. However, when inserting it in mathed, LyX helpfully
wraps it in a \text inset. One can dissolve such text inset and
the macro would appear in math mode without any problem. But the
output routine thinks that the user is shooting itself in the
foot and tries to protect him by wrapping \underbar in the
\lyxmathsym macro, whose definition is normally added to the
preamble when an unicode character is used in math mode.

Of course, this is not the case for \underbar and a compile
error arises. The easier solution is to simply add lyxmathsym as
a requirement for \underbar in lib/symbols, but this means
that the definition of \lyxmathsym would be added even when not
necessary (because in the validation routine we miss the info
about the current mode). The correct solution is acknowledging
the dual nature of \underbar as a text-mode macro that can also
be used in math mode. Luckily the correct solution is almost as
easy as the easier one and is what is done in this commit.
2023-11-09 00:21:21 +01:00
Yuriy Skalko
53784b90ae Better dialog resizing behavior 2023-11-09 00:15:16 +01:00