Ribbons for categories