2015-03-04 19:56:57 -08:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim:expandtab:shiftwidth=2:tabstop=2:
|
|
|
|
*/
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
MARKUPMAP(a,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HTMLLink,
|
2015-03-07 09:35:27 -08:00
|
|
|
roles::LINK)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(abbr,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HyperText,
|
|
|
|
0)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(acronym,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HyperText,
|
|
|
|
0)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(article,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HyperText,
|
2015-03-07 17:20:17 -08:00
|
|
|
roles::DOCUMENT,
|
|
|
|
Attr(xmlroles, article))
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(aside,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HyperText,
|
|
|
|
roles::NOTE)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(blockquote,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HyperText,
|
|
|
|
roles::SECTION)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(dd,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HTMLDefinition,
|
|
|
|
roles::DEFINITION)
|
|
|
|
|
|
|
|
MARKUPMAP(div,
|
|
|
|
nullptr,
|
|
|
|
roles::SECTION)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(dl,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HTMLList,
|
|
|
|
roles::DEFINITION_LIST)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(dt,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HTMLListitem,
|
|
|
|
roles::TERM)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(figcaption,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HTMLFigcaption,
|
2015-03-07 09:35:27 -08:00
|
|
|
roles::CAPTION)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(figure,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HTMLFigure,
|
2015-03-07 17:20:17 -08:00
|
|
|
roles::FIGURE,
|
|
|
|
Attr(xmlroles, figure))
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(form,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HyperText,
|
|
|
|
roles::FORM)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(footer,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HyperText,
|
|
|
|
roles::FOOTER)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(header,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HyperText,
|
|
|
|
roles::HEADER)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(h1,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HyperText,
|
|
|
|
roles::HEADING)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(h2,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HyperText,
|
|
|
|
roles::HEADING)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(h3,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HyperText,
|
|
|
|
roles::HEADING)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(h4,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HyperText,
|
|
|
|
roles::HEADING)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(h5,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HyperText,
|
|
|
|
roles::HEADING)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(h6,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HyperText,
|
|
|
|
roles::HEADING)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(label,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HTMLLabel,
|
2015-03-07 09:35:27 -08:00
|
|
|
roles::LABEL)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(legend,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HTMLLegend,
|
2015-03-07 09:35:27 -08:00
|
|
|
roles::LABEL)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(li,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HTMLListitem,
|
|
|
|
0)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
2015-03-09 05:16:12 -07:00
|
|
|
MARKUPMAP(math,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_MATH)
|
|
|
|
|
|
|
|
MARKUPMAP(mi_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_IDENTIFIER)
|
|
|
|
|
|
|
|
MARKUPMAP(mn_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_NUMBER)
|
|
|
|
|
|
|
|
MARKUPMAP(mo_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_OPERATOR,
|
|
|
|
AttrFromDOM(accent_, accent_),
|
|
|
|
AttrFromDOM(fence_, fence_),
|
|
|
|
AttrFromDOM(separator_, separator_),
|
|
|
|
AttrFromDOM(largeop_, largeop_))
|
|
|
|
|
|
|
|
MARKUPMAP(mtext_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_TEXT)
|
|
|
|
|
|
|
|
MARKUPMAP(ms_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_STRING_LITERAL)
|
|
|
|
|
|
|
|
MARKUPMAP(mglyph_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_GLYPH)
|
|
|
|
|
|
|
|
MARKUPMAP(mrow_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_ROW)
|
|
|
|
|
|
|
|
MARKUPMAP(mfrac_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_FRACTION,
|
|
|
|
AttrFromDOM(bevelled_, bevelled_),
|
|
|
|
AttrFromDOM(linethickness_, linethickness_))
|
|
|
|
|
|
|
|
MARKUPMAP(msqrt_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_SQUARE_ROOT)
|
|
|
|
|
|
|
|
MARKUPMAP(mroot_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_ROOT)
|
|
|
|
|
|
|
|
MARKUPMAP(mfenced_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_FENCED,
|
|
|
|
AttrFromDOM(close, close),
|
|
|
|
AttrFromDOM(open, open),
|
|
|
|
AttrFromDOM(separators_, separators_))
|
|
|
|
|
|
|
|
MARKUPMAP(menclose_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_ENCLOSED,
|
|
|
|
AttrFromDOM(notation_, notation_))
|
|
|
|
|
|
|
|
MARKUPMAP(mstyle_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_STYLE)
|
|
|
|
|
|
|
|
MARKUPMAP(msub_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_SUB)
|
|
|
|
|
|
|
|
MARKUPMAP(msup_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_SUP)
|
|
|
|
|
|
|
|
MARKUPMAP(msubsup_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_SUB_SUP)
|
|
|
|
|
|
|
|
MARKUPMAP(munder_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_UNDER,
|
|
|
|
AttrFromDOM(accentunder_, accentunder_),
|
|
|
|
AttrFromDOM(align, align))
|
|
|
|
|
|
|
|
MARKUPMAP(mover_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_OVER,
|
|
|
|
AttrFromDOM(accent_, accent_),
|
|
|
|
AttrFromDOM(align, align))
|
|
|
|
|
|
|
|
MARKUPMAP(munderover_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_UNDER_OVER,
|
|
|
|
AttrFromDOM(accent_, accent_),
|
|
|
|
AttrFromDOM(accentunder_, accentunder_),
|
|
|
|
AttrFromDOM(align, align))
|
|
|
|
|
|
|
|
MARKUPMAP(mmultiscripts_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_MULTISCRIPTS)
|
|
|
|
|
|
|
|
MARKUPMAP(mtable_,
|
2015-03-19 09:45:59 -07:00
|
|
|
New_HTMLTableAccessible,
|
2015-03-09 05:16:12 -07:00
|
|
|
roles::MATHML_TABLE,
|
|
|
|
AttrFromDOM(align, align),
|
|
|
|
AttrFromDOM(columnlines_, columnlines_),
|
|
|
|
AttrFromDOM(rowlines_, rowlines_))
|
|
|
|
|
|
|
|
MARKUPMAP(mlabeledtr_,
|
2015-03-19 09:45:59 -07:00
|
|
|
New_HTMLTableRowAccessible,
|
2015-03-09 05:16:12 -07:00
|
|
|
roles::MATHML_LABELED_ROW)
|
|
|
|
|
|
|
|
MARKUPMAP(mtr_,
|
2015-03-19 09:45:59 -07:00
|
|
|
New_HTMLTableRowAccessible,
|
2015-03-09 05:16:12 -07:00
|
|
|
roles::MATHML_TABLE_ROW)
|
|
|
|
|
|
|
|
MARKUPMAP(mtd_,
|
2015-03-19 09:45:59 -07:00
|
|
|
New_HTMLTableCellAccessible,
|
2015-03-09 05:16:12 -07:00
|
|
|
roles::MATHML_CELL)
|
|
|
|
|
|
|
|
MARKUPMAP(maction_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_ACTION,
|
|
|
|
AttrFromDOM(actiontype_, actiontype_),
|
|
|
|
AttrFromDOM(selection_, selection_))
|
|
|
|
|
|
|
|
MARKUPMAP(merror_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_ERROR)
|
|
|
|
|
|
|
|
MARKUPMAP(semantics_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_SEMANTICS)
|
|
|
|
|
|
|
|
MARKUPMAP(annotation_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_ANNOTATION)
|
|
|
|
|
|
|
|
MARKUPMAP(annotation_xml_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_XML_ANNOTATION)
|
|
|
|
|
|
|
|
MARKUPMAP(mstack_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_STACK,
|
|
|
|
AttrFromDOM(align, align),
|
|
|
|
AttrFromDOM(position, position))
|
|
|
|
|
|
|
|
MARKUPMAP(mlongdiv_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_LONG_DIVISION,
|
|
|
|
AttrFromDOM(longdivstyle_, longdivstyle_))
|
|
|
|
|
|
|
|
MARKUPMAP(msgroup_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_STACK_GROUP,
|
|
|
|
AttrFromDOM(position, position),
|
|
|
|
AttrFromDOM(shift_, shift_))
|
|
|
|
|
|
|
|
MARKUPMAP(msrow_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_STACK_ROW,
|
|
|
|
AttrFromDOM(position, position))
|
|
|
|
|
|
|
|
MARKUPMAP(mscarries_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_STACK_CARRIES,
|
|
|
|
AttrFromDOM(location_, location_),
|
|
|
|
AttrFromDOM(position, position))
|
|
|
|
|
|
|
|
MARKUPMAP(mscarry_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_STACK_CARRY,
|
|
|
|
AttrFromDOM(crossout_, crossout_))
|
|
|
|
|
|
|
|
MARKUPMAP(msline_,
|
|
|
|
New_HyperText,
|
|
|
|
roles::MATHML_STACK_LINE,
|
|
|
|
AttrFromDOM(position, position))
|
|
|
|
|
2015-03-04 19:56:57 -08:00
|
|
|
MARKUPMAP(nav,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HyperText,
|
|
|
|
roles::SECTION)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(ol,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HTMLList,
|
2015-03-07 09:35:27 -08:00
|
|
|
roles::LIST)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(option,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HTMLOption,
|
|
|
|
0)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(optgroup,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HTMLOptgroup,
|
|
|
|
0)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(output,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HTMLOutput,
|
2015-03-07 17:20:17 -08:00
|
|
|
roles::SECTION,
|
|
|
|
Attr(live, polite))
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(progress,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HTMLProgress,
|
|
|
|
0)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(q,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HyperText,
|
|
|
|
0)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(section,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HyperText,
|
2015-03-07 17:20:17 -08:00
|
|
|
roles::SECTION,
|
|
|
|
Attr(xmlroles, region))
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(time,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HyperText,
|
2015-03-07 17:20:17 -08:00
|
|
|
0,
|
|
|
|
Attr(xmlroles, time),
|
|
|
|
AttrFromDOM(datetime, datetime))
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(td,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HTMLTableHeaderCellIfScope,
|
|
|
|
0)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(th,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HTMLTableHeaderCell,
|
|
|
|
0)
|
2015-03-04 19:56:57 -08:00
|
|
|
|
|
|
|
MARKUPMAP(ul,
|
2015-03-05 10:16:12 -08:00
|
|
|
New_HTMLList,
|
2015-03-07 09:35:27 -08:00
|
|
|
roles::LIST)
|