I would propose extending the Plucker format to allow for "exact anchors", i.e., named anchors that go not just to the beginning of the referenced paragraph but to the exact text position.
On the viewer side, this is very easy. I enclose an untested patch as an example of how it could be implemented. (The patch compiles and seems to work OK for ordinary anchors. I didn't run unit tests, though, and I had no documents with exact anchors to try it out on.
On the parser side, I assume it's not that hard either. Just have a
command-line option that selects whether we use paragraph-based anchors or
exact anchors, and then instead of storing paragraph numbers, store
character offsets. I am not sure I know enough Python to do this myself,
though.
I think this would be very helpful, esp for documents that are existing html (for writing new html, I just work around by making the anchor at the start of the paragraph).
Can a feature req be opened on bugs.plkr.org for this, together with your viewer diff?
Best wishes, Robert _______________________________________________ plucker-dev mailing list [EMAIL PROTECTED] http://lists.rubberchicken.org/mailman/listinfo/plucker-dev
