Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging...

28
Structured Math On The Web First 10 Years Of MathML T. V. Raman Google Research Structured Math On The Web – p. 1

Transcript of Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging...

Page 1: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

Structured Math On The WebFirst 10 Years Of MathML

T. V. Raman

Google Research

Structured Math On The Web – p. 1

Page 2: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

Outline

MathML —Turning the clock back to 1995

XML, MathML and Extensibility

State of mathematics on the Web in 2006

Future of online mathematics

Structured Math On The Web – p. 2

Page 3: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

The Web In 1995

Structured Math On The Web – p. 3

Page 4: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

Web In Early 90’s

Invented by technologists for technologists

Online math was our obvious next step

Web made of static HTML

Goal: display Math in a Web browser

Started as the Math ERB

Structured Math On The Web – p. 4

Page 5: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

MathML Design Goals

Design a markup language that could

Capture semantics for computation

Capture richness needed by publications

Enable aural presentations and other views

MathML: First XML Web vocabulary

Structured Math On The Web – p. 5

Page 6: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

Web In 1995

Commercial Web came to the forefront

Shopping carts overtook Math equations

Mainstream browsers ignored online math

Web browsers had a primitive layout model

Math typesetting is hard

Impedance mismatch between Web and online Math

Structured Math On The Web – p. 6

Page 7: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

Consequences

MathML relegated to browser plugins

Retarded ubiquitous deployment

Authoring (LA)TEX still easier than XML

Fixed tagset and extensible math do not mix well

Structured Math On The Web – p. 7

Page 8: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

Consequences Of XML

XML is extensible; XML dialects are not.

Fixed tagsets always lose semantics.

Author-level extensibility important for Math.

Compare with (LA)TEX.

Structured Math On The Web – p. 8

Page 9: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

XML, MathML And Extensibility

Structured Math On The Web – p. 9

Page 10: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

XML Benefits

Well-understood document semantics

Mixed vocabulary documents

Internationalizable

Extensible framework

MathML rode the XML wave.

Structured Math On The Web – p. 10

Page 11: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

The S-Expression That Wasn’t

Thoughts of a disillusioned XML hacker

XML failed to deliver simple S-expressions

XML dialects are not extensible

Fixed tagsets make new notation difficult.

Structured Math On The Web – p. 11

Page 12: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

An (LA)TEX View Of Extensibility

Authors need to invent new notation

Math notation cannot be frozen in time

Authors invent new notation

New notation requires new markup

Lack of extensibility leads to presentational markup.

Structured Math On The Web – p. 12

Page 13: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

An (LA)TEX Example

\newcommand\infer[2]{%\frac{#1}{#2}}

a < b

b >= a

Tag set extended incrementally

Structured Math On The Web – p. 13

Page 14: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

Example From ASTER

ASTER —semantic markup → rich aural renderings

(def-object :macro-name "infer":args 2 :object-name infer:processing-function infer-expand:precedence arrow-operator:supers ( binary-operator):children-are-called’("premise" "conclusion"))

Declarative markup −→ semantic representation.

Structured Math On The Web – p. 14

Page 15: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

ASTER Rendering

Rendering rule for semantic representation:

(def-rule speak (infer)(afl:new-block(speak (arg 1 infer ))(speak " implies ")(speak (arg 2 infer))))

Structured Math On The Web – p. 15

Page 16: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

(LA)TEX Advantages

Authors invent notation and markup

Semantics captured at authoring time

Declarative markup separates processing

While allowing author control over processing

This is still difficult to do in browsers

Structured Math On The Web – p. 16

Page 17: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

Web Browser Equivalent

Firefox equivalent would require:

Creating a custom markup element,

Binding it to MathML via XBL,

Style it for presentation using CSS,

Add behavior via Javascript,

Package pieces into a coherent component.

Overhead precludes extensions by authors

Structured Math On The Web – p. 17

Page 18: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

HTML Extreme

Just do it with two elements.

<div class="infer"><span class="premise">a<b</span><span class="conclusion">b>=a</span></div>

Style with CSS

Use CSS selectors to attach behavior

This solution cannot scale over time.

Structured Math On The Web – p. 18

Page 19: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

Publishing And The Web

Print publishing provides reusable styles

Contrast with Web publishing

Interaction behaviors alien to publishing

Online Math victim of this impedance mismatch.

Structured Math On The Web – p. 19

Page 20: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

Math On The Web In 2006

Structured Math On The Web – p. 20

Page 21: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

Available Technologies

Mixed namespace documents

Plugin development is easier

Augment declarative markup with behaviorsCSS for styling,XPath, XSLT for rearranging content,JavaScript for interactivity,XBL for creating components

Structured Math On The Web – p. 21

Page 22: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

What Can We Build?

Math Wikis?

Wikipedia uses (LA)TEX for alt text

Enable authors write simple math as (LA)TEX

Map (LA)TEX to MathML DOM

Enable blogging community author Math

Bring Math on the Web to the mainstream

Structured Math On The Web – p. 22

Page 23: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

Incremental Deployment

High-end math rendering will remain a hard problem.

Package MathML as script libraries,

Leverage SVG for final-form rendering,

Enable online interaction via scripting,

Online Math need no longer be static.

Structured Math On The Web – p. 23

Page 24: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

On-ramp For Ubiquitous Math

Use incremental deployment to makeMathML essential

Browser integration needs user demand

Retain advantage of being an extension

Structured Math On The Web – p. 24

Page 25: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

What Can We Add To The Web

Structured Math On The Web – p. 25

Page 26: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

Evolving The Web

Demands of Math typesetting gave us (LA)TEX

Highly interactive online math

Exploratory UI for interactive proofs

Computing on online Math

Where do these requirements lead the Web?

Structured Math On The Web – p. 26

Page 27: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

Consequences For Mainstream

Math more complex than plain text

Fulfilling these impacts online education

Potential for pioneering work

Create next hypertext revolution

Structured Math On The Web – p. 27

Page 28: Structured Math On The Webemacspeak.sourceforge.net/raman/digital-math-06.pdf · Enable blogging community author Math Bring Math on the Web to the mainstream Structured Math On The

Watch The Math Web Take-Off!

Structured Math On The Web – p. 28