'The <text:span> element matches the <span> element in HTML. It is
typically used to properties of the text.'

def s_text_span(self, tag, attrs):

    self.writedata()
    c = attrs.get((TEXTNS, 'style-name'), None)
    htmlattrs = {}
    if c:
        c = c.replace('.', '_')
        special = special_styles.get(('S-' + c))
        if ((special is None) and self.generate_css):
            htmlattrs['class'] = ('S-%s' % c)
    self.opentag('span', htmlattrs)
    self.purgedata()
