I wish to define a superscript that is adaptive to the height of the character before it.
Just like using the \dagger offered by latex.
For example, for the following code:
\[
\sqrt{p^\top \mathcal{E}_u^\top \, p^x \mathcal{E}_u^x \, {p^\dagger} \mathcal{E}_u^\dagger}
\]
I get the following result
Notice how the height of the superscript \top and x are the same for characters of different sizes, but the \dagger superscript is properly placed.
How can I get the similar behavior as \dagger?

