handle texts copied from other programs

https://github.com/zk-phi/phi-rectangle/issues/1