def toidpic_old(txt):
    """Returns a Piccolo/Picalor compatible ID"""
    txt = txt.strip()
    if txt == '':
        return '_EMPTY_'
    txt = ascii(txt.replace('  ', '_').replace(' ', '_').replace(',', '_').
        replace('=', '_').replace('.', '-').replace('/', '-').replace('(',
        '-').replace(')-').replace('_-_', '-'))
    return txt
