Text this: Scattering From Dielectric Metasurfaces in Optical and Microwave Ranges