def iterate(self, word):
        """
        Iterate over all hyphenation possibilities, the longest first.
        """
        for p in reversed(self.positions(word)):
            if p.data:
                # get the nonstandard hyphenation data
                change, index, cut = p.data
                if word.isupper():
                    change = change.upper()
                c1, c2 = change.split('=')
                yield word[:p+index] + c1, c2 + word[p+index+cut:]
            else:
                yield word[:p], word[p:]
Iterate over all hyphenation possibilities, the longest first.