function fnSWMPHook(&$parser, &$text, &$stripState) { //plane 15 UTF-8 with white space $patternMany = '/[\\x{FD800}-\\x{FDCFF}]+[ +[\\x{FD800}-\\x{FDCFF}]+]*/u'; $patternOne = '/[\\x{FD800}-\\x{FDCFF}]/u'; if (preg_match_all($patternMany, $text, $matches)) { foreach ($matches[0] as $match) { $text = str_replace($match, "<signtext>" . utf2bsw($match) . "</signtext>", $text); } } return true; }
* @version 1.2.0 * @filesource * */ /** * include general iswa library */ include 'bsw.php'; include 'swclasses.php'; include 'pclzip/pclzip.lib.php'; $bsw = $_REQUEST['bsw']; $bsw = trim(str_replace(" ", "", $bsw)); $utf = $_REQUEST['utf']; $utf = str_replace(" ", "", $utf); if ($utf) { $bsw = utf2bsw($utf); } //checking data if (!ValidBSW($bsw)) { die('Invalid Binary SignWriting'); } //checking dir $dir = 'extract'; if (!is_dir($dir)) { $rs = @mkdir($dir, 0777); if (!$rs) { die('This install of the SignWriting Image Server is not configured for extracts'); } } //do I want year and month... //aw yeah!