'Print a concordance for ``word`` with the specified context window.
:param word: The target word
:type word: str
:param width: The width of each line, in characters (default=80)
:type width: int
:param lines: The number of lines to display (default=25)
:type lines: int'

def print_concordance(self, word, width=75, lines=25):

    half_width = (((width - len(word)) - 2) // 2)
    context = (width // 4)
    offsets = self.offsets(word)
    if offsets:
        lines = min(lines, len(offsets))
        print((u'Displaying    %s    of    %s    matches:' % (lines, len(offsets))))
        for i in offsets:
            if (lines <= 0):
                break
            left = ((u'    ' * half_width) + u'    '.join(self._tokens[(i - context):i]))
            right = u'    '.join(self._tokens[(i + 1):(i + context)])
            left = left[(- half_width):]
            right = right[:half_width]
            print(left, self._tokens[i], right)
            lines -= 1
    else:
        print(u'No    matches')
