Changeset 976

Show
Ignore:
Timestamp:
08/05/11 20:48:55 (10 months ago)
Author:
confluence
Message:

replace double quotes with

Location:
hodgestar/PythonCode/WikiTransformer/wikipub
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • hodgestar/PythonCode/WikiTransformer/wikipub/compile/latex.py

    r923 r976  
    6060            WikiAst.Style.ITALIC: "\\emph{%s}", 
    6161            WikiAst.Style.UNDERLINED: "\\underline{%s}", 
     62            WikiAst.Style.QUOTES: "``%s''", 
    6263        } 
    6364 
     
    263264      \begingroup 
    264265      \Large\bfseries\raggedleft 
    265 %%      \thesection.\  
     266%%      \thesection.\ 
    266267      #2\par 
    267268      \endgroup 
     
    286287      \begingroup 
    287288      \Large\bfseries\raggedleft 
    288 %%      \thesection.\  
     289%%      \thesection.\ 
    289290      #2\par 
    290291      \endgroup 
     
    348349    \vskip 10\p@ 
    349350    \begin{flushright} 
    350       \LARGE  
     351      \LARGE 
    351352      \strut \@title \par 
    352353      \vskip 30\p@ 
  • hodgestar/PythonCode/WikiTransformer/wikipub/interfaces/WikiAst.py

    r922 r976  
    142142    """Node representing text styled in someway. 
    143143       """ 
    144     BOLD, ITALIC, UNDERLINED = range(3) 
    145     STYLE_TYPES = [BOLD, ITALIC, UNDERLINED] 
     144    BOLD, ITALIC, UNDERLINED, QUOTES = range(4) 
     145    STYLE_TYPES = [BOLD, ITALIC, UNDERLINED, QUOTES] 
    146146 
    147147    def __init__(self,iStyle,oText): 
     
    188188    def rows(self): 
    189189        """Iterator over the rows in a table. 
    190             
     190 
    191191           Each item in a row is either a Cell or None. 
    192192           None is used to mark cells which have no content because they are covered by ones with rowspan or colspan > 1. 
  • hodgestar/PythonCode/WikiTransformer/wikipub/parse/pmwiki.py

    r922 r976  
    3434 
    3535    # Character Stlyes 
    36     LINK, BOLD, ITALICS, VERBATIM, IMAGE = range(5) 
     36    LINK, BOLD, ITALICS, VERBATIM, IMAGE, QUOTES = range(6) 
    3737 
    3838    def __init__(self): 
     
    5656            (self.LINK, re.compile(r"\[\[(?P<link>[^|\]]*)(\|(?P<text>[^|\]]*))?\]\]"), self._handleLink), 
    5757            (self.BOLD, re.compile(r"'''(?P<text>.*?)'''"), self._handleBold), 
     58            (self.QUOTES, re.compile(r'"(?P<text>.*?)"'), self._handleQuotes), 
    5859            (self.ITALICS, re.compile(r"(?<!')''(?!')(?P<text>.*?)(?<!')''(?!')"), self._handleItalics), 
    5960            (self.VERBATIM, re.compile(r"\[\=|\=\]"), self._handleVerbatim), 
     
    305306        return WikiAst.Style(WikiAst.Style.BOLD,self._applyCharStyles(oM.group("text"))) 
    306307 
     308    def _handleQuotes(self,oM): 
     309        return WikiAst.Style(WikiAst.Style.QUOTES,self._applyCharStyles(oM.group("text"))) 
     310 
    307311    def _handleItalics(self,oM): 
    308312        return WikiAst.Style(WikiAst.Style.ITALIC,self._applyCharStyles(oM.group("text")))