예제 #1
0
def parse_emotes(text, include_table_tags=True):
    '''Parses emotes in text string, returning a html string laid out
    using a table, to vertically align emotes correctly'''
    text = MarkupParser.replace_emotes(text)
    parser = MyHTMLParser(include_table_tags)
    parser.feed(text)
    text2 = parser.get_data()
    return text2
예제 #2
0
파일: Utils.py 프로젝트: Stiveknx/emesene
def parse_emotes(text, include_table_tags=True):
    '''Parses emotes in text string, returning a html string laid out
    using a table, to vertically align emotes correctly'''
    text = MarkupParser.replace_emotes(text)
    parser = MyHTMLParser(include_table_tags)
    parser.feed(text)
    text2 = parser.get_data()
    return text2
예제 #3
0
파일: TextBox.py 프로젝트: felippo/emesene
    def append(self, text, cedict, cepath, scroll=True):
        """append formatted text to the widget"""
        if self.config.b_show_emoticons:
            text = MarkupParser.replace_emotes(text, cedict, cepath)

        # Parse links
        text = MarkupParser.urlify(text)

        TextBox.append(self, text, scroll)
예제 #4
0
    def append(self, text, cedict, scroll=True):
        '''append formatted text to the widget'''
        if self.config.b_show_emoticons:
            text = MarkupParser.replace_emotes(text, cedict)

        #Parse links
        text = MarkupParser.urlify(text)

        TextBox.append(self, text, scroll)