@staticmethod
def _screen_coords(lengths, position):
    """Translates quote offset into screen coordinates.

        Args:
            lengths: List of line lengths for the word-wrapped quote.
            position: Offset into the quote that we want to translate to screen
                      coordinates.

        Returns:
            Tuple containing X and Y screen coordinates.
        """
    y_position = 0
    for y_position, line_length in enumerate(lengths):
        if position <= line_length:
            break
        position -= line_length + 1
    return position, y_position
