def handle_unk(self, text):
        '''
        Handle unknown symbols in the text.

        @param text: Text.
        @type text: str

        @return: Unknown-handled text.
        @rtype: str
        '''

        result = text

        while True:
            matobj = PageMacro.unkpat.search(result)
            if matobj is None: break
            if self.unkmthd == PageMacro.KEEPMODE:
                result = PageMacro.unkpat.sub(
                    '[[:\g<synname>:]]', result
                )
            elif self.unkmthd == PageMacro.DELMODE:
                result = PageMacro.unkpat.sub('', result)

        return result

        Handle unknown symbols in the text.

        @param text: Text.
        @type text: str

        @return: Unknown-handled text.
        @rtype: str
        
recipes/Python/231512_Efficient_Comfortable_HTMLTemplate/recipe-231512.py