You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There were two cases where the alignment of
text.ConcordanceIndex.find_concordance() output was broken:
* The left context of the query was very small. That is, the query
matched very close to the beginning of the text.
* The text or query contained Unicode combining characters.
The first case is addressed by right justifying the left context to the
proper width. The second case is addressed by replacing the standard
Python len(s) with a count that excludes combining characters, and
replacing s[:width] and s[-width:] with a new utility function that
accounts for combining characters.
0 commit comments