When using Knowtator in Windows - or files generated in
windows, there can be a problem with the character
offsets. Knowtator will always treat newlines as a
single character even if the two character newline
'\r\n' is used. This will cause the span offsets of
Knowtator annotations to not match up with the real
offsets given in the text. This should not be an issue
if you are on Linux/Unix/Mac.
One quick and dirty fix is to convert the target text
file from "DOS" to "Unix" using a tool such as the
cygwin conv.exe utility. This tool goes through the
file and replaces all occurrences of '\r\n' with '\n'.
For more detailed information about the source of this
bug, see the discussion at:
http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/text/DefaultEditorKit.html
Also - see duplicate bug report with additional detail at: https://sourceforge.net/tracker/?func=detail&atid=714366&aid=2727481&group_id=128424