def METHOD_NAME(self, glyph):
    glyphs = []
    if len(glyph) > 1:
        # glyph names need to be converted to unicode
        # we need to take into account, that there can be more than one first/second letter in the very same hkern element
        # in this case they will be commas separated and each first letter needs to be combined with each next letter
        # e.g. <hkern g1="A,Agrave,Aacute,Acircumflex,Atilde,Adieresis,Amacron,Abreve,Aogonek" g2="T,Tcaron" k="5" />
        glyph_names = glyph.split(",")
        for glyph_name in glyph_names:
            # each glyph can have additional special markers, e.g. o.cmp
            # toUnicode will not respect those and convert them to a simple letter
            # this behaviour will generate a wrong spacing for this letter.
            # Let's make sure to also transfer the separators and extensions to our json file
            separators = [".", "_"]
            used_separator = False
            for separator in separators:
                glyph_with_separator = glyph_name.split(separator)
                if len(glyph_with_separator) == 2:
                    glyphs.append("%s%s%s" % (toUnicode(glyph_with_separator[0]), separator, glyph_with_separator[1]))
                    used_separator = True
                    continue
            # there is no extra separator
            if not used_separator:
                glyphs.append(toUnicode(glyph_name))
    else:
        glyphs.append(glyph)
    return glyphs