We determine the Hausdorff and Minkowski dimensions of compact subsets
of the 2-torus which are invariant under a linear endomorphism with i
nteger eigenvalues and correspond to shifts of finite type or sofic sh
ifts via some Markov partition. This extends a result of McMullen (198
4) and Bedford (1984), who considered full-shifts.