Django App that let's you insert footnotes and annotate parts of a text.
Python JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
annotatetext
media/annotatetext
otherapp
templates
LICENSE.txt
README.mkd
__init__.py
manage.py
settings.py
urls.py

README.mkd

AnnotateText

AnnotateText is a Django App that lets you select parts of a text of some model and write an annotation for it. Nothing too special. Two cool things, though:

  1. If the original text changes, the selections of this text will try to smartly adapt to the change. And by 'smartly', I mean I use the SequenceMatcher of the difflib module.
  2. The annotate.js JavaScript inserts all annotations into one text and can display all of the possible overlapping selections in one text at once. The algorithm for that is not trivial. Some other tricks are also incorporated. The presentation should degrade gracefully.

An example of this App in the wild can be found (in German) on bundestagger.de: http://www.bundestagger.de/16/sitzung/1/#annotation-1