Refine handle_shrink() to work better without the surrounding text API.
Refine handle_shrink() to work better without the surrounding text API.

engine/engine.py

esrille/ibus-replace-with-kanji,esrille/ibus-replace-with-kanji