def cnv_family(attribute, arg, element):
 if (str(arg) not in ('text', 'paragraph', 'section', 'ruby', 'table', 'table-column', 'table-row', 'table-cell', 'graphic', 'presentation', 'drawing-page', 'chart')):
  raise ValueError(("'%s' not allowed" % str(arg)))
 return str(arg)

def cnv_family ( attribute , arg , element ) : if ( str ( arg ) not in ( 'text' , 'paragraph' , 'section' , 'ruby' , 'table' , 'table-column' , 'table-row' , 'table-cell' , 'graphic' , 'presentation' , 'drawing-page' , 'chart' ) ) : raise ValueError ( ( "'%s' not allowed" % str ( arg ) ) ) return str ( arg )
a style family .