handler to improve text cursor word boundaries

this can be used to improve navigation and selection of LilyPond text
it could be used by an event handler in the View, etc.