Beautiful maths in all browsers. Introduction Input and display of non-trivial maths to any electronic format problematic …and even more of a pain for.

Slides:



Advertisements
Similar presentations
Copyright © 2003 Pearson Education, Inc. Slide 1-1 The Web Wizards Guide to PHP by David A. Lash.
Advertisements

What you need to know about the Math Stack
Autumn A MathML Progress Report.
COMBASE: strategic content management system Soft Format, 2006.
XSL-FO + MathML Render MathML to Display, PDF, SVG September 18
Ideas to Layout Beginning web layout using Cascading Style Sheets (CSS). Basic ideas, practices, tools and resources for designing a tableless web site.
HTTP Request/Response Process 1.Enter URL ( in your browser’s address bar. 2.Your browser uses DNS to look up IP address of server.com.
XHTML Basics.
The Client-Server Model for the Web 1. A Web Client (usually in the form of a web browser) makes an HTTP request to a specific web server. 2. The Web Server.
Math Accessibility on the Web: A Journey of Wailing and Gnashing of Teeth Greg Kraus University IT Accessibility Coordinator North Carolina State University.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 4: Web Browsing.
/ Reference Management Tools: Which One is Right for You? Yolanda Koscielski, Criminology & Psychology.
Program to Evaluate Alternative Energy Sources May08-03 Group Advisors Brad Smith Dr. John Lamont Graig Schadle Prof. Ralph Patterson Mukul Sabharwal Mr.
HTML 5. What is HTML5? HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML came in The web has changed.
Lesson 4: Web Browsing.
Understand Web Page Development Software Development Fundamentals LESSON 4.1.
HTML 5 Tutorial Chapter 1 Introduction. What is HTML5? HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML.
1 A Web-Based Integral Evaluator: A Demonstration of the Successful Integration of WebEQ, Maple, and Java Wanda M. Kunkle Department of Mathematics & Computer.
T.N.C.Venkata Rangan CMD, Vishwak Solutions Pvt. Ltd. Microsoft (MSDN) Regional Director, Chennai Microsoft MVP – Windows Live Platform Living with Heterogeneity.
1 Web Wizards Guide To PHP David Lash Chapter 1 Introduction to PHP.
Lecture 18. HTML5 and JavaScript Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell Exploring the Internet,
Senior Project – I.D. Math & Computer Science jsMath Equation Editor Dana Cartwright Advisors – Prof. Cervone & Prof. Striegnitz Editor Design -
XML October 24, Unit 6. What is XML? Stands for eXtensible Markup Language It is a markup language, like HTML But, –XML is designed to markup data –HTML.
Carrie Ann Desnoyers Instructional Designer CREATING ACCESSIBLE MATH IN D2L MATHTYPE, LATEX, MATHPAGES, AND MATHPLAYER.
Creating and publishing accessible course materials Practical advise you can replicate.
HTML Overview for Proofreading. HTML layouts are divided into sections, and created in tables separating the images & content sections.
8/17/2015CS346 PHP1 Module 1 Introduction to PHP.
Chapter 11 Adding Media and Interactivity. Flash is a software program that allows you to create low-bandwidth, high-quality animations and interactive.
INTRODUCTION TO CLIENT-SIDE WEB PROGRAMMING ACM 511 ACM 262 Course Notes.
 Using Microsoft Expression Web you can: › Create Web pages and Web sites › Set what you site will look like as you design it › Add text, images, multimedia.
Basic Web Design. Technology is a tool  FIRST, understand how people actually interact with each other and with the information in their lives, in all.
What is HTML ? HyperText Markup Language. The authoring language of the Web is currently HTML, which stands for HyperText Markup Language. Future versions.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: Multimedia on the Web.
Week 6.  Browser DOCTYPE switching What it means for you  – now is the time  CSS3 Web design for the 21 st Century.
Computer Concepts 2014 Chapter 7 The Web and .
2.1 Different Text Attributes Font A set of printable or displayable text characters with its style and size specified Arial 16 point bold Arial 32 point.
Chapter 2 TEXT.
Math Editing And Display In Office 2007 Murray Sargent Partner Software Design Engineer Office Authoring Services Microsoft Corporation Murray Sargent.
University of Sunderland CDM105 Session 2 Web Authoring Web Design The main principles and the main guru.
Adaptation of Mathematical Tests for Visually Impaired Students in Higher Education – Daily Practice Mgr. Lukáš Másilko Mgr. Ondřej Nečas.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
10/5/2015CS346 PHP1 Module 1 Introduction to PHP.
Chapter 13-Tools for the World Wide Web. Overview Web servers. Web browsers. Web page makers and site builders. Plug-ins and delivery vehicles. Beyond.
HTML_Generators WB_HTML_Generators. What method are you going to choose to build your web page? MethodWrite Convert Html IssuesHTML HTML Editors Tool.
IS1811 Multimedia Development for Internet Applications Lecture 4: Introduction to HTML Rob Gleasure
Generating HTML Format Reports for Travel Demand Models May 18, 2009 Chunyu Lu Gannett Fleming, Inc.
Nuclear Information Section FIBRE+ Latest developments Lubomir Iliev.
Introduction to web development and HTML MGMT 230 LAB.
XHTML By Trevor Adams. Topics Covered XHTML eXtensible HyperText Mark-up Language The beginning – HTML Web Standards Concept and syntax Elements (tags)
Thesaurus.maths.org: Connecting Mathematics Mike Pearson University of Cambridge, England Igor Podlubny Tech Univ of Kosice, Slovakia Vera Oláh J. Bolyai.
Session: 1. © Aptech Ltd. 2Introduction to the Web / Session 1  Explain the evolution of HTML  Explain the page structure used by HTML  List the drawbacks.
Elizabeth Pyatt, ITS See Notes panel for image ALT tags MathML (& LaTeX) Workflow 2015.
Started Getting started with HTML Authoring Authoring on the Web.
UPLOAD / DOWNLOAD april  HTML5 is just the next iteration of HTML  Previous version was technically HTML 4.01, which incorporated XHTML 1.0.
Capturing, writing and reading maths electronically - what works Dr Abi James Accessibility Group WAIS.
Cascading Style Sheets
STEAM - Why Is Math Accessibility So Hard?. The difference between maths & text.
Information SKL for Graduate Students Instructors: Sina Mater 3 December 2010.
Thực hiện: D3 GVLT: BROWERS. Browser Compatibility I Check the compatibility II Tools III.
JavaScript Introduction and Background. 2 Web languages Three formal languages HTML JavaScript CSS Three different tasks Document description Client-side.
May 6, 2009 Browser Compatibility Testing Definition It is a non functional type of testing where web based applications are tested on various browsers(IE.
STEAM - Why Is Math Accessibility So Hard?
Mireia Ribera, Miquel Centelles, Alberto Huélamo, Bruno Splendiani, Marina Salse ULD Conference /02/2013.
Using Google Scholar Ronald Wirtz, Ph.D.Calvin T. Ryan LibraryDec Finding Scholarly Information With A Popular Search Engine Tool.
Lesson 4: Web Browsing.
InftyReader, ChattyInfty, and InftyEditor
MathML (& LaTeX) Workflow 2017
Radoslaw Jedynak, PhD Poland, Technical University of Radom
Lesson 4: Web Browsing.
Lesson 5: Multimedia on the Web
Presentation transcript:

Beautiful maths in all browsers

Introduction Input and display of non-trivial maths to any electronic format problematic …and even more of a pain for display on web pages. –Input: can be slow and cumbersome – the natural UI is pen and paper –Display: we still live in a predominantly western ASCII world. Mathematical type setting far more complex

“MUR FIRST ORDER BOUNDARY CONDITION” Many non-alphanumeric symbols Lines (sometimes curved) use to indicate expressions and function.

2D arrays… Correct alignment essential else meaning can be lost

Standards for representing mathematical notation in ASCII MathML –A language of the web for the presentation and meaning of formula components. –A W3C ‘proposed recommendation’ (as of 10/08/2010) –Browser support patchy Firefox and other Gecko based browsers – good native support Opera – partial native support, some problems IE – not natively (only with plugin) IE9 – reportedly buggy support Safari/Chrome – ??? reportedly only in nightly builds (browser tests using –But a common output from many mathematical tools (Mathematica) and major office products (MS Office 2007, OpenOffice).

MathML - Example notation: x = − b ± b 2 − 4 ⁢ a ⁢ c 2 ⁢ a Standards for representing mathematical notation in ASCII

LaTeX –A document language for high quality typesetting. –Most widely used by mathematicians, scientists, engineers, and other scholars in academia. –Human readable (?) –Has special packages for extending LaTeX to handle mathematical notation (amsmath)

Standards for representing mathematical notation in ASCII LaTeX - Example notation: x = \frac{-b \pm \sqrt{b^2 - 4ac}} {2a}

Displaying mathematical notation on the web Use images –don’t scale, –print out quality can be poor –accessibility issues HTML with tables to control layout and use entity references for symbols –can be hard work for complex equations! –just about OK for simple examples –scaling may lead to unpredictable results –accessibility issues

Displaying mathematical notation on the web Javascript solutions to programmatically layout in HTML and CSS A few different open source implementations, most popular include: –ASCIIMathML LaTeXMathML –jsMath MathJax

Investigation and evaluation /~stuart/web-maths/

Built from ground up from 6 years prior experience by Davide Cervone (author of jsMath) Works across multiple browsers and platforms: PC: Internet Explorer, Firefox, Chrome, Safari, Opera Mac: Safari, Firefox, Opera, Chrome, OmniWeb, Camino, iCab Unix: Firefox, Konqueror, Opera, Chrome, Iceweasel, Galeon, Epiphany iPod: Safari Uses HTML/CSS, JavaScript, and unicode fonts for high-quality typesetting that is scalable and prints at full resolution Is Ajax-based, modular, highly configurable

MathJax – technical background MathJax has four major components: –Different input "jax" (TEX, MathML) –Different output "jax" (HTML-CSS, voice, MathML) –An internal format (MathML+) –A central hub to glue it all together TEX MathML HTML /CSS voice MathML INPUT FORMATSOUTPUT FORMATS MathJax.js Central Hub MathML+

MathJax – issues Slow to render large chunks of mathematical notation (in beta version tested Spring 2010) Relies on CSS technology only recently widely implemented in browsers –since IE4; Firefox 3.5 (30/06/2009); Chrome 4 (25/01/2010), Webkit/Safari 3.1 –…but not supported, falls back to rendering with image fonts.

MathJax - usage Set up: –Import a javascript file into HTML page –May need to also add some short configuration notation into HTML page to specify input and output formats. –…but should be able to abstract this away to MathJax.js file. –Needs further investigation as to best set up

MathJax – usage (LaTeX) Delimiting blocks of notation in your HTML with: –$ … $ for inline maths (analogous to HTML … ) or –$$ … $$ for blocks (analogous to HTML … ) Will also automatically recognise some LaTeX notation Example: $$ x = \frac{-b \pm \sqrt{b^2 - 4ac}} {2a} $$

LaTeX - oh no! Another technology to learn… In most cases you may only need to learn a little… However, WYSIWYG editors exist for LaTeX – – Example: this took less than 5 minutes to create (with no previous experience of the “codecogs” WTSIWYG editor) \dot{\varepsilon} = \frac{K' D G b}{k T} \cdot \left ( \frac{b}{d} \right )^p \cdot \left ( \frac{\sigma}{G} \right )^{1/m}

Advantages - Disadvantages Advantages –High quality typography –Cross-browser support –Scalable –Some consideration for accessibility –Copy and paste into Word(?) plus maths software –Rich API Disadvantages –Still some problems with printing –For best results needs recent browser (esp. non-IE) –Maths LaTeX support good, but still gaps –Slightly slow rendering in complex examples –36Mb download (mostly due to fonts and images)

Where to next? What about setting up a centralised MathJax service??? –Most University staff who may have a need for displaying maths on-line won’t know LaTeX. Education? Rely on WYSIWYG editors? –Most University staff who may have a need for displaying maths on-line who know LaTeX resistant to change. Happy to carry on producing PDFs –Some interest from staff, but may be initially more of use to ELTs?? –However, setting up a service should be low cost – just a small website with examples (but not a LaTeX tutorial) and careful configuration. –Need to manage expectations from staff

More info In particular Davide Cervone’s presentation: – and-presentations/ and-presentations/