tr: use cdef_*() for char definition and cmap_*() for char translation