that is easy too :)
from mojo.events import addObserver
class RenameGroupsObserver(object):
def __init__(self):
addObserver(self, "checkGroupNames", "fontDidOpen")
def checkGroupNames(self, info):
print "checking group names for single quotes"
font = info["font"]
for groupName, items in font.groups.items():
newItems = []
for glyphName in items:
if "'" in glyphName:
glyphName = glyphName.replace("'", "")
newItems.append(glyphName)
if newItems != items:
## something changed
font.groups[groupName] = newItems
print "done checking group names"
RenameGroupsObserver()
save this script in a file and add it in the preferences as a start up script and you never ever have to worry about single quotes in groups.
see http://doc.robofont.com/documentation/workspace/preferences/extensions/
Your font data will change and importing the UFO back in FL will change the groups behavior, off course
good luck