Generate action functions to caputure text properties.