コード例 #1
0
 public function process($raw)
 {
     $text = $this->prepare($raw);
     $text = parent::process($text);
     return $this->ready($text);
 }
コード例 #2
0
ファイル: general.php プロジェクト: asleepwalker/typographie
 public function testFixingOfSpacing()
 {
     $engine = new Typographie('specialspaces');
     $this->assertEquals('№ 1, § 1', $engine->process('№1, §1'));
     $this->assertEquals('-39 °C = -38.2 °F', $engine->process('-39°C = -38.2°F'));
     $this->assertEquals('25%', $engine->process('25 %'));
 }
コード例 #3
0
ファイル: example.php プロジェクト: asleepwalker/typographie
<?php

$raw = 'Сервис "Typographie" - подготовка текстов к веб-публикации онлайн (с) 2014-2015';
require_once 'typographie.class.php';
$engine = new Typographie('quotes,dashes,specials,paragraphs');
$result = $engine->process($raw);
echo $result;
// > Сервис «Typographie» — подготовка текстов к веб-публикации онлайн © 2014–2015