For math mode, you should use typm, or better yet use a markup:
typm
$cal(A)$
Also, Detypify only works on symbols, so calligraphical letters won’t work there.