Example #1
0
File: myhex.py Project: olpa/tex
 def __init__(self):
     myHelper.__init__(self)
     self.hexRe = re.compile( ur"\A(\s*)#(\s*)(\(?)(\s*)([\da-f]{2}\s*)(\s*,?\s*)([\da-f]{2}\s*)(\s*,?\s*)([\da-f]{2}\s*)(\s*)(\)?)(\s*)\Z", re.UNICODE|re.IGNORECASE)
Example #2
0
 def __init__(self):
     myHelper.__init__(self)
     self.rgbRe = re.compile(
         ur"\A(\s*)rgb(\s*)(\(?)(\s*)([\d]{,3}\s*%?)(\s*,?\s*)([\d]{,3}\s*%?)(\s*,?\s*)([\d]{,3}\s*%?)(\s*)(\)?)(\s*)\Z",
         re.UNICODE | re.IGNORECASE)
Example #3
0
File: mycmyk.py Project: olpa/tex
 def __init__(self):
     myHelper.__init__(self)
     self.cmykRe = re.compile( ur"\A(\s*)cmyk(\s*)(\(?)(\s*)([\d]{,3}\s*%?)(\s*,?\s*)([\d]{,3}\s*%?)(\s*,?\s*)([\d]{,3}\s*%?)(\s*,?\s*)([\d]{,3}\s*%?)(\s*)(\)?)(\s*)\Z", re.UNICODE|re.IGNORECASE)
Example #4
0
 def __init__(self):
     myHelper.__init__(self)
     self.nameRe = re.compile(ur"\A( *)" + self.getReX11colors() + "( *)\Z",
                              re.UNICODE | re.IGNORECASE)
Example #5
0
File: myname.py Project: olpa/tex
 def __init__(self):
     myHelper.__init__(self)
     self.nameRe = re.compile(ur"\A( *)" + self.getReX11colors() + "( *)\Z", re.UNICODE|re.IGNORECASE)