From: Ingo Schwarze <schwarze@usta.de> To: "Anthony J. Bentley" <anthony@anjbe.name> Cc: tech@mdocml.bsd.lv Subject: Re: eqn(7): Brackets and commas as operators Date: Fri, 14 Jul 2017 20:24:13 +0200 [thread overview] Message-ID: <20170714182413.GH32226@athene.usta.de> (raw) In-Reply-To: <15698.1500045283@cathet.us> Hi Anthony, Anthony J. Bentley wrote on Fri, Jul 14, 2017 at 09:14:43AM -0600: > Ingo Schwarze writes: >> Anthony J. Bentley wrote on Thu, Jul 13, 2017 at 07:00:18PM -0600: >>> .EQ >>> v[0], v[1] >>> .EN >>> >>> In HTML output, "]," gets wrapped into a single <mo>, which renders >>> incorrectly. >> Incorrectly in which way? Do you menan that there should be spacing >> after the comma? > Incorrectly in that the v[0]'s left bracket and right bracket differ > in size in the browser. > > <mi>v</mi><mo>[</mo><mn>0</mn><mo>],</mo> > <mi>v</mi><mo>[</mo><mn>1</mn><mo>]</mo> I don't see a size difference in Firefox 54.0, but maybe there is a slight vertical offset. >> What would be a correct rendering? > This is what it should look like: > > <mi>v</mi><mo>[</mo><mn>0</mn><mo>]</mo><mo>,</mo> > <mi>v</mi><mo>[</mo><mn>1</mn><mo>]</mo> I see, that makes sense anyway, thanks for explaining. Fixed with the commit below. Yours, Ingo Log Message: ----------- always give commas their own <mo> element, suggested by bentley@, improves e.g. glMultMatrix(3) Modified Files: -------------- mandoc: eqn.c Revision Data ------------- Index: eqn.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/eqn.c,v retrieving revision 1.76 retrieving revision 1.77 diff -Leqn.c -Leqn.c -u -p -r1.76 -r1.77 --- eqn.c +++ eqn.c @@ -1041,7 +1041,7 @@ next_tok: /* No boundary after last character. */ if (*cpn == '\0') break; - if (ccln == ccl) + if (ccln == ccl && *cp != ',' && *cpn != ',') continue; /* Boundary found, split the text. */ if (parent->args == parent->expectargs) { -- To unsubscribe send an email to tech+unsubscribe@mandoc.bsd.lv
prev parent reply other threads:[~2017-07-14 18:24 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-07-14 1:00 Anthony J. Bentley 2017-07-14 11:51 ` Ingo Schwarze 2017-07-14 15:14 ` Anthony J. Bentley 2017-07-14 18:24 ` Ingo Schwarze [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20170714182413.GH32226@athene.usta.de \ --to=schwarze@usta.de \ --cc=anthony@anjbe.name \ --cc=tech@mandoc.bsd.lv \ --cc=tech@mdocml.bsd.lv \ --subject='Re: eqn(7): Brackets and commas as operators' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).