W3C home > Mailing lists > Public > www-math@w3.org > March 2014

Questions about indentshift

From: Davide P. Cervone <dpvc@union.edu>
Date: Sat, 15 Mar 2014 01:29:34 -0400
Message-Id: <9FFE8C1C-BA4E-4961-A4DF-2E88BD206D5F@union.edu>
To: www-math@w3.org
I was looking at some of the linebreak tests in the MathML3 test suite, and some of them confuse me.  For example,

	http://www.w3.org/Math/testsuite/build/main/Topics/LineBreak/linebreaking011-indentamount-full.xhtml

starts with 

	<math xmlns="http://www.w3.org/1998/Math/MathML" indentshift="3em" display="block">

and has some <mi> and <mo> elements then 

	<mspace linebreak="newline"/>

According to 

	http://www.w3.org/TR/MathML3/chapter3.html#presm.lbindent.attrs

the default for indentshiftfirst is indentshift, and since indentshift is set to 3em, it seems to me that the first and second lines both should be indented to 3em.  But the image of the correct rendering shows the first line not indented, while the second line is indented 3em.  What am I missing, here?

A second confusion for me is in 

	http://www.w3.org/Math/testsuite/build/main/Topics/LineBreak/linebreaking010-indentshift-full.xhtml

where indenshiftlast is set to -20pt.  The image shows the last line right-aligned (with what appears to be about 20pt of space at the right, so it seems that a negative indentshift is supposed to mean indenting from the opposite side from what indentalign specifies?  There is no mention of this in the spec that I can find.  Can someone clarify the intended meaning of negative indents?

Finally, the tests seem to assume a default indentalign of left, but the spec indicates that the default is up to the renderer.  MathJax uses centering by default, so the tests "fail".  it might be good if the tests set indent align explicitly.

Davide
Received on Saturday, 15 March 2014 05:30:03 UTC

This archive was generated by hypermail 2.3.1 : Saturday, 15 March 2014 05:30:03 UTC