Tweaking lib/symbols for XML entities
Thibaut Cuvelier
dourouc05 at gmail.com
Wed May 20 01:02:21 UTC 2020
Hi all,
Again, a new version of the second patch, as I find new things that should
be adapted. Is it good enough to be merged?
All the best,
Thibaut Cuvelier
On Fri, 15 May 2020 at 21:46, Thibaut Cuvelier <dourouc05 at gmail.com> wrote:
> On Thu, 14 May 2020 at 21:10, Thibaut Cuvelier <dourouc05 at gmail.com>
> wrote:
>
>> On Thu, 14 May 2020 at 20:40, Guenter Milde <milde at users.sf.net> wrote:
>>
>>> Dear Thibaut,
>>>
>>> On 2020-05-10, Thibaut Cuvelier wrote:
>>>
>>> > In order to ensure a valid DocBook entity with math formulae, the
>>> MathML
>>> > generator must produce valid XML. Right now, it "only" produces valid
>>> HTML
>>> > (which is already quite an achievement!). The difference is in the
>>> > entities: in HTML, you can use many entities, like ∑. This is no
>>> more
>>> > the case in XML, where you have to define all entities (that is,
>>> besides
>>> > <, >, &, ", '). A solution for DocBook would be to
>>> > define the needed entities in the XML document, but that would require
>>> > generating all math formulas, remembering the needed entities, then
>>> output
>>> > the mapping at the *beginning* of the XML document.
>>>
>>> Why don't you simply use Unicode literal characters?
>>>
>>
>> Many of these characters require more than one UTF-8 character; is it
>> ensured to be read correctly? Right now, it's exclusively ASCII, so no
>> questions asked. Furthermore, XML processors are more used to have entities
>> rather than exotic characters; similarly, MathType uses this kind of
>> entities when exporting in MathML. When users display the XML document,
>> they must use a font that has all the needed characters, which is far from
>> guaranteed.
>>
>>
>>> Günter
>>>
>>> --
>>> lyx-devel mailing list
>>> lyx-devel at lists.lyx.org
>>> http://lists.lyx.org/mailman/listinfo/lyx-devel
>>
>>
> Here is a new version of the patch with also changes in InsetMathDots (the
> more I test, the more I find places with entities to adapt…).
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200520/149c50cc/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-MathML-stream-allows-for-name-spaces.patch
Type: application/x-patch
Size: 40368 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200520/149c50cc/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0015-Convert-HTML-entities-to-XML-entities.patch
Type: application/x-patch
Size: 141536 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200520/149c50cc/attachment-0003.bin>
More information about the lyx-devel
mailing list