def fromXML(self, name, attrs, content, ttFont):
    self.language = safeEval(attrs['language'])
    if (not hasattr(self, 'cmap')):
        self.cmap = {}
    cmap = self.cmap
    for element in content:
        if (not isinstance(element, tuple)):
            continue
        (nameMap, attrsMap, dummyContent) = element
        if (nameMap != 'map'):
            assert 0, 'Unrecognized keyword in cmap subtable'
        cmap[safeEval(attrsMap['code'])] = attrsMap['name']
def fromXML(self, name, attrs, content, ttFont):
    self.language = safeEval(attrs['language'])
    if (not hasattr(self, 'cmap')):
        self.cmap = {}
    cmap = self.cmap
    for element in content:
        if (not isinstance(element, tuple)):
            continue
        (nameMap, attrsMap, dummyContent) = element
        if (nameMap != 'map'):
            assert 0, 'Unrecognized keyword in cmap subtable'
        cmap[safeEval(attrsMap['code'])] = attrsMap['name']