(self)
Parse RTF default language setting
Parse RTF default language setting
Parse RTF default language setting
def parse_deflang(self):
        """Parse RTF default language setting"""
        self.features['deflang'] = 0
        page = re.compile(r'.*\\deflang(\d+)', re.M | re.S)
        match = page.match(self.data)
        if match:
            try:
                self.features['deflang'] = int(match.group(1))
            except Exception:
                if self.debug:
                    print('Could not convert deflang to int')
def parse_deflang ( self ) : self . features [ 'deflang' ] = 0 page = re . compile ( r'.*\\deflang(\d+)' , re . M | re . S ) match = page . match ( self . data ) if match : try : self . features [ 'deflang' ] = int ( match . group ( 1 ) ) except Exception : if self . debug : print ( 'Could not convert deflang to int' )