Page MenuHomePhabricator

hyphenation (newline) problem with punctuation after <math> (true TeX) formula
Closed, DeclinedPublic

Description

Author: loustyx

Description:
For example, result of :

<math>{hyphenation\over problem}</math>, with punctuation.

sometime is :

hyphenation/problem
, with punctuation.

instead of :

hyphenation/problem,
with punctuation.

See http://en.wikipedia.org/wiki/User_talk:STyx


Version: unspecified
Severity: minor

Details

Reference
bz6284

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 9:20 PM
bzimport added a project: Math.
bzimport set Reference to bz6284.

loustyx wrote:

nb: maybe this is a firebox problem, for it works properly with IE.

conrad.irwin wrote:

It renders as expected in my firefox four years later, please re-open this bug with a screen shot if it's still a problem.

conrad.irwin wrote:

Sorry, I misunderstood you; thank you for the screenshot.

I'm marking this as WONTFIX: firstly tag extensions can't detect the surrounding content, and secondly HTML doesn't allow a forceful enough indication that the comma and image are not to be split.

As a 99% solution, the following wikitext seems to work, and you could put that in a template for re-use:

<span style="display:inline-block;"><math>\frac{hyphenation}{problem}</math>,</span>

This keeps the comma and image linked until the page is narrow enough for only the image, which is likely to be good enough.

The other way would be to put the comma in the math directly, but then it looks different, of course.

<math>\frac{hyphenation}{problem},</math>