synthesis_callback: pass a range to ontextrange

The text processing API tracks tne position of a text event as a
range. This change makes the ontextrange method on synthesis_callback
compatible with this API.