Difference between revisions of "ubiquity"

From Microformats Wiki
Jump to navigation Jump to search
(→‎Microformats Extraction commands: updated cognition's ubiquity commands)
 
(One intermediate revision by one other user not shown)
Line 28: Line 28:
 
* Microformats Detection command available at  http://srv.buzzword.org.uk
 
* Microformats Detection command available at  http://srv.buzzword.org.uk
 
*#command:
 
*#command:
*#* <code>cognifiy</code>, Detects all Microformats using [http://buzzword.org.uk/cognition/ Cognition]
+
*#* <code>cognifiy-page ''output_format''</code>, Detects all Microformats on page using [http://buzzword.org.uk/cognition/ Cognition]
 +
*#* <code>cognifiy-selection ''output_format''</code>, Detects all Microformats within selected text using [http://buzzword.org.uk/cognition/ Cognition]
  
 
== Ubiquitiy and Firefox' Microformats-API ==
 
== Ubiquitiy and Firefox' Microformats-API ==
Line 46: Line 47:
 
  })
 
  })
  
* [http://transformr.co.uk/ TransFormr] uses some of the above code to detect if some microformats are present ([[hcard|hCard]] and [[hcalendar|hCalendar]]) before performing a transformation.
+
* [http://transformr.co.uk/ TransFormr] uses some of the above code to check if certain microformats are present ([[hcard|hCard]] and [[hcalendar|hCalendar]]) before performing a transformation.
  
 
==See also==
 
==See also==

Latest revision as of 22:12, 8 September 2008

Ubiquity Commands

What is Ubiquity

Ubiquity is a Firefox 3 plugin that enables the user to interact with websites and services using simple keyboard commands.

Below is a list of Commands in the wild that support Microformats.

See User Interface for ways in which extensions could or do handle microformats.

Commands in the wild

Microformats Wiki Search

Microformats Extraction commands

  • Microformats Detection command available at http://srv.buzzword.org.uk
    1. command:
      • cognifiy-page output_format, Detects all Microformats on page using Cognition
      • cognifiy-selection output_format, Detects all Microformats within selected text using Cognition

Ubiquitiy and Firefox' Microformats-API

It is also possible to use the Firefox Microformats-API directly (with Ubiquity).

Here is a little code snippet:

Components.utils.import("resource://gre/modules/Microformats.js");
CmdUtils.CreateCommand({
  name: "count-hcards",
  execute: function() {
    var doc = Application.activeWindow.activeTab.document;	
    var uFcount = Microformats.count('hCard', doc);
    displayMessage( uFcount );
  }
})
  • TransFormr uses some of the above code to check if certain microformats are present (hCard and hCalendar) before performing a transformation.

See also