Public Member Functions | |
apply ($value) | |
Static Public Member Functions | |
static | me () |
Public Attributes | |
const | MAGIC_DELIMITER = '<>' |
Private Member Functions | |
typographize ($text) | |
innerQuotes ($text) | |
Static Private Attributes | |
static | $symbols |
static | $from |
static | $to |
Definition at line 17 of file RussianTypograph.class.php.
RussianTypograph::apply | ( | $ | value | ) |
Definition at line 92 of file RussianTypograph.class.php.
References me(), and typographize().
RussianTypograph::innerQuotes | ( | $ | text | ) | [private] |
Definition at line 155 of file RussianTypograph.class.php.
static RussianTypograph::me | ( | ) | [static] |
Implements Instantiatable.
Definition at line 87 of file RussianTypograph.class.php.
References Singleton::getInstance().
Referenced by apply().
RussianTypograph::typographize | ( | $ | text | ) | [private] |
Definition at line 142 of file RussianTypograph.class.php.
Referenced by apply().
RussianTypograph::$from [static, private] |
array( '~\-{2,}~', '~([\w\pL\pP]+)\s+\-\s+~u', '~(\s)\s*~u', '~([\s\pP]|^)([\w\pL]{1,2})\s~Uu', '~( |\s)\s+~u', '~\"(.*)\"~e', '~\"([^\s]*)\"~', '~\"([^\s]*)\s+([^\s\.]*)\"~', '~([\w\pL\']+)~eu' )
Definition at line 60 of file RussianTypograph.class.php.
RussianTypograph::$symbols [static, private] |
Definition at line 21 of file RussianTypograph.class.php.
RussianTypograph::$to [static, private] |
array( '-', '$1 — ', '$1$1', '$1$2 ', '$1', '\'«\'.$this->innerQuotes(\'$1\').\'»\'', '«$1»', '«$1 $2»', 'str_replace("\'", \'’\', \'$1\')' )
Definition at line 72 of file RussianTypograph.class.php.
const RussianTypograph::MAGIC_DELIMITER = '<>' |
Definition at line 19 of file RussianTypograph.class.php.