]>
git.lyx.org Git - lyx.git/log
Juergen Spitzmueller [Wed, 1 Feb 2023 18:05:32 +0000 (19:05 +0100)]
Fix typos
Juergen Spitzmueller [Wed, 1 Feb 2023 17:16:33 +0000 (18:16 +0100)]
Amend
ce7eb7734bafaf
When a style is defunc'ed, defunc the obsoleted variant as well
Juergen Spitzmueller [Wed, 1 Feb 2023 15:24:16 +0000 (16:24 +0100)]
Disambiguate Acknowledgment[[credits]] and Acknowledgment[[theorem]]
Juergen Spitzmueller [Wed, 1 Feb 2023 11:55:37 +0000 (12:55 +0100)]
Amend
8d47ffd200eb2
the AEA layout includes and modifies AMS extended
Jean-Marc Lasgouttes [Tue, 31 Jan 2023 23:12:14 +0000 (00:12 +0100)]
Revert "Extended comment and indentation for source code"
This was pushed by mistake. A different version of this patch will
eventually be committed.
This reverts commit
439c09912482489e79399fd9e10fa2b7f717f565 .
Jean-Marc Lasgouttes [Tue, 31 Jan 2023 23:02:35 +0000 (00:02 +0100)]
Fixup
0fed10e4 : make sure redraw happens as needed
This commit had had an additional not documented change: redraws
happen only when they are needed. This did not help fix the bug, but
looked smart on first sight. Alas, I find that these smart changes
added because "why not?" tend to come back to haunt me eventually.
In particular this case, the problem was that the code tested whether
the offset of anchor paragraph had changed, but not whether the
paragraph itself had changed. This means that, when switching from one
section to another with the outliner, the view was not updated.
Daniel Ramoeller [Sat, 14 Jan 2023 12:22:57 +0000 (13:22 +0100)]
Extended comment and indentation for source code
- automatically inherit indentation from previous block
- (un)indent blocks
- (un)comment blocks
- add feature to show tabs and spaces
Pavel Sanda [Tue, 31 Jan 2023 19:59:00 +0000 (20:59 +0100)]
* lib/layouttranslations
Revert part of the update. It needs manual check for the rest.
jpc [Tue, 31 Jan 2023 16:20:05 +0000 (17:20 +0100)]
Update fr.po
Kornel Benko [Tue, 31 Jan 2023 10:59:22 +0000 (11:59 +0100)]
Update sk.po
Juergen Spitzmueller [Tue, 31 Jan 2023 06:39:27 +0000 (07:39 +0100)]
Acknowledgement > Acknowledgment
Juergen Spitzmueller [Tue, 31 Jan 2023 05:02:31 +0000 (06:02 +0100)]
de.po
Scott Kostyshak [Tue, 31 Jan 2023 01:59:08 +0000 (20:59 -0500)]
ctests: uninvert JSS exports
The Journal of Statistical Software exports now succeed. An update
must have fixed the core issue.
Scott Kostyshak [Mon, 30 Jan 2023 17:53:25 +0000 (12:53 -0500)]
Fix more ja documents for LuaTeX/XeTeX + systemF
I used the following command inside the ja directories, and
confirmed the diff manually:
git ls-files -z | xargs -0 sed -i -e 's/\\font_typewriter "default" "default"/\\font_typewriter "default" "IPAGothic"/'
These changes are consistent with
6656dd22 .
Scott Kostyshak [Mon, 30 Jan 2023 17:22:25 +0000 (12:22 -0500)]
Fix Embedded Objects comp with LuaTeX (systemF)
Thanks to Jürgen.
Scott Kostyshak [Mon, 30 Jan 2023 16:54:36 +0000 (11:54 -0500)]
ctests: uninvert ja XeLaTeX exports that work now
These exports now work thanks to the font fix at
6656dd22 .
Juergen Spitzmueller [Mon, 30 Jan 2023 07:46:36 +0000 (08:46 +0100)]
Fix font combos with Qt6 (#12630)
Use CategorizedCombos methods to properly access the model
Juergen Spitzmueller [Mon, 30 Jan 2023 07:45:58 +0000 (08:45 +0100)]
Allow to hide categories in CategorizedCombo
font combos do not need that
Scott Kostyshak [Mon, 30 Jan 2023 04:22:51 +0000 (23:22 -0500)]
Set typewriter fonts for ja docs
This fixes compilation with system fonts and LuaTeX for the Intro
and Customization manuals, although Embedded Objects still has an
error due to some preamble code.
Thanks to Jürgen.
jpc [Sun, 29 Jan 2023 17:33:13 +0000 (18:33 +0100)]
Update French Customization manual for 2.4
Enrico Forestieri [Sun, 29 Jan 2023 17:30:50 +0000 (18:30 +0100)]
Amend
891ba726
Avoid an assertion when the cursor is at the start of a math hull.
Juergen Spitzmueller [Sat, 28 Jan 2023 17:26:59 +0000 (18:26 +0100)]
Update module descriptions
Juergen Spitzmueller [Sat, 28 Jan 2023 16:06:35 +0000 (17:06 +0100)]
fix glitch in index reversion
Juergen Spitzmueller [Sat, 28 Jan 2023 15:26:38 +0000 (16:26 +0100)]
de/Additional: finish revision
Juergen Spitzmueller [Sat, 28 Jan 2023 15:18:48 +0000 (16:18 +0100)]
Additional.lyx: further fixes #7 (last one)
Juergen Spitzmueller [Sat, 28 Jan 2023 09:16:54 +0000 (10:16 +0100)]
lyx2lyx: fix convert_totalheight method
This didn't account for float values
Enrico Forestieri [Fri, 27 Jan 2023 20:10:02 +0000 (21:10 +0100)]
Amend
16e67d4e
A docstring is not 0-terminated...
Enrico Forestieri [Fri, 27 Jan 2023 19:34:24 +0000 (20:34 +0100)]
Fix bug #12633
Avoid recursion when validating a macro that is defined recursively.
This avoids a crash but the latex engine will choke on it, of course.
Scott Kostyshak [Fri, 27 Jan 2023 02:40:23 +0000 (21:40 -0500)]
ctests: comment out the new XHTML validate tests
These new checks found issues that are difficult to fix.
Pavel Sanda [Thu, 26 Jan 2023 00:27:01 +0000 (01:27 +0100)]
* english LaTeXConfig.lyx update from Koji
Pavel Sanda [Thu, 26 Jan 2023 00:11:22 +0000 (01:11 +0100)]
* ja.po from Koji + remerged
Pavel Sanda [Thu, 26 Jan 2023 00:02:28 +0000 (01:02 +0100)]
* UserGuide.lyx from Koji
Pavel Sanda [Thu, 26 Jan 2023 00:01:40 +0000 (01:01 +0100)]
* Tutorial.lyx from Koji
Pavel Sanda [Thu, 26 Jan 2023 00:00:12 +0000 (01:00 +0100)]
* Shortcuts.lyx from Koji
Pavel Sanda [Wed, 25 Jan 2023 23:59:18 +0000 (00:59 +0100)]
* MergedManuals.lyx from Koji
Pavel Sanda [Wed, 25 Jan 2023 23:58:29 +0000 (00:58 +0100)]
* Math.lyx from Koji
Pavel Sanda [Wed, 25 Jan 2023 23:57:28 +0000 (00:57 +0100)]
* Math.lyx from Koji
Pavel Sanda [Wed, 25 Jan 2023 23:56:29 +0000 (00:56 +0100)]
* Intro.lyx from Koji
Pavel Sanda [Wed, 25 Jan 2023 23:55:35 +0000 (00:55 +0100)]
* EmbeddedObjects.lyx from Koji
Pavel Sanda [Wed, 25 Jan 2023 23:54:32 +0000 (00:54 +0100)]
* Customization.lyx from Koji
Pavel Sanda [Wed, 25 Jan 2023 23:53:11 +0000 (00:53 +0100)]
* Additional.lyx from Koji
Richard Kimberly Heck [Wed, 25 Jan 2023 16:23:57 +0000 (11:23 -0500)]
Forgot this
Scott Kostyshak [Wed, 25 Jan 2023 15:56:40 +0000 (10:56 -0500)]
Fix -Winconsistent-missing-override
Fix the following warning:
src/frontends/qt/GuiDocument.h:377:7: error: 'eventFilter' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
bool eventFilter(QObject * sender, QEvent * event);
^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:139:18: note: overridden virtual function is here
virtual bool eventFilter(QObject *watched, QEvent *event);
^
Amends
62413580dee8a4ff325da8d28419b60a95cadd71 .
Daniel Ramöller [Mon, 23 Jan 2023 23:05:26 +0000 (18:05 -0500)]
Fix bug #12061.
Thibaut Cuvelier [Sun, 22 Jan 2023 01:45:25 +0000 (02:45 +0100)]
InsetMathHull: add a missing const (plus strange indentation fixed).
Thibaut Cuvelier [Sun, 22 Jan 2023 00:49:03 +0000 (01:49 +0100)]
MathML: make InsetMathHull::mathmlize easier to read while doing less work
If `havetable == true`, a lot of the code didn't make any sense: in particular, it was outputting a level of <m:mrow> too many.
Also, add some comments and rewrite the comment about mlabeledtr.
Contributed by lynx: https://www.lyx.org/trac/ticket/12629
Thibaut Cuvelier [Sun, 22 Jan 2023 00:25:03 +0000 (01:25 +0100)]
InsetMathHull: replace 0 by nullptr.
Kornel Benko [Fri, 20 Jan 2023 15:51:38 +0000 (16:51 +0100)]
Cmake tests for xhtml: Check only for errors
For now, do not handle warnings in output from call to simplehtml_validity.py.
jpc [Fri, 20 Jan 2023 09:58:15 +0000 (10:58 +0100)]
Management of note in section 2.1.14
jpc [Fri, 20 Jan 2023 09:07:45 +0000 (10:07 +0100)]
Translation of new index features (last step)
Thibaut Cuvelier [Fri, 20 Jan 2023 01:21:27 +0000 (02:21 +0100)]
MathML: use standard {M/E}Tag{,Inline} instead of bespoke constructs
Also, replace lspace='thinmathspace' by constructs that are not deprecated.
Contributed by lynx: https://www.lyx.org/trac/ticket/12629
Thibaut Cuvelier [Fri, 20 Jan 2023 01:45:20 +0000 (02:45 +0100)]
MathML in HTML: in case of conversion failure, add a comment
Thibaut Cuvelier [Fri, 20 Jan 2023 01:42:07 +0000 (02:42 +0100)]
MathML: improve formatting of formula in XHTML hull
Contributed by lynx: https://www.lyx.org/trac/ticket/12629
Thibaut Cuvelier [Fri, 20 Jan 2023 01:30:35 +0000 (02:30 +0100)]
MathML: remove extraneous <mrow> in fractions
Contributed by lynx: https://www.lyx.org/trac/ticket/12629
Thibaut Cuvelier [Fri, 20 Jan 2023 01:25:08 +0000 (02:25 +0100)]
MathML: replace HTML entities with XML ones in more places
This part should have been committed with
bc73a857 in the first place.
Thibaut Cuvelier [Fri, 20 Jan 2023 01:19:33 +0000 (02:19 +0100)]
MathML: remove useless code
Contributed by lynx: https://www.lyx.org/trac/ticket/12629
Kornel Benko [Wed, 18 Jan 2023 10:06:42 +0000 (11:06 +0100)]
Update sk.po
Pavel Sanda [Mon, 16 Jan 2023 21:09:51 +0000 (22:09 +0100)]
UserGuide: Clarify autosave filename
Juergen Spitzmueller [Mon, 16 Jan 2023 16:13:48 +0000 (17:13 +0100)]
de/Additional: revisions, #2.
Juergen Spitzmueller [Mon, 16 Jan 2023 16:03:10 +0000 (17:03 +0100)]
Additional.lyx: further fixes #6
More to come!
Juergen Spitzmueller [Mon, 16 Jan 2023 16:02:17 +0000 (17:02 +0100)]
Update example file references in module descriptions
Juergen Spitzmueller [Mon, 16 Jan 2023 16:01:18 +0000 (17:01 +0100)]
de.po
Juergen Spitzmueller [Mon, 16 Jan 2023 11:25:36 +0000 (12:25 +0100)]
de.po: fix typo
jpc [Mon, 16 Jan 2023 10:47:03 +0000 (11:47 +0100)]
Update fr.po
jpc [Mon, 16 Jan 2023 10:36:10 +0000 (11:36 +0100)]
Translation of new index features (step 4)
Juergen Spitzmueller [Mon, 16 Jan 2023 07:43:18 +0000 (08:43 +0100)]
Fix module description
double quotes do not work in l7n.
Juergen Spitzmueller [Mon, 16 Jan 2023 07:41:58 +0000 (08:41 +0100)]
de.po
Juergen Spitzmueller [Sat, 14 Jan 2023 10:29:06 +0000 (11:29 +0100)]
de/Additional: first part of revisions.
Juergen Spitzmueller [Sat, 14 Jan 2023 10:25:15 +0000 (11:25 +0100)]
Additional.lyx: further fixes #5
More to come!
Juergen Spitzmueller [Sat, 14 Jan 2023 09:45:57 +0000 (10:45 +0100)]
Introduce pkglist format
This allows us to check and reconfigure if the pkglist format is not
current
Richard Kimberly Heck [Fri, 13 Jan 2023 00:22:08 +0000 (19:22 -0500)]
Fix build script for devel
Kornel Benko [Wed, 11 Jan 2023 06:20:11 +0000 (07:20 +0100)]
Update sk.po
Kornel Benko [Wed, 11 Jan 2023 05:49:28 +0000 (06:49 +0100)]
Cmake tests: Amend
a7112690 : enable use of html5validator
Also add the Summary-output unconditionaly (e.g. also in case of no error)
Kornel Benko [Wed, 11 Jan 2023 05:45:38 +0000 (06:45 +0100)]
Cmake tests: Nothing to output in case of no error in simplehtml_validity.py
Thibaut Cuvelier [Wed, 11 Jan 2023 00:12:22 +0000 (01:12 +0100)]
LyXHTML: remove meta content-type, it is only for HTML5, not XHTML5 (LyX is generating XML-compatible HTML, i.e. XHTML5).
Thibaut Cuvelier [Tue, 10 Jan 2023 23:26:28 +0000 (00:26 +0100)]
InsetTabular LyXHTML: fix wrong escape.
Thibaut Cuvelier [Tue, 10 Jan 2023 23:21:23 +0000 (00:21 +0100)]
KOMA Book: fix HTML validation issues.
Some elements had a <h1> title, while only one such title is expected per page.
Jean-Marc Lasgouttes [Tue, 10 Jan 2023 15:25:48 +0000 (16:25 +0100)]
Correct the description of Lexer::getLongString
The fact that it does not work with tabs has been fixed long ago.
Thibaut Cuvelier [Mon, 9 Jan 2023 03:19:51 +0000 (04:19 +0100)]
Export tests: use a better function name.
Thibaut Cuvelier [Mon, 9 Jan 2023 03:16:34 +0000 (04:16 +0100)]
Simplify simplehtml_validity.py
Jean-Marc Lasgouttes [Mon, 9 Jan 2023 15:06:38 +0000 (16:06 +0100)]
Fix warning
This was:
../../master/src/mathed/InsetMathBox.cpp:116:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<wchar_t> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
116 | for (int i = 0; i < parts.size(); i += 2) {
| ~~^~~~~~~~~~~~~~
../../master/src/mathed/InsetMathBox.cpp:120:20: warning: comparison of integer expressions of different signedness: ‘std::vector<std::__cxx11::basic_string<wchar_t> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
Daniel Ramoeller [Tue, 20 Dec 2022 10:55:25 +0000 (11:55 +0100)]
Allow multiple selections in the file open dialog
Fix for bug #4315.
Juergen Spitzmueller [Mon, 9 Jan 2023 10:07:26 +0000 (11:07 +0100)]
Additional.lyx: further fixes #4
More to come!
Juergen Spitzmueller [Mon, 9 Jan 2023 06:49:46 +0000 (07:49 +0100)]
Additional.lyx: further fixes #3
More to come!
Juergen Spitzmueller [Mon, 9 Jan 2023 06:28:49 +0000 (07:28 +0100)]
Fix grammar in, and try to clarify, warning
I suppose many users won't know what a "python interpreter" is and how
they could install one.
Juergen Spitzmueller [Mon, 9 Jan 2023 06:27:19 +0000 (07:27 +0100)]
de.po
Thibaut Cuvelier [Mon, 9 Jan 2023 00:50:05 +0000 (01:50 +0100)]
LyXHTML: avoid using v/align HTML attributes in tables, they are deprecated (like most attributes for td).
Also implement alignment at character in CSS.
Thibaut Cuvelier [Mon, 9 Jan 2023 00:50:05 +0000 (01:50 +0100)]
LyXHTML: avoid using v/align HTML attributes in tables, they are deprecated (like most attributes for td).
Also implement alignment at character in CSS.
Thibaut Cuvelier [Mon, 9 Jan 2023 00:11:52 +0000 (01:11 +0100)]
InsetMathBox: remove debugging code.
Thibaut Cuvelier [Sun, 8 Jan 2023 21:51:01 +0000 (22:51 +0100)]
Thibaut Cuvelier [Sun, 8 Jan 2023 21:19:39 +0000 (22:19 +0100)]
InsetIndex: make a condition more bullet-proof, a nullptr could be dereferenced.
Error noticed by Coverity:
*** CID 382777: Memory - illegal accesses (RETURN_LOCAL)
/home/lasgoutt/src/lyx/coverity/lyx/src/insets/InsetIndex.cpp: 1866 in _ZNK3lyx15InsetPrintIndex5xhtmlB5cxx11ERNS_9XMLStreamERKNS_12OutputParamsE()
1860
1861 // Collect the index entries in a form we can use them.
1862 vector<IndexEntry> entries;
1863 const docstring & indexType = params().getParamOr("type", from_ascii("idx"));
1864 for (const TocItem& item : *toc) {
1865 const auto* inset = static_cast<const InsetIndex*>(&(item.dit().inset()));
>>> CID 382777: Memory - illegal accesses (RETURN_LOCAL)
>>> Using "indexType", which points to an out-of-scope temporary variable of type "lyx::docstring const".
1866 if (item.isOutput() && inset->params().index == indexType)
1867 entries.emplace_back(IndexEntry{inset, &op});
1868 }
1869
1870 // If all the index entries are in notes or not displayed, get out sooner.
1871 if (entries.empty())
Thibaut Cuvelier [Sun, 8 Jan 2023 21:17:02 +0000 (22:17 +0100)]
InsetIndex: remove unused code that created Coverity errors.
Thibaut Cuvelier [Sun, 8 Jan 2023 21:03:26 +0000 (22:03 +0100)]
InsetIndex: add a missing destructor for IndexNode and call it from xhtml() to avoid leaking resources.
Corresponding Coverity finding:
** CID 382778: Resource leaks (RESOURCE_LEAK)
/home/lasgoutt/src/lyx/coverity/lyx/src/insets/InsetIndex.cpp: 1909 in _ZNK3lyx15InsetPrintIndex5xhtmlB5cxx11ERNS_9XMLStreamERKNS_12OutputParamsE()
________________________________________________________________________________________________________
*** CID 382778: Resource leaks (RESOURCE_LEAK)
/home/lasgoutt/src/lyx/coverity/lyx/src/insets/InsetIndex.cpp: 1909 in _ZNK3lyx15InsetPrintIndex5xhtmlB5cxx11ERNS_9XMLStreamERKNS_12OutputParamsE()
1903 }
1904
1905 xs << xml::EndTag("ul");
1906 xs << xml::CR();
1907 xs << xml::EndTag("div");
1908
>>> CID 382778: Resource leaks (RESOURCE_LEAK)
>>> Variable "index_root" going out of scope leaks the storage it points to.
1909 return ods.str();
1910 }
1911
Kornel Benko [Sun, 8 Jan 2023 16:12:16 +0000 (17:12 +0100)]
Cmake export tests. Add validation of lyxhtml exported files
ATM, the validation is commented out.
To use it, one has first to install html5validator with
$ pip3 install html5validator>=0.4.2
and uncomment the line 335 in export.cmake
Juergen Spitzmueller [Sun, 8 Jan 2023 14:31:37 +0000 (15:31 +0100)]
Additional.lyx: further fixes #2
More to come!
Juergen Spitzmueller [Sun, 8 Jan 2023 11:14:03 +0000 (12:14 +0100)]
Additional.lyx: further fixes
More to come!
Thibaut Cuvelier [Sun, 8 Jan 2023 01:27:36 +0000 (02:27 +0100)]
InsetMathBox: split the boxed text into <mtext> and other tags, while boxing the whole inset within an <mrow>.
Rationales:
- previously, <mstyle> was used, but it's being deprecated for MathML 4 Core in favour of CSS and <mrow> (not a big deal in itself)
- the whole box cannot be hosted within the same tag, because neither <mstyle> nor <mrow> can have text, they need an intermediate container, <mtext> (which cannot hold anything else that pure text)
- new behaviour: always output a container for the whole box that has the right attributes, i.e. an <mrow>; split the content of the cell to have text and other tags set apart (text in <mtext>, other tags left as they were)
Old behaviour, invalid MathML (2 to 4):
<mstyle XXX>text<mn>.</mn></mstyle>
New behaviour, valid MathML:
<mrow XXX><mtext>text</mtext><mn>.</mn></mrow>
Thibaut Cuvelier [Sat, 7 Jan 2023 23:51:43 +0000 (00:51 +0100)]
InsetMathBox: fix strange indentation (mix of spaces and tabs).
Thibaut Cuvelier [Sat, 7 Jan 2023 23:50:18 +0000 (00:50 +0100)]
MathML test case: fix a typo.
It was bugging me when looking at XHTML output: I was wondering if LyX was doing anything weird about ligatures! Hopefully not.
Thibaut Cuvelier [Sat, 7 Jan 2023 23:50:06 +0000 (00:50 +0100)]
MathML: convert InsetMathBox as <m:mtext>.
The inset represents text (as opposed to maths in formulae). <m:mstyle> is used to give style to its children, it is not supposed to have any contents on its own.