Tweaking lib/symbols for XML entities

Thibaut Cuvelier dourouc05 at gmail.com
Thu Jun 11 16:30:22 UTC 2020


Yes, the output is identical. I also added some comments.

I'm adding a third patch in this, I forgot it was necessary… It is a
refactoring of XHTMLStream as a more generic XMLStream (required for
DocBook, and it has a few implications for MathML, but not that much).

Thibaut Cuvelier


On Thu, 11 Jun 2020 at 12:44, Pavel Sanda <sanda at lyx.org> wrote:

> On Tue, Jun 09, 2020 at 07:02:23PM +0200, Thibaut Cuvelier wrote:
> > This patch is made so that there should not be any change to the XHTML
> > output. All features are opt-in (name spaces and XML entities). XHTML
> > output always uses HTML entities (which are very lenient), XML ones
> should
> > never be used once this patch is applied.
> >
> > That nbsp shouldn't have been modified in the first patch. Here is a new
> > version of the set of patches so that the change is only applied in XML
> > mode (again, which should not be used right now, because it will only be
> > useful for DocBook), with no change in the first one.
>
> Thanks, the patch still doesnot apply to current master.
>
> Another two bits:
> 1. error check: if you export math manual to html with and without your
> patch, the output is identical, right?
> 2. Pleas add comments to those new members (I know the others don't have
> it either, but that does not make it right :)
> + std::string xmlns_;
> + ///
> + bool xml_mode_;
>
>
> Pavel
> --
> lyx-devel mailing list
> lyx-devel at lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200611/629fe008/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-MathML-stream-allows-for-name-spaces.patch
Type: application/octet-stream
Size: 40238 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200611/629fe008/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-MathML-Convert-HTML-entities-to-XML-entities.patch
Type: application/octet-stream
Size: 142903 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200611/629fe008/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Rename-XHTMLStream-to-XMLStream-move-it-to-another-f.patch
Type: application/octet-stream
Size: 206737 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200611/629fe008/attachment-0005.obj>


More information about the lyx-devel mailing list