Transform xm to stardict and vice versa.