Commit Graph

45300 Commits

Author SHA1 Message Date
Juergen Spitzmueller
28f342e5f5 de.po 2023-01-16 17:01:18 +01:00
Juergen Spitzmueller
56cfc8ba30 de.po: fix typo 2023-01-16 12:25:36 +01:00
jpc
01d9d189ec Update fr.po 2023-01-16 11:47:03 +01:00
jpc
dc590ff509 Translation of new index features (step 4) 2023-01-16 11:36:49 +01:00
Juergen Spitzmueller
93649e8be9 Fix module description
double quotes do not work in l7n.
2023-01-16 08:43:18 +01:00
Juergen Spitzmueller
b05ccab83c de.po 2023-01-16 08:41:58 +01:00
Juergen Spitzmueller
9e45f570a7 de/Additional: first part of revisions. 2023-01-14 11:29:06 +01:00
Juergen Spitzmueller
114c520376 Additional.lyx: further fixes #5
More to come!
2023-01-14 11:25:15 +01:00
Juergen Spitzmueller
d213b72978 Introduce pkglist format
This allows us to check and reconfigure if the pkglist format is not
current
2023-01-14 10:45:57 +01:00
Richard Kimberly Heck
29aa336199 Fix build script for devel 2023-01-12 19:22:12 -05:00
Kornel Benko
4e8577e7b0 Update sk.po 2023-01-11 07:20:11 +01:00
Kornel Benko
88087a3cf5 Cmake tests: Amend a7112690: enable use of html5validator
Also add the Summary-output unconditionaly (e.g. also in case of no error)
2023-01-11 06:49:28 +01:00
Kornel Benko
9f3f21f0f9 Cmake tests: Nothing to output in case of no error in simplehtml_validity.py 2023-01-11 06:45:38 +01:00
Thibaut Cuvelier
861af2b84f LyXHTML: remove meta content-type, it is only for HTML5, not XHTML5 (LyX is generating XML-compatible HTML, i.e. XHTML5). 2023-01-11 01:12:22 +01:00
Thibaut Cuvelier
fb70f89983 InsetTabular LyXHTML: fix wrong escape. 2023-01-11 00:26:28 +01:00
Thibaut Cuvelier
65a9a2ac11 KOMA Book: fix HTML validation issues.
Some elements had a <h1> title, while only one such title is expected per page.
2023-01-11 00:21:23 +01:00
Jean-Marc Lasgouttes
8ec3397da3 Correct the description of Lexer::getLongString
The fact that it does not work with tabs has been fixed long ago.
2023-01-10 16:25:48 +01:00
Thibaut Cuvelier
253d532974 Export tests: use a better function name. 2023-01-09 17:16:40 +01:00
Thibaut Cuvelier
fa5b08e24d Simplify simplehtml_validity.py 2023-01-09 17:16:40 +01:00
Jean-Marc Lasgouttes
6093e7d661 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]
2023-01-09 16:06:38 +01:00
Daniel Ramoeller
f608328059 Allow multiple selections in the file open dialog
Fix for bug #4315.
2023-01-09 15:52:33 +01:00
Juergen Spitzmueller
3324793b8b Additional.lyx: further fixes #4
More to come!
2023-01-09 11:07:26 +01:00
Juergen Spitzmueller
fdfe679470 Additional.lyx: further fixes #3
More to come!
2023-01-09 07:49:46 +01:00
Juergen Spitzmueller
689962b8d5 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.
2023-01-09 07:28:49 +01:00
Juergen Spitzmueller
76d3c220dd de.po 2023-01-09 07:27:19 +01:00
Thibaut Cuvelier
9ae793c607 LyXHTML: avoid using v/align HTML attributes in tables, they are deprecated (like most attributes for td).
Also implement alignment at character in CSS.
2023-01-09 04:04:57 +01:00
Thibaut Cuvelier
1f370a3353 LyXHTML: avoid using v/align HTML attributes in tables, they are deprecated (like most attributes for td).
Also implement alignment at character in CSS.
2023-01-09 01:50:05 +01:00
Thibaut Cuvelier
1b09bc965d InsetMathBox: remove debugging code. 2023-01-09 01:11:52 +01:00
Thibaut Cuvelier
24cda9e94a Amend 2d56c01dcf 2023-01-08 22:51:01 +01:00
Thibaut Cuvelier
2d56c01dcf 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())
2023-01-08 22:19:39 +01:00
Thibaut Cuvelier
b42269f065 InsetIndex: remove unused code that created Coverity errors. 2023-01-08 22:17:02 +01:00
Thibaut Cuvelier
6e4cf808da 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
2023-01-08 22:03:36 +01:00
Kornel Benko
a71126904f 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
2023-01-08 17:18:30 +01:00
Juergen Spitzmueller
2d0941919f Additional.lyx: further fixes #2
More to come!
2023-01-08 15:31:37 +01:00
Juergen Spitzmueller
97112b8e80 Additional.lyx: further fixes
More to come!
2023-01-08 12:14:03 +01:00
Thibaut Cuvelier
e70cdfd3a2 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>
2023-01-08 02:36:48 +01:00
Thibaut Cuvelier
d3c81eb2cb InsetMathBox: fix strange indentation (mix of spaces and tabs). 2023-01-08 00:51:43 +01:00
Thibaut Cuvelier
4412fdf09a 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.
2023-01-08 00:50:29 +01:00
Thibaut Cuvelier
edcaad2419 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.
2023-01-08 00:50:29 +01:00
Thibaut Cuvelier
0f8951e708 LyXHTML validation tests: explicitly exit the Python script if it fails 2023-01-07 21:27:50 +01:00
jpc
b12875206e Update fr.po 2023-01-07 17:59:59 +01:00
Thibaut Cuvelier
6a3bd64032 LyXHTML: use a lower-case meta for generator, this is the most common convention. 2023-01-07 16:24:57 +01:00
Thibaut Cuvelier
a5c6215ebd LyXHTML: add a missing space in the content-type annotation. 2023-01-07 16:23:56 +01:00
Scott Kostyshak
95dd4f6bf6 updatelayouts.py: skip .txt files 2023-01-07 09:43:47 -05:00
Kornel Benko
093a86270e Update sk.po 2023-01-07 13:38:01 +01:00
Juergen Spitzmueller
6c98a0a6d2 Some minor corrections to the Additional revisions
More might follow.
2023-01-07 13:17:05 +01:00
Thibaut Cuvelier
051c5f2728 LyXHTML: add explicit HTMLTag for titles.
This way, LyX can generate semantic <hX> tags instead of a generic <div>.
2023-01-07 03:59:22 +01:00
Thibaut Cuvelier
fb4a26577e LyXHTML: don't explicitly mention that the style is CSS, HTML5 doesn't like it. 2023-01-07 03:42:11 +01:00
Thibaut Cuvelier
4c1f9d1161 LyXHTML: use a value of font-weight that makes sense instead of a nonexistent medium. 2023-01-07 03:40:27 +01:00
Thibaut Cuvelier
fd2078f3aa LyXHTML: remove the double specification of charset.
The choice of content-type is arbitrary.
2023-01-07 03:36:57 +01:00