1<?php 2/** 3 * Math Semantics element for the Ad-Hoc MathML plugin 4 * 5 * Defines <semantics> ... </semantics> syntax 6 * More info: https://developer.mozilla.org/en-US/docs/Web/MathML/Element/semantics 7 * 8 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 9 * @author Sascha Leib <sascha.leib(at)kolmio.com> 10 */ 11 12class syntax_plugin_adhocmathml_semantics extends syntax_plugin_adhocmathml_abstract { 13 14 protected $tag = 'semantics'; 15 16 /* allow link attributes: */ 17 function allowSpecificAttribute(&$name, &$value) { 18 //dbg('MathML: <semantics> - allowSpecificAttribute(' . $name . ', "' . $value . '")'); 19 20 switch (trim($name)) { 21 case 'encoding': 22 return true; /* TODO! */ 23 break; 24 default: 25 return false; 26 } 27 } 28 29 /** 30 * ODT Renderer Functions 31 */ 32 function renderODTElementOpen($renderer, $HTMLelement, $data) { 33 //$renderer->table_open(); 34 } 35 function renderODTElementClose($renderer, $element) { 36 //$renderer->table_close(); 37 } 38}