- From: Daniel Marques <dani@wiris.com>
- Date: Fri, 13 Jun 2014 09:36:34 +0200
- To: Neil Soiffer <NeilS@dessci.com>, David Carlisle <davidc@nag.co.uk>
- Cc: www-math@w3.org
- Message-ID: <b9362b6a3a7e0bca8762436d89f67da9@mail.gmail.com>
Thanks to all! You are implicitly pointing that an mtext can flow in different lines provided that indentation attributes (and other attributes like maxwidth) are respected. Dani *From:* neil.soiffer@gmail.com [mailto:neil.soiffer@gmail.com] *On Behalf Of *Neil Soiffer *Sent:* jueves, 12 de junio de 2014 19:45 *To:* David Carlisle *Cc:* www-math@w3.org *Subject:* Re: maxwidth and mtext As David said, indentation is controlled by the indentaiton attributes, in particular indentalign='left' will say to align on the left. Neil Soiffer Senior Scientist Design Science, Inc. www.dessci.com ~ Makers of MathType, MathFlow, MathPlayer, MathDaisy, Equation Editor ~ On Thu, Jun 12, 2014 at 9:12 AM, David Carlisle <davidc@nag.co.uk> wrote: On 12/06/2014 15:24, Daniel Marques wrote: Hello all, Just some doubts about mtext and maxwidth when the mtext is broader than “maxwidth”. For example, given the following mathml, <math maxwidth=’50px’> <mn>1000</mn> <mtext>This is a long comment</mtext> </math> My question is whether the result is something like: (a) 1000 This is a long comment or (b) 1000 This is a long comment Breaking within mtext is covered by 3.1.7.1 which says even within a token element such as a very long mn element. MathML does not provide a means to specify such linebreaks, but if a render chooses to linebreak at such a point, it should indent the following line according to the indentation attributes <http://www.w3.org/Math/draft-spec/mathml.html#chapter3_presm.lbindent.attrs> that are in effect at that point. since indentalign defaults to auto there is some flexibility in what you should do but flush left seems reasonable to me you can force (b) without using css by setting up a new line breaking context via mtable <mn>100</mn><mtable><mtr><mtd><mtext>This is a long comment David
Received on Friday, 13 June 2014 07:37:03 UTC