src/TexVC/MMLmappings/TexConstants/Tag.php 0000666 00000001020 15133501633 0014366 0 ustar 00 <?php
namespace MediaWiki\Extension\Math\TexVC\MMLmappings\TexConstants;
/**
* This class contains the string how tags are written
* Changing this will remove mathjax specifics.
*/
class Tag {
public const ALIGN = "data-mjx-script-align";
public const ALTERNATE = "data-mjx-alternate";
public const SCRIPTTAG = "data-mjx-pseudoscript";
// Example exchange value: "texClass"
public const CLASSTAG = "data-mjx-texclass";
// This is some tag in addition to mathvariant
public const MJXVARIANT = "data-mjx-variant";
}
tests/phpunit/DummyPropertyDataTypeLookup.php 0000666 00000001176 15133501633 0015605 0 ustar 00 <?php
use Wikibase\DataModel\Services\Lookup\PropertyDataTypeLookup;
class DummyPropertyDataTypeLookup implements PropertyDataTypeLookup {
/**
* @var int
*/
public static $mathId = 1;
/**
* Returns the data type for the Property of which the id is given.
*
* @since 2.0
*
* @param \Wikibase\DataModel\Entity\PropertyId $propertyId
*
* @return string
* @throws \Wikibase\DataModel\Services\Lookup\PropertyDataTypeLookupException
*/
public function getDataTypeIdForProperty( \Wikibase\DataModel\Entity\PropertyId $propertyId ) {
return $propertyId->getNumericId() == self::$mathId ? 'math' : 'not-math';
}
}
Back to Directory