┌────────────────────────────────┐ │ ░░░ ░░▓ ░▓▓ ███ ▓▓░ ▓░░ │ │ ~ M O O N ~ │ └────────────────────────────────┘
webm008.cluster103.gra.hosting.ovh.net
LOCATION:
/home/paxmediccp/www/plugins-dist/textwheel/typographie
☗ ROOT
↻ REFRESH
✎ EDIT FILE
EDITING: en.php
<?php /***************************************************************************\ * SPIP, Système de publication pour l'internet * * * * Copyright © avec tendresse depuis 2001 * * Arnaud Martin, Antoine Pitrou, Philippe Rivière, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribué sous licence GNU/GPL. * \***************************************************************************/ if (!defined('_ECRIRE_INC_VERSION')) { return; } // Correction typographique anglaise function typographie_en($t) { static $trans; if (!isset($trans)) { $trans = [ ' ' => '~', "'" => '’' ]; $charset = $GLOBALS['meta']['charset'] ?? ''; switch ($charset) { case 'utf-8': $trans["\xc2\xa0"] = '~'; break; default: $trans["\xa0"] = '~'; break; } } # cette chaine ne peut pas exister, # cf. TYPO_PROTECTEUR dans inc/texte $pro = "-\x2-"; $t = str_replace(array_keys($trans), array_values($trans), $t); /* 2 */ $t = preg_replace('/ --?,|(?: %)(?:\W|$)/S', '~$0', $t); /* 4 */ $t = preg_replace('/Mr\.? /S', '$0~', $t); if (strpos($t, '\~') !== false) { $t = str_replace('\~', "\x1\x14", $t); } if (strpos($t, '~') !== false) { $t = preg_replace('/ *~+ */S', '~', $t); } $t = preg_replace('/--([^-]|$)/S', "$pro—$1", $t, -1, $c); if ($c) { $t = preg_replace("/([-\n])$pro—/S", '$1--', $t); $t = str_replace($pro, '', $t); } $t = str_replace('~', ' ', $t); if (strpos($t, "\x1") !== false) { $t = str_replace("\x1\x14", '~', $t); } return $t; }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 en.php
PHP
1.7 KB
2026-04-27 15:55
EDIT
📄 fr.php
PHP
2.7 KB
2026-04-27 15:55
EDIT