/** * Makes only typographic corrections. * @param string input text (in encoding defined by Texy::$encoding) * @return string output text (in UTF-8) */ public function processTypo($text) { // convert to UTF-8 (and check source encoding) $text = TexyUtf::toUtf($text, $this->encoding); // standardize line endings and spaces $text = self::normalize($text); $this->typographyModule->beforeParse($this, $text); $text = $this->typographyModule->postLine($text, TRUE); if (!empty($this->allowed['longwords'])) { $text = $this->longWordsModule->postLine($text); } return TexyUtf::utf2html($text, $this->encoding); }
public function processTypo($text) { $text = TexyUtf::toUtf($text, $this->encoding); $text = self::normalize($text); $this->typographyModule->beforeParse($this, $text); $text = $this->typographyModule->postLine($text); if (!empty($this->allowed['longwords'])) { $text = $this->longWordsModule->postLine($text); } return TexyUtf::utf2html($text, $this->encoding); }
function processTypo($text) { $text = TexyUtf::toUtf($text, $this->encoding); $text = Texy::normalize($text); $this->typographyModule->beforeParse($this, $text); $text = $this->typographyModule->postLine($text); return TexyUtf::utf2html($text, $this->encoding); }