Skip to content
Extraits de code Groupes Projets
Valider 6ab3e192 rédigé par ARNO*'s avatar ARNO*
Parcourir les fichiers

Boutons supp dans barre de raccourcis

et possibilite d'utiliser des guillements "simples"
parent 590215f7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -48,8 +48,10 @@ IMG/icones/zip-dist.png -text ...@@ -48,8 +48,10 @@ IMG/icones/zip-dist.png -text
IMG/icones_barre/agrave-maj.png -text IMG/icones_barre/agrave-maj.png -text
IMG/icones_barre/blanc.png -text IMG/icones_barre/blanc.png -text
IMG/icones_barre/eacute-maj.png -text IMG/icones_barre/eacute-maj.png -text
IMG/icones_barre/espace.png -text
IMG/icones_barre/euro.png -text IMG/icones_barre/euro.png -text
IMG/icones_barre/gras.png -text IMG/icones_barre/gras.png -text
IMG/icones_barre/guillemets-simples.png -text
IMG/icones_barre/guillemets.png -text IMG/icones_barre/guillemets.png -text
IMG/icones_barre/intertitre.png -text IMG/icones_barre/intertitre.png -text
IMG/icones_barre/italique.png -text IMG/icones_barre/italique.png -text
......
IMG/icones_barre/espace.png

304 octets

IMG/icones_barre/guillemets-simples.png

318 octets

...@@ -90,6 +90,11 @@ function afficher_barre($formulaire='',$texte='', $forum=false) { ...@@ -90,6 +90,11 @@ function afficher_barre($formulaire='',$texte='', $forum=false) {
$col++; $col++;
if ($spip_lang == "fr" OR $spip_lang == "eo" OR $spip_lang == "cpf") { if ($spip_lang == "fr" OR $spip_lang == "eo" OR $spip_lang == "cpf") {
$ret .= bouton_barre_racc ("javascript:barre_raccourci('«','»',$champ)", "guillemets.png", "Entourer de « guillemets français »", $formulaire, $texte); $ret .= bouton_barre_racc ("javascript:barre_raccourci('«','»',$champ)", "guillemets.png", "Entourer de « guillemets français »", $formulaire, $texte);
}
$ret .= bouton_barre_racc ("javascript:barre_raccourci('“','”',$champ)", "guillemets-simples.png", "Entourer de “guillemets”", $formulaire, $texte);
$ret .= "   ";
$ret .= bouton_barre_racc ("javascript:barre_inserer('~',$champ)", "espace.png", "Insérer une espace~insécable", $formulaire, $texte);
if ($spip_lang == "fr" OR $spip_lang == "eo" OR $spip_lang == "cpf") {
$ret .= "   "; $ret .= "   ";
$ret .= bouton_barre_racc ("javascript:barre_inserer('À',$champ)", "agrave-maj.png", "Insérer un A accent grave majuscule", $formulaire, $texte); $ret .= bouton_barre_racc ("javascript:barre_inserer('À',$champ)", "agrave-maj.png", "Insérer un A accent grave majuscule", $formulaire, $texte);
$ret .= bouton_barre_racc ("javascript:barre_inserer('É',$champ)", "eacute-maj.png", "Insérer un E accent aigu majuscule", $formulaire, $texte); $ret .= bouton_barre_racc ("javascript:barre_inserer('É',$champ)", "eacute-maj.png", "Insérer un E accent aigu majuscule", $formulaire, $texte);
......
...@@ -155,6 +155,7 @@ function load_charset ($charset = 'AUTO', $langue_site = 'AUTO') { ...@@ -155,6 +155,7 @@ function load_charset ($charset = 'AUTO', $langue_site = 'AUTO') {
// cas particulier pour les entites html (a completer eventuellement) // cas particulier pour les entites html (a completer eventuellement)
case 'html': case 'html':
$GLOBALS['CHARSET'][$charset] = array ( $GLOBALS['CHARSET'][$charset] = array (
'ldquo'=>'“', 'rdquo'=>'”',
'cent'=>'¢', 'pound'=>'£', 'curren'=>'¤', 'yen'=>'¥', 'brvbar'=>'¦', 'cent'=>'¢', 'pound'=>'£', 'curren'=>'¤', 'yen'=>'¥', 'brvbar'=>'¦',
'sect'=>'§', 'uml'=>'¨', 'ordf'=>'ª', 'laquo'=>'«', 'not'=>'¬', 'sect'=>'§', 'uml'=>'¨', 'ordf'=>'ª', 'laquo'=>'«', 'not'=>'¬',
'shy'=>'­', 'macr'=>'¯', 'deg'=>'°', 'plusmn'=>'±', 'sup2'=>'²', 'shy'=>'­', 'macr'=>'¯', 'deg'=>'°', 'plusmn'=>'±', 'sup2'=>'²',
...@@ -183,7 +184,7 @@ function load_charset ($charset = 'AUTO', $langue_site = 'AUTO') { ...@@ -183,7 +184,7 @@ function load_charset ($charset = 'AUTO', $langue_site = 'AUTO') {
case 'translit': case 'translit':
$GLOBALS['CHARSET'][$charset] = array ( $GLOBALS['CHARSET'][$charset] = array (
// latin // latin
128=>'euro', 131=>'f', 140=>'OE', 153=>'TM', 156=>'oe', 159=>'Y', 160=>' ', 128=>'euro', 131=>'f', 140=>'OE', 147=>'\'\'', 148=>'\'\'', 153=>'TM', 156=>'oe', 159=>'Y', 160=>' ',
161=>'!', 162=>'c', 163=>'L', 164=>'O', 165=>'yen',166=>'|', 161=>'!', 162=>'c', 163=>'L', 164=>'O', 165=>'yen',166=>'|',
167=>'p',169=>'(c)', 171=>'<<',172=>'-',173=>'-',174=>'(R)', 167=>'p',169=>'(c)', 171=>'<<',172=>'-',173=>'-',174=>'(R)',
176=>'o',177=>'+-',181=>'mu',182=>'p',183=>'.',187=>'>>', 192=>'A', 176=>'o',177=>'+-',181=>'mu',182=>'p',183=>'.',187=>'>>', 192=>'A',
......
...@@ -268,15 +268,17 @@ function typo_fr($letexte) { ...@@ -268,15 +268,17 @@ function typo_fr($letexte) {
global $flag_strtr2; global $flag_strtr2;
static $trans; static $trans;
// Nettoyer 160 = nbsp ; 187 = raquo ; 171 = laquo ; 176 = deg // Nettoyer 160 = nbsp ; 187 = raquo ; 171 = laquo ; 176 = deg ; 147 = ldquo; 148 = rdquo
if (!$trans) { if (!$trans) {
$trans = array( $trans = array(
"&nbsp;" => "~", "&nbsp;" => "~",
"&raquo;" => "&#187;", "&raquo;" => "&#187;",
"&laquo;" => "&#171;", "&laquo;" => "&#171;",
"&rdquo;" => "&#148;",
"&ldquo;" => "&#147;",
"&deg;" => "&#176;" "&deg;" => "&#176;"
); );
$chars = array(160 => '~', 187 => '&#187;', 171 => '&#171;', 176 => '&#176;'); $chars = array(160 => '~', 187 => '&#187;', 171 => '&#171;', 148 => '&#148;', 147 => '&#147;', 176 => '&#176;');
$charset = lire_meta('charset'); $charset = lire_meta('charset');
include_ecrire('inc_charsets.php3'); include_ecrire('inc_charsets.php3');
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter