WikiSyntax’ish for Ecto
Friday, September 22nd, 2006If you use the Ecto blogging client you might find my script LuckyLink (link below) of interest. It supports Wiki style syntax markup of text, which it will perform an operation on. Currently there is only one supported operation: Google "I'm Feeling Lucky" links.
Usage:
Simple markup:
- Enclose text to be linked in [[ ]]
e.g: [[ Noam Chomsky ]]
This will generate a link (to the site returned by Google's I'm Feeling Lucky) around the text Noam Chomsky.
You can specify something different to search for using the following two variations (in both cases only "display text" will be retained):
- [[ display text | search text ]]
e.g: [[ Chomsky's book | site:amazon.com Hegemony Survival ]]
This will use the part after the | to do the search and wrap the first part (Chomsky's book) in the link returned.
- [[ display text |+ additional search text ]]
e.g: A few bits from [[ Chomsky's Hegemony |+ excerpts ]]
This will use both the first part and the second part, together, for the search, but only use the first part for the linked text.
- Spaces after/before opening/closing brackets and around | and |+ are optional.
- Text can't have a | of course.
Some words of warning
- The syntax supported by the script is bound to change as I flesh it out.
- This is a 0.001 alpha script and a fairly trivial one. Use at your own risk.
- This script requires Perl and 'wget' (use DarwinPorts or search for "wget for Windows")
- In Ecto, see Scripts => What is This?, for installation help.
Link to script: LuckyLink-1.pl