ofri / django-annotatetext

Django App that let's you insert footnotes and annotate parts of a text. Customized for the Open-Knesset project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Django App that let's you insert footnotes and annotate parts of a text. Customized for the Open-Knesset project

License:MIT License


Languages

Language:Python 57.8%Language:JavaScript 42.2%