How to generate this "A" symbol commonly used in mathematics?

For math mode, you should use typm, or better yet use a markup:

$cal(A)$

image

Also, Detypify only works on symbols, so calligraphical letters won’t work there.