Closed Bug 585141 (mathml-screenshots) Opened 14 years ago Closed 13 years ago

Update Screenshot pages of Mozilla MathML Project

Categories

(Core :: MathML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: fredw, Assigned: fredw)

References

Details

Attachments

(3 files, 1 obsolete file)

The page has moved to MDN:
https://developer.mozilla.org/en/Mozilla_MathML_Project/Mozilla_MathML_Screenshots

but we need to update the screenshots. We should check carefully if there is no regression since the time when the screenshots were taken.
Alias: mathml-screenshots
(with the patch of bug 427990 for XLink)

Compared with
http://www-archive.mozilla.org/projects/mathml/screenshots/basics.png

it seems that it remains only one regression: font-weight=bold is not inherited on single-char <mi/>'s. I guess it is the same issue as bug 449396.
(In reply to comment #1)
> it seems that it remains only one regression: font-weight=bold is not inherited
> on single-char <mi/>'s.

I don't think that's a bug.  IMO the default mathvariant on identifiers should override font-weight.  i.e. style should not affect identifiers.

> I guess it is the same issue as bug 449396.

That's a little different.  mathvariant actually changes (or, in the case of mstyle with bug 449396, should change) the characters for (i.e. meaning of) the identifiers.
OK, that makes sense. Anyway, I'm not sure that the REC describes how style should be inherited from the parent of the <math/> element... So we should rather modify basics.xhtml to use mathvariant on <math/>. Similarly, we should replace the link by the recommended href attribute for MathML linking (I believed that the page contained a xlink but actually it is a HTML <a/>).
Depends on: mathml-href, 449396
Using mathvariant is not really right, because the page is trying to demonstrate "stylistic effects" available due to being in a browser, and mathvariant is not a stylistic effect.

Is there some other stylist effect that does not conflict with mathvariant but could be demonstrated instead?
Perhaps underline? or a rotation?
OK, I see what you mean. I think underline currently adds some unwanted spaces under math frames (such that those on the link just before).
We can also simply modify the font-size.
font-size would be fine.
If text-shadow works, it could be a good candidate.
http://hacks.mozilla.org/2009/06/text-shadow/
Attached patch patch href + stylistic effects (obsolete) — Splinter Review
text-shadow does not seem to work on the <mo/>'s.
Attachment #493120 - Flags: review?(karlt)
Comment on attachment 493120 [details] [diff] [review]
patch href + stylistic effects

>-<a href="http://www.geocities.com/CapeCanaveral/Launchpad/3740/">
>-<math xmlns="&mathml;">
>+<math xmlns="&mathml;" href="http://en.wikipedia.org/wiki/Cape_Canaveral">

This was a link to information on Pythagoras' Theorem.
http://web.archive.org/web/20091027040032/http://geocities.com/CapeCanaveral/Launchpad/3740/
If you can find a page on Pythagoras' Theorem, that would be better.

The rest looks good, thanks.
Attachment #493120 - Attachment is obsolete: true
Attachment #493120 - Flags: review?(karlt)
Keywords: checkin-needed
Attachment #542223 - Flags: review+
Whiteboard: [c-n svn]
Whiteboard: [c-n svn]
In the equation "Y = a X + b" (after "write vector equations"), the use of mathvariant on mrow is not valid.

We could use a mstyle instead, but then the <mi>'s are no longer styled italic as in the original screenshot. Using style="font-weight: bold;" does not seem to work, the default style "italic" (not bold) is applied for the <mi>'s. For the moment, I can't see another option than setting the bold-italic style on each individual mi.
(In reply to comment #11)
> In the equation "Y = a X + b" (after "write vector equations"), the use of
> mathvariant on mrow is not valid.
> 
> We could use a mstyle instead, but then the <mi>'s are no longer styled
> italic as in the original screenshot.

Putting mathvariant on the the <math> element should be valid.  (I can't remember whether or not that works.)  I thought vector identifiers were usually not italic but mathvariant="bold-italic" should work fine.

> For the moment, I can't see another option than setting the
> bold-italic style on each individual mi.

mathvariant on the <math> element would apply to the operators also, and I don't think they should be bold (even though they are in the screenshot).

So mathvariant on each individual mi is probably appropriate.
(In reply to comment #12)
> mathvariant on the <math> element would apply to the operators also, and I
> don't think they should be bold (even though they are in the screenshot).

Oh, actually, there may be no bold variants of + and =, and so mathvariant on <math> might do the right thing.
Assignee: nobody → fred.wang
Let's make <mi>'s representing vector "bold".
Attachment #551269 - Flags: review?(karlt)
Attachment #551269 - Flags: review?(karlt) → review+
Comment on attachment 551269 [details] [diff] [review]
Move the mathvariant attribute from mrow to math

http://viewvc.svn.mozilla.org/vc?view=revision&revision=93440
Attachment #551269 - Flags: checkin+
All the screenshots at

https://developer.mozilla.org/en/Mozilla_MathML_Project/Screenshots

are now updated, except the one for Emails.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: