tr: Add and use new_type_segment().