Operator 0.7a is available

Operator 0.7a is available. This is an alpha release. Really.

You probably won’t notice anything obvious that has changed, but under the covers, things are very different. Here’s a list of some of the changes:

  • Complete rewrite of parser and actions system
  • Experimental support for species and XFN (These probably won’t be in the official release)
  • More complete support for hCard and hCalendar
  • Exporting a contact or event now gives you the option to save it to disk
  • You can choose to not remove duplicate microformats
  • Various bug fixes
  • Ability to drop in Brian Suda’s X2V transforms to compare results (More info on that later)
  • REMOVED: Ability to have default handlers for a given microformats

The new actions system is in flux right now, so I’m not giving any detail on how to write to it yet. Old handlers will still work, so if you have those, just drop them in.

If you find bugs, please report them as comments to this post.

As per my social contract, all code has been run through JSLint and migration from three versions of Operator have been tested.

Enjoy.

This entry was posted in firefox and tagged , . Bookmark the permalink.

22 Responses to Operator 0.7a is available

  1. aja says:

    FWIW, Operator 0.7a doesn’t work with trunk builds:

    Error: Node cannot be used in a document other than the one in which it was created = NS_ERROR_DOM_WRONG_DOCUMENT_ERR
    Source file: chrome://operator/content/ufjs/ufJS.js
    Line: 70

    which is:
    var xpathResult = document.evaluate(xpathExpression, rootElement, null, 0, null);

    0.6.2 worked okay with trunk builds.

  2. mkaply says:

    aja:

    I think I fixed this. I wasn’t doing a good job figuring out the owner document to run the xpath on.

  3. Pingback: YashLabs » Blog Archive » Montreal Linux User Group Meeting recap

  4. Andy Mabbett says:

    Here’s some test data for the “species” microformat http://www.westmidlandbirdclub.com/records/lists-2004uf.htm I’ll be adding more shortly.

  5. Ben O'Neill says:

    I’ve not had a chance to test Operator 0.7a, but the version I’m using (0.6.2) seems to ignore the apostrophe in my name (O’Neill) when exporting.

  6. jigar says:

    I have installed this on FF2.0.0.2. But since it involves parsing of content, switching tabs sometimes very slow…Especially on WordPress blog where there are too many tabs. Can’t we have something like caching or limiting parsing to a smaller number of tags ?

  7. Sam Adams says:

    Tried to install Operator, but Firefox complained it was not a valid extension format -207

  8. mkaply says:

    jigar:

    Actually, it’s not the parsing that was causing the slowdown, it’s the XUL. I’ve fixed this in my build and it will be in 0.7. Displaying a page with 500+ microformats went from 18 seconds down to less than 2

  9. mkaply says:

    Sam Adams

    That’s really strange. Can you try downloading it again?

    Or installing from addons.mozilla.org?

  10. Pingback: Mídia Digital » Blog Archive » Firefox ajudando os desenvolvedores Web

  11. Pontus says:

    Hi, i can’t get Operator .6.x or .7.x to work on html pages(tested geo and rel tag). Do Operator find microsummaries on html pages or is it a xhtml-thingy only? Does the parsing of content work with unvalidated html?

    Tested to put this on my site:
    tech

  12. mkaply says:

    Pontus

    Can you give me an example page? Operator should work on microformats on any page, XHTML or HTML.

  13. Pontus says:

    Well, I’m just learning so I may have used the microsummaries wrongly but, http://www.roligasidor.se/internetkultur.php (my page), line 58 have one rel-tag. Have tested the rel and geo but I dont get anything to work. ;) (The page is HTML 4.01 Transitional, only errors on the page is a non-SGML character and some missing alt-tags.)

  14. mkaply says:

    Pontus:

    Some of your rel= work. The other rel= problem are because you have put the rel= on a tag that is not an anchor

    My suggestion is that you turn on debug mode in Operator. It should show you some of the problems.

    I couldn’t find the geo on this page. Was it here?

  15. Pontus says:

    Hehe, stupid me. When the rel-tag at anchors didnt work i added the rel-tag to the div just to test and forgot to remove ‘em. Thank you very much for the help.

    But should one wrongly placed microformat-tag break all the others?

  16. Pingback: The Montreal Tech League » Blog Archive » Packed week in Montreal’s Tech Scene

  17. jigar says:

    mike:
    I was experimenting with 7a. Just go to this blog and observe tab switching time. Its significant.
    http://ketan.padegaonkar.name/
    Can we include some logic to remove duplicate tags ? Ithink that can solve this problem.

  18. mkaply says:

    jigar:

    Things are much better with my new build.

    And actually, removing duplicate entries makes things much worse.

    On your page, you have 330 tags. If I remove the true duplicates (that is, not just the text duplicates, but the actual tag, including the URL) that takes it down to 273. (and affects page load performance a bit)

    I’ve been pondering removing duplicate tag names (not just duplicate tags), but I believe it will actually make the problem worse…

  19. Pingback: YashLabs » Blog Archive » DemoCampMontreal2 - Thu March 29th - SAT

  20. Virginia says:

    The new version seems to be missing hReview as an item in the tool bar. It still shows up in the options as one of the microformats, but is no longer in the toolbar.

  21. mkaply says:

    hReview is now a user script. It can be downloaded at:

    http://www.kaply.com/weblog/operator-user-scripts/

  22. Ryan Kaldari says:

    Please hold off on support for the species microformat in the official release. It still has some fundamental problems that need to be resolved before widespread use. Thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">