Difference between revisions of "Bookmarklets"

From Apertium
Jump to navigation Jump to search
(Maybe we could have this on the Surf and Translate page?)
 
(Maybe we could have this on the Surf and Translate page?)
Line 1: Line 1:
 
'''Bookmarklets''' are special buttons you add to your browser's Bookmarks Toolbar. You can have a bookmarklet that starts a Surf and Translate with Apertium with your favorite language pair. Simply drag one of the links below onto your Bookmarks Toolbar in Firefox (if the toolbar isn't visible, go to View->Toolbars):
 
'''Bookmarklets''' are special buttons you add to your browser's Bookmarks Toolbar. You can have a bookmarklet that starts a Surf and Translate with Apertium with your favorite language pair. Simply drag one of the links below onto your Bookmarks Toolbar in Firefox (if the toolbar isn't visible, go to View->Toolbars):
   
[javascript:location.href='http://www.apertium.org/apertium-www/common/browser.php?mark=0&dir=nb-nn&inurl='+encodeURIComponent(location.href) Bokmål->Nynorsk]
+
<a href="javascript:location.href='http://www.apertium.org/apertium-www/common/browser.php?mark=0&dir=nb-nn&inurl='+encodeURIComponent(location.href)">Bokmål->Nynorsk</a>
 
[javascript:location.href='http://www.apertium.org/apertium-www/common/browser.php?mark=1&dir=nb-nn&inurl='+encodeURIComponent(location.href) Bokmål->Nynorsk (show unknown words)]
 
[javascript:location.href='http://www.apertium.org/apertium-www/common/browser.php?mark=1&dir=nb-nn&inurl='+encodeURIComponent(location.href) Bokmål->Nynorsk (show unknown words)]
 
[javascript:location.href='http://www.apertium.org/apertium-www/common/browser.php?mark=0&dir=nb-nn&inurl='+encodeURIComponent(location.href) Nynorsk->Bokmål]
 
[javascript:location.href='http://www.apertium.org/apertium-www/common/browser.php?mark=0&dir=nb-nn&inurl='+encodeURIComponent(location.href) Nynorsk->Bokmål]

Revision as of 09:12, 2 February 2010

Bookmarklets are special buttons you add to your browser's Bookmarks Toolbar. You can have a bookmarklet that starts a Surf and Translate with Apertium with your favorite language pair. Simply drag one of the links below onto your Bookmarks Toolbar in Firefox (if the toolbar isn't visible, go to View->Toolbars):

<a href="javascript:location.href='http://www.apertium.org/apertium-www/common/browser.php?mark=0&dir=nb-nn&inurl='+encodeURIComponent(location.href)">Bokmål->Nynorsk</a> [javascript:location.href='http://www.apertium.org/apertium-www/common/browser.php?mark=1&dir=nb-nn&inurl='+encodeURIComponent(location.href) Bokmål->Nynorsk (show unknown words)] [javascript:location.href='http://www.apertium.org/apertium-www/common/browser.php?mark=0&dir=nb-nn&inurl='+encodeURIComponent(location.href) Nynorsk->Bokmål] [javascript:location.href='http://www.apertium.org/apertium-www/common/browser.php?mark=1&dir=nn-nb&inurl='+encodeURIComponent(location.href) Nynorsk->Bokmål (show unknown words)]