From matthew at mjwilson.demon.co.uk Sun Dec 10 10:27:19 2006 From: matthew at mjwilson.demon.co.uk (Matthew Wilson) Date: Sun, 10 Dec 2006 18:27:19 +0000 Subject: [Annozilla] Latest development work Message-ID: <457C5187.1090405@mjwilson.demon.co.uk> Just an update on the current work on Annozilla. Eliot Setzer and C. Greg Hagerty have both contributed great patches which fix bugs and add functionality. These have been checked in to CVS and merged back on to the main line. There is still work to be done to get all the features working correctly. The latest information can be found at http://annozilla.mozdev.org/ReleaseNotes.html http://annozilla.mozdev.org/ToDo.html Note that the builds linked from these pages are strictly experimental. The next builds are likely to drop official support for Firefox versions prior to 1.5.0.8. Matthew From cgregh at gmail.com Wed Dec 13 11:44:22 2006 From: cgregh at gmail.com (C. Greg Hagerty) Date: Wed, 13 Dec 2006 14:44:22 -0500 Subject: [Annozilla] Latest development work In-Reply-To: <457C5187.1090405@mjwilson.demon.co.uk> References: <457C5187.1090405@mjwilson.demon.co.uk> Message-ID: <45805816.6040206@gmail.com> [My lattest patches for the development version 0.7 are now at http://infolab.umdnj.edu/annozilla patch121306_annozilla-chrome-content.patch patch121306_annozilla-services-components.patch patch121306_xpointerlib-components.patch Footnote/tagset/toolbar-button release soon to follow! ] I've just made a few additional enhancements to IconManager: updateAnnotationOnSuccess can just call _InsertAnnotationBefore to update existing icons as well as spans (updating annotation-type). You'll notice IconManager and highlight are now aware of "Global/Page annotations" (having html as parent). Highlight needs to notice these so the body doesn't get wrapped. This conveniently dovetails with Eric's context aware context menu item. Well, I've been using/planning to use the global page annotations to point to things such as additional annotation sets (additional datasources or for other/cached pages) and stylesheets. Eventually, this might first apply the current/default creator's page annotations and look for a directive to see whose other page annotation directives to follow. At present, IconManager (_InsertAnnotationBefore) can just look for a line in the annotation body "Use-Stylesheet: " to add the corresponding css link. Cryptic patch notes: *Annozilla: consolidated addAnnotations(formerly "Asynch", now always) *Annozilla: initAnnozilla called from overlay load listener, init tab observer *Annozilla: restored unload listener (else reload chrome doesn't work so well) *Annozilla: function def args have to be on one line or Venkman gets confused? *Annozilla: (untabified) *Annozilla: _addNext skip annotations of other pages (in case there are) *IconManager, Highlight: a little craziness for global/page annotations *IconManager: delete spans on deleteAnnotationOnSuccess, _removeHighlight *Highlight: Don't warn about annotations.css, TODO: Document ways to provide custom css (eg shadow or via a page annotation) *Highlight: Tricky endRangeIncluded patch to evaluateNode to maintain order *(and no, we generally don't want condition/recommendation on context menu) *ContextMenu: nonModalPostAnnotation TODO: still (really annoying) problems getting prefs with new scheme: defaultPostServer, creator *Editor delete button: CommonEditor.prototype.deeleet() *CommonEditor, PostObserver allow annotation arg to be type of new annotation *nsXPointerlib: comment out resolveXPointerToRange (normal case) dump *nsAnnotationService: Don't reject until after notifying observers onBeginLoad *nsLocalAnnotationServer: Init method overload hack to load alternate datasource files, when provided and toggle path invariant annotations mode *nsLocalAnnotationServer: Path invariant annotations, when secretly toggled getresources also for filename alone w/o path (allows for caches/mirrors, moving local files around) ...Greg