IFBook/CommentPressPlugin — pull request #22 by christianwach (2012-07-13 13:53:38+00:00)
Title: reworked the way comments are assigned to text signatures

First, the text signatures are generated, making sure that there are no duplicates.

Comments are then assigned to text signatures in the following way:

* Comments with no text signature are assigned to the whole page
* Comments are assigned to a text signature if there is an exact match
* If there is no match, comments are assigned to the text signature with the closest match
* If there is still no match (no text signature was close enough) then the comment is "orphaned" and assigned to the whole page