def translate_sbml_compound(entry, new_id, compartment_map):
new_entry = DictCompoundEntry(entry, id=new_id)<EOL>if '<STR_LIT>' in new_entry.properties:<EOL><INDENT>old_compartment = new_entry.properties['<STR_LIT>']<EOL>new_entry.properties['<STR_LIT>'] = compartment_map.get(<EOL>old_compartment, old_compartment)<EOL><DEDENT>for key, value in iteritems(parse_xhtml_species_notes(entry)):<EOL><INDENT>if key not in new_entry.properties:<EOL><INDENT>new_entry.properties[key] = value<EOL><DEDENT><DEDENT>return new_entry<EOL>
Translate SBML compound entry.