start on annotation function, select text and obtain positions