code: def offset_overlays(self, text, offset=0, **kw):
          
  
          for ovl in text.overlays:
              if ovl.match(offset=offset, props=self.props_match):
                  yield ovl.copy(props=self.props,
                                 value=self.value(overlay=ovl))
docs: Get overlays for the text.
          :param text: The text to be searched. This is an overlay
          object.
          :param offset: Match starting that index. If none just search.
          :returns: A generator for overlays.