/**
* Set the transliteration function.
*
* @param callable $function Function name or the actual function.
*
* @return callable The previous function.
*
* @since 1.7.0
*/
public function setTransliterator(callable $function)
{
$previous = $this->transliterator;
$this->transliterator = $function;
return $previous;
}