Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\Language\ConversionTraverser Class Reference
+ Inheritance diagram for Wikimedia\Parsoid\Language\ConversionTraverser:
+ Collaboration diagram for Wikimedia\Parsoid\Language\ConversionTraverser:

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.
 

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Parsoid\Language\ConversionTraverser::__construct ( Env $env,
Bcp47Code $toLang,
LanguageGuesser $guesser,
ReplacementMachine $machine )
Parameters
Env$env
Bcp47Code$toLangtarget language for conversion
LanguageGuesser$guesseroracle to determine "original language" for round-tripping
ReplacementMachine$machinemachine to do actual conversion

The documentation for this class was generated from the following file: