In http://developer.android.com/reference/android/text/TextWatcher.html, it says:
you can use setSpan(Object, int, int, int) in onTextChanged(CharSequence, int, int, int) to mark your place and then look up from here where the span ended up.
But how do I actually implement that?