Conversion to or from block codes or representations thereof