Changeset 21152 in spip-zone


Ignore:
Timestamp:
Jun 27, 2008, 4:30:26 PM (11 years ago)
Author:
fil@…
Message:

mieux gerer les italiques quark

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_dev_/convertisseur/extract/quark.php

    r19703 r21152  
    9090        // les zitaliques
    9191        $c = preg_replace ('/<cTypeface:Italic>(.*?)<cTypeface:>/ims', '{\1}', $c);
    92         $c = preg_replace ('/<I>(.*?)<[$]>/ms', '{\1}', $c);
    93         $c = preg_replace ('/<I>(.*?)<I>/ms', '{\1}', $c);
     92        $c = preg_replace ('/<[$]f[^<>]+Italic[^<>]+>(.*?)<f[$]>/', '{\1}', $c);
     93        $c = preg_replace ('/<I>(.*?)<[$I]>/ms', '{\1}', $c);
    9494        $c = preg_replace ('/<I>(.*?)(\n|$)/ms', '{\1}', $c);
     95        $c = preg_replace ('/{( *)}/ms', '/1', $c);
    9596
    9697        // supprimer un sale petit tiret
Note: See TracChangeset for help on using the changeset viewer.