Changeset 1452 for trunk/buildscripts

Show
Ignore:
Timestamp:
09/30/2006 01:40:40 PM (2 years ago)
Author:
xue
Message:

merge from 3.0 branch till 1451.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/buildscripts/texbuilder/Page2Tex.php

    r1411 r1452  
    88        private $_dir; 
    99 
    10         private $_verb_find = array('\$','\%', '\{', '\}', "\t",'``'); 
    11         private $_verb_replace = array('$', '%', '{','}', "     ",'"'); 
     10        private $_verb_find = array('\$','\%', '\{', '\}', "\t",'``','`'); 
     11        private $_verb_replace = array('$', '%', '{','}', "     ",'"','\''); 
    1212 
    1313        function __construct($base, $dir, $current='') 
     
    8888        function texttt($matches) 
    8989        { 
    90                 return '\texttt{'.str_replace(array('#','_'),array('\#','\_'), $matches[1]).'}'; 
     90                return '\texttt{'.str_replace(array('#','_','&'),array('\#','\_','\&'), $matches[1]).'}'; 
    9191        } 
    9292 
     
    131131 
    132132                $html = preg_replace('/(\s+|\(+|\[+)"/', '$1``', $html); 
     133                $html = preg_replace('/(\s+|\(+|\[+)\'/', '$1`', $html); 
    133134 
    134135                //escape { and }