]> git.lyx.org Git - lyx.git/log
lyx.git
17 months agoLyXHTML: add explicit HTMLTag for titles.
Thibaut Cuvelier [Sat, 7 Jan 2023 02:59:22 +0000 (03:59 +0100)]
LyXHTML: add explicit HTMLTag for titles.

This way, LyX can generate semantic <hX> tags instead of a generic <div>.

17 months agoLyXHTML: don't explicitly mention that the style is CSS, HTML5 doesn't like it.
Thibaut Cuvelier [Sat, 7 Jan 2023 02:42:11 +0000 (03:42 +0100)]
LyXHTML: don't explicitly mention that the style is CSS, HTML5 doesn't like it.

17 months agoLyXHTML: use a value of font-weight that makes sense instead of a nonexistent medium.
Thibaut Cuvelier [Sat, 7 Jan 2023 02:40:27 +0000 (03:40 +0100)]
LyXHTML: use a value of font-weight that makes sense instead of a nonexistent medium.

17 months agoLyXHTML: remove the double specification of charset.
Thibaut Cuvelier [Sat, 7 Jan 2023 02:34:58 +0000 (03:34 +0100)]
LyXHTML: remove the double specification of charset.

The choice of content-type is arbitrary.

17 months agoLyXHTML: fix the content-type attribute, it must be lower case (enforced for HTML5).
Thibaut Cuvelier [Sat, 7 Jan 2023 02:33:48 +0000 (03:33 +0100)]
LyXHTML: fix the content-type attribute, it must be lower case (enforced for HTML5).

17 months agoLyXHTML and DocBook: encode language codes as BCP47.
Thibaut Cuvelier [Sat, 7 Jan 2023 02:31:40 +0000 (03:31 +0100)]
LyXHTML and DocBook: encode language codes as BCP47.

17 months agoAmend 16a1aa99
Thibaut Cuvelier [Sat, 7 Jan 2023 02:05:55 +0000 (03:05 +0100)]
Amend 16a1aa99

With the current settings, a theorem with several paragraphs will have several wrapper tags (i.e. two `<db:figure>`, with one paragraph each, one next to the other when it's the same theorem), while there should be only one (one `<db:figure>` with two paragraphs).

It makes me wonder whether DocBookWrapperMergeWithPrevious should be the default value. I don't see a case where it would be set to `false` with a wrapper tag, but the test suite isn't developed enough to make the change with peace of mind (i.e. remove the parameter `DocBookWrapperMergeWithPrevious` and consider it is always `true` in the code).

For the record, the current code also works with two subsequent theorems with two paragraphs each (see new test case).

17 months agoMake formatting of DocBook changes more similar to surrounding code.
Thibaut Cuvelier [Sat, 7 Jan 2023 01:56:40 +0000 (02:56 +0100)]
Make formatting of DocBook changes more similar to surrounding code.

Spaces between if and condition.

17 months agoctests: uninvert a lyx2lyx test thanks to fix
Scott Kostyshak [Fri, 6 Jan 2023 18:51:34 +0000 (13:51 -0500)]
ctests: uninvert a lyx2lyx test thanks to fix

Thanks to the fix at d89a4848, the roundtrip now converges.

This reverts commit 83c72a3eceb1ce98242a848579952b7526739d15.

17 months agoRow breaking: keep unused tail for later (instead of assertion)
Jean-Marc Lasgouttes [Fri, 6 Jan 2023 15:02:29 +0000 (16:02 +0100)]
Row breaking: keep unused tail for later (instead of assertion)

Instead of asserting when there are unprocessed row elements (which,
as I understand it, should almost never happen), play safe and keep
them for later processing.

Related to bug #12617.

17 months agoFixup dcef1a9c: better handling of front-of-string splitting
Jean-Marc Lasgouttes [Fri, 6 Jan 2023 14:53:53 +0000 (15:53 +0100)]
Fixup dcef1a9c: better handling of front-of-string splitting

When splitting a string leads to a break before the first character, the
best is to declare that splitting failed.

Fixes bug #12617.

17 months agoAdd missing revert routine to lyx_2_0.py
Juergen Spitzmueller [Fri, 6 Jan 2023 13:40:25 +0000 (14:40 +0100)]
Add missing revert routine to lyx_2_0.py

17 months agoTypo in a comment
Scott Kostyshak [Fri, 6 Jan 2023 04:33:16 +0000 (23:33 -0500)]
Typo in a comment

17 months ago#12523 check for existence of usable Python interpreter
Stephan Witt [Thu, 5 Jan 2023 23:32:09 +0000 (00:32 +0100)]
#12523 check for existence of usable Python interpreter

- present appropriate alert message in case of missing Python
- add the option to quit LyX immediately
- recheck for Python interpreter on reconfigure if it was missing

17 months agoctests: invert a bug from old routine
Scott Kostyshak [Thu, 5 Jan 2023 17:55:32 +0000 (12:55 -0500)]
ctests: invert a bug from old routine

A test from a recent file, KOMA-Script_Book.lyx, uncovered this
issue. It is an old routine so not critical to fix.

The following is the diff that prevents convergence:

   \begin_inset Newpage cleardoublepage
   \end_inset

   \end_layout

   \begin_layout Standard

If convert_bibtex_clearpage(document) in lyx_2_0.py is commented out, then
the test passes.

17 months agoFix "origin" in KOMA-Script_Book.lyx
Kornel Benko [Thu, 5 Jan 2023 15:24:00 +0000 (16:24 +0100)]
Fix "origin" in KOMA-Script_Book.lyx

17 months agoAdd information to Row::operator<<
Jean-Marc Lasgouttes [Thu, 5 Jan 2023 10:55:32 +0000 (11:55 +0100)]
Add information to Row::operator<<

17 months agoFix minor bug mentioned in #10827
Richard Kimberly Heck [Thu, 5 Jan 2023 04:23:30 +0000 (23:23 -0500)]
Fix minor bug mentioned in #10827

17 months agoFix compilation problem
Richard Kimberly Heck [Thu, 5 Jan 2023 04:04:02 +0000 (23:04 -0500)]
Fix compilation problem

17 months agoAdditional.lyx: address scrbook error re old font
Scott Kostyshak [Thu, 5 Jan 2023 03:30:37 +0000 (22:30 -0500)]
Additional.lyx: address scrbook error re old font

Replace \bf with \bfseries.

The error was as follows:

  ! Class scrbook Error: undefined old font command `\bf'.

This change is consistent with 3cecd4d3.

After this change (and the previous commits), the ctests for
Additional.lyx pass again.

17 months agoAdditional.lyx: fix "origin" arg of rotate box
Scott Kostyshak [Thu, 5 Jan 2023 03:19:01 +0000 (22:19 -0500)]
Additional.lyx: fix "origin" arg of rotate box

The argument must specify "origin=...". Although that is confusing
(because the argument's name is "origin" so it might be expected
that this is done automatically), this is consistent with the use of
rotate box in our Embedded Objects manual.

17 months agoAdditional.lyx: resave with LyX binary
Scott Kostyshak [Thu, 5 Jan 2023 02:51:56 +0000 (21:51 -0500)]
Additional.lyx: resave with LyX binary

After editing with the external sed command in the previous commit,
now resave with the LyX binary. This eliminates unnecessary language
switches (e.g., no need to switch from "English" to "English" now
that the intermediate switch to "British" is gone).

17 months agoAdditional.lyx: rm English variant switches
Scott Kostyshak [Thu, 5 Jan 2023 02:50:39 +0000 (21:50 -0500)]
Additional.lyx: rm English variant switches

Use the following command to automate the process:

  sed -i "/^\\\lang \(american\|british\)$/d" Additional.lyx

The next commit will just resave the file with LyX, so as to clean
up the file contents after the external command from this commit.

17 months agoAdd note about deprecated layouts.
Pavel Sanda [Wed, 4 Jan 2023 21:13:38 +0000 (22:13 +0100)]
Add note about deprecated layouts.

17 months ago* Additional.lyx : Final remarks from John Hudson
Pavel Sanda [Wed, 4 Jan 2023 20:59:39 +0000 (21:59 +0100)]
* Additional.lyx : Final remarks from John Hudson

18 months agoUpdate entries for Foils, Slides and Reports in Chapter 3 Document classes and do...
John R Hudson [Tue, 3 Jan 2023 11:04:16 +0000 (11:04 +0000)]
Update entries for Foils, Slides and Reports in Chapter 3 Document classes and do final tidying up of Additional.lyx

18 months agoIgnore python cache
Richard Kimberly Heck [Tue, 3 Jan 2023 17:49:28 +0000 (12:49 -0500)]
Ignore python cache

18 months agoInsert entries for Tufte, frletter, G-Brief and lettre into Chapter 3 Document classe...
John R Hudson [Mon, 2 Jan 2023 09:42:38 +0000 (09:42 +0000)]
Insert entries for Tufte, frletter, G-Brief and lettre into Chapter 3 Document classes of Additional.lyx

18 months agoForgotten files
Pavel Sanda [Sun, 1 Jan 2023 21:36:04 +0000 (22:36 +0100)]
Forgotten files

18 months agoAdd KOMA-Script_Book.lyx and associated BibTeX file and CC logo to examples/Books...
John R Hudson [Sun, 1 Jan 2023 16:31:50 +0000 (16:31 +0000)]
Add KOMA-Script_Book.lyx and associated BibTeX file and CC logo to examples/Books and update Makefile.am

18 months agoRevert "New Theorems Module. Contributed by Udicoudco <udifoglle@gmail.com> on the...
Thibaut Cuvelier [Sat, 31 Dec 2022 10:28:56 +0000 (11:28 +0100)]
Revert "New Theorems Module. Contributed by  Udicoudco <udifoglle@gmail.com> on the mailing list. Rebased on top of master."

This reverts commit 42c2a25fb873727d87ce753b3a3ac4e913e36fe0.

18 months agoNew Theorems Module. Contributed by Udicoudco <udifoglle@gmail.com> on the mailing...
Thibaut Cuvelier [Sat, 31 Dec 2022 00:47:37 +0000 (01:47 +0100)]
New Theorems Module. Contributed by  Udicoudco <udifoglle@gmail.com> on the mailing list. Rebased on top of master.

I've modified all the non-AMS theorem modules so they would be independent of packages. currently
the code support \theoremstyle, but only with definition, plain and remark.

I'v added a new theorem module that support the thmtools \listoftheorems.

I've modified the syntax of all theorem modules, such that it would be easier to
create a new one, or maintaining the ones that exists. Instead of using \newtheorem
in the preamble of a lyaout, I wrote \lyx@newtheorem, and in each module I've defiened
\lyx@newtheorem as fitted. This way, there is only need in the files thorems-base, and theorems-extended,
instead of an .inc file for each module.

I've added theorems-labels.inc, a file that suppose to be included in a "Numbered by type" module,
to change the Label and the LabelCounter of the layouts in theorems-base.inc.

Note that in this configuration, all non-AMS modules will clash with the AMS ones, and so as the
proof versions. theorems-proof-std.inc suppose to be in the non-AMS while theorems-proof.inc
should be included only in AMS variants.

18 months agoCare for Qt5 LTS support for macos
Stephan Witt [Fri, 30 Dec 2022 22:37:43 +0000 (23:37 +0100)]
Care for Qt5 LTS support for macos

18 months agoInsert more detail about page layout, Custom Class options KOMA-Script options and...
John R Hudson [Fri, 30 Dec 2022 20:01:21 +0000 (20:01 +0000)]
Insert more detail about page layout, Custom Class options KOMA-Script options and using the book document class in the KOMA-Script section of Chapter 3 Document classes of Additional.lyx and delete the section on KOMA-letter V.1.

18 months agoCare for weird Qt6 package install location of developer tools (moc, uic etc).
Stephan Witt [Fri, 30 Dec 2022 11:08:43 +0000 (12:08 +0100)]
Care for weird Qt6 package install location of developer tools (moc, uic etc).

18 months agoMake code sign operation the final step of package build.
Stephan Witt [Fri, 30 Dec 2022 11:07:20 +0000 (12:07 +0100)]
Make code sign operation the final step of package build.

18 months agoInsert brief introduction to Chapter 3 Document classes, update the introduction...
John R Hudson [Thu, 29 Dec 2022 20:29:36 +0000 (20:29 +0000)]
Insert brief introduction to Chapter 3 Document classes, update the introduction to the AMS document classes section, adding in references to the example files, update the module names used and the Fact, Assumption and Question paragraph styles and mention the (Numbered by Type) modules in the AMS document classes section.

18 months agoFix compiler warning -Wstring-plus-int
Scott Kostyshak [Thu, 29 Dec 2022 21:25:42 +0000 (16:25 -0500)]
Fix compiler warning -Wstring-plus-int

Similar to d44eaa97.

18 months agoInsert entries for Hanging Paragraphs, Initials, Hyphenatable Text Markup and Logical...
John R Hudson [Thu, 29 Dec 2022 11:11:47 +0000 (11:11 +0000)]
Insert entries for Hanging Paragraphs, Initials, Hyphenatable Text Markup and Logical Markup in Chapter 4 Modules of Additional.lyx

18 months agoFix output of tex2lyx messages in runtests.py
Juergen Spitzmueller [Thu, 29 Dec 2022 14:10:05 +0000 (15:10 +0100)]
Fix output of tex2lyx messages in runtests.py

18 months agotex2lyx: Also factor out error and debug messages
Juergen Spitzmueller [Thu, 29 Dec 2022 08:37:00 +0000 (09:37 +0100)]
tex2lyx: Also factor out error and debug messages

18 months agoFix compiler warning -Wstring-plus-int
Scott Kostyshak [Thu, 29 Dec 2022 02:56:18 +0000 (21:56 -0500)]
Fix compiler warning -Wstring-plus-int

Warning was as follows:

  src/tex2lyx/Parser.cpp:898:39: error: adding 'uint32_t' (aka 'unsigned int') to a string does not append to the string [-Werror,-Wstring-plus-int]
                  warning_message("ignoring a char: " + static_cast<uint32_t>(c));
                                  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
  src/tex2lyx/Parser.cpp:898:39: note: use array indexing to silence this warning
                  warning_message("ignoring a char: " + static_cast<uint32_t>(c));
                                                      ^
                                  &                   [                         ]
  1 error generated.

18 months ago Solve shortcut conflicts in fr.po
jpc [Wed, 28 Dec 2022 17:05:37 +0000 (18:05 +0100)]
       Solve shortcut conflicts in fr.po

18 months agoInsert entries for Custom Footer/Header Text and Landscape Document Mode and update...
John R Hudson [Wed, 28 Dec 2022 14:11:07 +0000 (14:11 +0000)]
Insert entries for Custom Footer/Header Text and Landscape Document Mode and update the existing entry for Multiple Columns to match the new layout in Chapter 4 Modules of Additional.lyx

18 months agoFactor out tex2lyx warnings and add -q option (#11328)
Juergen Spitzmueller [Wed, 28 Dec 2022 15:29:38 +0000 (16:29 +0100)]
Factor out tex2lyx warnings and add -q option (#11328)

18 months agotex2lyx: exit earlier if input file could not be found
Juergen Spitzmueller [Wed, 28 Dec 2022 13:05:23 +0000 (14:05 +0100)]
tex2lyx: exit earlier if input file could not be found

In particular, do not write an empty .lyx file (#12339)

18 months agoSupport suffix-less tex file input in tex2lyx (#12340)
Juergen Spitzmueller [Wed, 28 Dec 2022 12:34:23 +0000 (13:34 +0100)]
Support suffix-less tex file input in tex2lyx (#12340)

18 months agoAmend febd1855eb: fix compilability
Thibaut Cuvelier [Wed, 28 Dec 2022 11:57:25 +0000 (12:57 +0100)]
Amend febd1855eb: fix compilability

18 months agoUpdate tex2lyx tests again
Juergen Spitzmueller [Wed, 28 Dec 2022 11:31:33 +0000 (12:31 +0100)]
Update tex2lyx tests again

18 months agoUpdate tex2lyx tests after 7868929aacde
Juergen Spitzmueller [Wed, 28 Dec 2022 11:30:48 +0000 (12:30 +0100)]
Update tex2lyx tests after 7868929aacde

18 months agotex2lyx: consider utf8 default encoding in newer LaTeX
Juergen Spitzmueller [Wed, 28 Dec 2022 10:42:59 +0000 (11:42 +0100)]
tex2lyx: consider utf8 default encoding in newer LaTeX

18 months agoInsert entries for the sixteen Maths modules into Chapter 4 Modules of Additional.lyx
John R Hudson [Wed, 28 Dec 2022 10:56:30 +0000 (10:56 +0000)]
Insert entries for the sixteen Maths modules into Chapter 4 Modules of Additional.lyx

18 months agoFix indentation
Juergen Spitzmueller [Wed, 28 Dec 2022 09:58:36 +0000 (10:58 +0100)]
Fix indentation

18 months agotex2lyx: put adjacent comment lines in one ERT inset (#4797)
Juergen Spitzmueller [Wed, 28 Dec 2022 08:40:22 +0000 (09:40 +0100)]
tex2lyx: put adjacent comment lines in one ERT inset (#4797)

18 months agoAmend febd1855eb: fix compilability of tex2lyx
Thibaut Cuvelier [Wed, 28 Dec 2022 01:33:11 +0000 (02:33 +0100)]
Amend febd1855eb: fix compilability of tex2lyx

18 months agoFix a typo in a comment
Thibaut Cuvelier [Wed, 28 Dec 2022 01:32:05 +0000 (02:32 +0100)]
Fix a typo in a comment

18 months agoInsert entries for Noweb, Rnw and Sweave in Chapter 4 Modules of Additional.lyx and...
John R Hudson [Tue, 27 Dec 2022 17:26:44 +0000 (17:26 +0000)]
Insert entries for Noweb, Rnw and Sweave in Chapter 4 Modules of Additional.lyx and make consequential updates to the Literate Programming section in the same document

18 months agoXML: overhaul the tag-comparison operators.
Thibaut Cuvelier [Tue, 27 Dec 2022 15:52:51 +0000 (16:52 +0100)]
XML: overhaul the tag-comparison operators.

First and foremost, this patch implements the latest best practices in C++ (i.e. comparison operators are not member functions).

The main objective of this rewrite is to have these operators callable in slightly more general contexts (*this->asFontTag() == *rhs.asFontTag() yielded an error because no member function could be called). This feature is no more required.

The rewrite took place in the context of https://www.lyx.org/trac/ticket/12585. The first iteration was using more complex code to circumvent XMLStream in DocBook (see details in the bug above and in the mailing list), while this one uses XMLStream fully. The bug was due to font tags being considered equal when they were not, due to the comparison done only on the XML tag and not on the actual font change (XML attributes can complement the tag for various font changes).

18 months agolayout2layout: remove unused regex.
Thibaut Cuvelier [Tue, 27 Dec 2022 02:21:29 +0000 (03:21 +0100)]
layout2layout: remove unused regex.

18 months agoDocBookGenerateTitle: update all layouts.
Thibaut Cuvelier [Fri, 23 Dec 2022 01:26:52 +0000 (02:26 +0100)]
DocBookGenerateTitle: update all layouts.

18 months agoDocBook: add support for DocBookGenerateTitle.
Thibaut Cuvelier [Thu, 22 Dec 2022 03:38:36 +0000 (04:38 +0100)]
DocBook: add support for DocBookGenerateTitle.

The new parameter allows more flexibility when encoding some elements that have a poor mapping in DocBook, like theorems. The major use is to wrap the environment in a generic container, figure, which requires a title (but none is available).

18 months agoMaster/Child: do not clean includeonly list while editing (part of #12470)
Juergen Spitzmueller [Tue, 27 Dec 2022 14:36:36 +0000 (15:36 +0100)]
Master/Child: do not clean includeonly list while editing (part of #12470)

18 months agoMasterChild.ui: Group radio buttons (part of #12470)
Juergen Spitzmueller [Tue, 27 Dec 2022 14:09:37 +0000 (15:09 +0100)]
MasterChild.ui: Group radio buttons (part of #12470)

18 months agoInsert entries for Customizable lists and Paragraph lists into Chapter 4 Modules...
John R Hudson [Tue, 27 Dec 2022 10:51:40 +0000 (10:51 +0000)]
Insert entries for Customizable lists and Paragraph lists into Chapter 4 Modules of Additional.lyx

18 months agoDocBook: for computing font changes, simplify code by removing state evolution from...
Thibaut Cuvelier [Mon, 26 Dec 2022 01:45:03 +0000 (02:45 +0100)]
DocBook: for computing font changes, simplify code by removing state evolution from iteration to iteration. This surely makes the code slightly slower (although the compiler should be smart enough), but (much) easier to reason about.

18 months agoDocBook: add some TODOs for the future.
Thibaut Cuvelier [Mon, 26 Dec 2022 23:02:30 +0000 (00:02 +0100)]
DocBook: add some TODOs for the future.

18 months agolayout2layout: improve coding style.
Thibaut Cuvelier [Mon, 26 Dec 2022 20:21:52 +0000 (21:21 +0100)]
layout2layout: improve coding style.

Useless parentheses (not helping with readability either) and semicolon. Redo indentation to be consistent throughout the file. Also, fix typos along the way.

18 months agoAdd comments about variable usage.
Thibaut Cuvelier [Mon, 26 Dec 2022 01:44:57 +0000 (02:44 +0100)]
Add comments about variable usage.

18 months agoFix a typo in a comment.
Thibaut Cuvelier [Mon, 26 Dec 2022 01:44:29 +0000 (02:44 +0100)]
Fix a typo in a comment.

18 months agoInsetIPAMacro: implement the XHTML conversion, refactor plaintext and DocBook to...
Thibaut Cuvelier [Mon, 26 Dec 2022 19:50:48 +0000 (20:50 +0100)]
InsetIPAMacro: implement the XHTML conversion, refactor plaintext and DocBook to share more code.

18 months agoInsert four entries for Floats & Captions modules, four entries for Foot- and Endnote...
John R Hudson [Mon, 26 Dec 2022 19:06:04 +0000 (19:06 +0000)]
Insert four entries for Floats & Captions modules, four entries for Foot- and Endnotes modules and two entries for Leisure, Sports and Music modules into Chapter 4 Modules of Additional.lyx.

18 months agoInsetMathExFunc: use XML entities instead of HTML in MathML.
Thibaut Cuvelier [Mon, 26 Dec 2022 19:38:06 +0000 (20:38 +0100)]
InsetMathExFunc: use XML entities instead of HTML in MathML.

This part should have been committed with bc73a857 in the first place.

18 months agoInsetMathSpace: use XML entities instead of HTML in MathML.
Thibaut Cuvelier [Mon, 26 Dec 2022 19:35:26 +0000 (20:35 +0100)]
InsetMathSpace: use XML entities instead of HTML in MathML.

This part should have been committed with bc73a857 in the first place.

18 months agoInsetIPAMacro: refactor code between DocBook and XHTML.
Thibaut Cuvelier [Mon, 26 Dec 2022 19:23:05 +0000 (20:23 +0100)]
InsetIPAMacro: refactor code between DocBook and XHTML.

18 months agoDocBook/HTML: use XML entities for spaces.
Thibaut Cuvelier [Mon, 26 Dec 2022 18:11:41 +0000 (19:11 +0100)]
DocBook/HTML: use XML entities for spaces.

This part should have been committed with bc73a857 in the first place.

18 months agoRevert doc update for Additional.lyx so maitenance work can continue.
Pavel Sanda [Mon, 26 Dec 2022 16:46:55 +0000 (17:46 +0100)]
Revert doc update for Additional.lyx so maitenance work can continue.

18 months ago Update fr.po
jpc [Mon, 26 Dec 2022 16:11:34 +0000 (17:11 +0100)]
     Update fr.po

18 months agode.po
Juergen Spitzmueller [Mon, 26 Dec 2022 12:51:19 +0000 (13:51 +0100)]
de.po

18 months agoMinor doc updates
Juergen Spitzmueller [Mon, 26 Dec 2022 12:43:11 +0000 (13:43 +0100)]
Minor doc updates

18 months agoAssociate "run:" link types with "Other"
Juergen Spitzmueller [Mon, 26 Dec 2022 12:19:52 +0000 (13:19 +0100)]
Associate "run:" link types with "Other"

18 months agoUpdate sk.po
Kornel Benko [Mon, 26 Dec 2022 10:34:26 +0000 (11:34 +0100)]
Update sk.po

18 months agoDisambiguate string
Juergen Spitzmueller [Mon, 26 Dec 2022 10:24:29 +0000 (11:24 +0100)]
Disambiguate string

18 months agoUpdate sk.po
Kornel Benko [Mon, 26 Dec 2022 09:58:39 +0000 (10:58 +0100)]
Update sk.po

18 months agoTry to be more precise in the hyperlink type tooltips
Juergen Spitzmueller [Mon, 26 Dec 2022 09:46:54 +0000 (10:46 +0100)]
Try to be more precise in the hyperlink type tooltips

18 months agotex2lyx: support "Other" type
Juergen Spitzmueller [Mon, 26 Dec 2022 09:40:39 +0000 (10:40 +0100)]
tex2lyx: support "Other" type

18 months agoGuiHyperlink: some minor fixes
Juergen Spitzmueller [Mon, 26 Dec 2022 09:13:51 +0000 (10:13 +0100)]
GuiHyperlink: some minor fixes

* disambiguate "Other" label
* Add accelerator
* Add tooltip to "Other" widget
* Amend tooltip of "Web" widget (since "other" now seems to have taken
part of its function)

18 months agoCleanup documentation about old XML support.
Thibaut Cuvelier [Mon, 26 Dec 2022 00:32:00 +0000 (01:32 +0100)]
Cleanup documentation about old XML support.

18 months agoCommandDepth is no longer used, remove it from the documentation.
Thibaut Cuvelier [Mon, 26 Dec 2022 00:36:38 +0000 (01:36 +0100)]
CommandDepth is no longer used, remove it from the documentation.

18 months agoCleanup documentation about old XML support.
Thibaut Cuvelier [Mon, 26 Dec 2022 00:32:00 +0000 (01:32 +0100)]
Cleanup documentation about old XML support.

18 months agoAmend bc73a85778ffb1432bdc510d9a710e7394f42163
Thibaut Cuvelier [Sun, 25 Dec 2022 23:18:47 +0000 (00:18 +0100)]
Amend bc73a85778ffb1432bdc510d9a710e7394f42163

Missing return in `specialCharKindToXMLEntity`. Previously, the
functions that were merged into `specialCharKindToXMLEntity` did not
return any kind of error in case an unknown special character is met
(enumerated value). This behaviour is preserved.

18 months agoDocBook: add a comment about the need for DocBook 5.2.
Thibaut Cuvelier [Fri, 23 Dec 2022 01:22:55 +0000 (02:22 +0100)]
DocBook: add a comment about the need for DocBook 5.2.

18 months agoCleanup following the removal of HTML entities
Thibaut Cuvelier [Fri, 23 Dec 2022 02:26:25 +0000 (03:26 +0100)]
Cleanup following the removal of HTML entities

The remaining part that was not handled in the previous commit. It focuses on lib/symbols.

18 months agoLyXHTML: switch the doctype to (X)HTML5 and only output XML entities.
Thibaut Cuvelier [Fri, 23 Dec 2022 01:16:08 +0000 (02:16 +0100)]
LyXHTML: switch the doctype to (X)HTML5 and only output XML entities.

This is a new take on c8e2c17a that was reverted at da67bde61af due to entities no more recognised by the browsers. Corresponding thread on the mailing list: https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg213179.html

This patch is a huge cleanup overall, by removing the distinction between HTML and XML entities (the latter arrived due to the DocBook support).

In InsetListingParams, I also changed the mechanism that relied on &quot; to use an XML entity to be consistent with the rest of the code, mostly in case someone looks for HTML entities and wonders why they are still there.

18 months agoLyXHTML: give the language in the root tag.
Thibaut Cuvelier [Fri, 23 Dec 2022 01:12:05 +0000 (02:12 +0100)]
LyXHTML: give the language in the root tag.

18 months agoAdd a TODO file for the latest tests
Thibaut Cuvelier [Sun, 25 Dec 2022 19:39:14 +0000 (20:39 +0100)]
Add a TODO file for the latest tests

18 months agoLyXHTML: add a script to validate all the generated files.
Thibaut Cuvelier [Thu, 22 Dec 2022 23:47:45 +0000 (00:47 +0100)]
LyXHTML: add a script to validate all the generated files.

It could be a part of the standard test suite, but it might be quite long to run.

This test ensures that the generated XHTML files are valid HTML5 files, i.e. should display fine in all browsers.

18 months agotypo
Richard Kimberly Heck [Sun, 25 Dec 2022 17:50:54 +0000 (12:50 -0500)]
typo

18 months agoUpdate tex2lyx tests.
Richard Kimberly Heck [Sun, 25 Dec 2022 17:49:42 +0000 (12:49 -0500)]
Update tex2lyx tests.

18 months agoUpdate doc format
Richard Kimberly Heck [Sun, 25 Dec 2022 17:48:19 +0000 (12:48 -0500)]
Update doc format

18 months agoAllow an 'other' type for hyperlinks. Format change.
Richard Kimberly Heck [Sun, 25 Dec 2022 17:42:07 +0000 (12:42 -0500)]
Allow an 'other' type for hyperlinks. Format change.

Also, perform the URL fixing magic for DocBook and XHTML.

As it was, it was impossible to enter e.g. "tel:" type links. Now
choosing the "Other" type just outputs the URL as given.

Also, the addition of "http" or "file" was not being done for
DocBook and XHTML. Now it is.