[Libreoffice-bugs] [Bug 114493] In Math Formula the spacing around operators, numbers, identifiers etc should be adjustable
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon Dec 18 22:32:54 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=114493
--- Comment #2 from Vladislav Ivanistsev <vi at ut.ee> ---
Sure, one can use "`" or "~".
Yet, take a look on the implementation in mathml. For the mo element there is
an "lspace" and "rspace" parameters. Both depend on the form of an element --
prefix (eg "("), infix (eg "+") or postfix (eg ")".
Your solution is equivalent of adding manually mspace element in mathml. A more
elegant solution rely of the https://www.w3.org/TR/mathml-for-css/#mo, where
several types are defined:
mi identifier
mn number
mo operator, fence or separator
mtext text
mspace space
ms string literal
Using these types it is possible to define and redefine difference space values
in a more flexible way than it is currently done in LO formula editor.
Herewith, padding is set only in the following cases:
mo[largeop="true"]
{font-size:1.3em;
vertical-align:-0.1ex;}
mo[form="infix"], * + mo
{padding:0 0.3ex;}
mo[form="prefix"]
{padding:0 0 0 0.5ex;}
mo[form="postfix"]
{padding:0 0.5ex 0 0;}
mo[fence="true"], mo[separator="true"]
{padding:0;}
I propose distinguishing fences and separators from other operators, and allow
adjusting space around them in a separate way.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171218/8798120c/attachment-0001.html>
More information about the Libreoffice-bugs
mailing list