Parsoid
A bidirectional parser between wikitext and HTML5
|
Public Member Functions | |
__construct (Env $env, Bcp47Code $toLang, LanguageGuesser $guesser, ReplacementMachine $machine) | |
Public Member Functions inherited from Wikimedia\Parsoid\Utils\DOMTraverser | |
__construct (bool $traverseWithTplInfo=false, bool $applyToAttributeEmbeddedHTML=false) | |
addHandler (?string $nodeName, callable $action) | |
Add a handler to the DOM traverser. | |
traverse (?ParsoidExtensionAPI $extAPI, Node $workNode, ?DTState $state=null) | |
Traverse the DOM and fire the handlers that are registered. | |
Wikimedia\Parsoid\Language\ConversionTraverser::__construct | ( | Env | $env, |
Bcp47Code | $toLang, | ||
LanguageGuesser | $guesser, | ||
ReplacementMachine | $machine ) |
Env | $env | |
Bcp47Code | $toLang | target language for conversion |
LanguageGuesser | $guesser | oracle to determine "original language" for round-tripping |
ReplacementMachine | $machine | machine to do actual conversion |