Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > dcb57bc1f616cf3a8072df2efbbf2767 > files > 91

elinks-0.12-18.mga7.i586.rpm

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Chapter 14. Scripting ELinks with Lua</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"><link rel="home" href="index.html" title="The ELinks Manual"><link rel="up" href="index.html" title="The ELinks Manual"><link rel="prev" href="ch13s03.html" title="The Download Dialog"><link rel="next" href="ch14s02.html" title="Installing"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 14. Scripting ELinks with Lua</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch13s03.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch14s02.html">Next</a></td></tr></table><hr></div><div class="chapter" title="Chapter 14. Scripting ELinks with Lua"><div class="titlepage"><div><div><h2 class="title"><a name="lua-scripting"></a>Chapter 14. Scripting ELinks with Lua</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="ch14.html#idp6859728">Introduction</a></span></dt><dd><dl><dt><span class="section"><a href="ch14.html#idp6860368">What is it</a></span></dt><dt><span class="section"><a href="ch14.html#idp6864176">Where to get it</a></span></dt><dt><span class="section"><a href="ch14.html#idp6868560">What it runs on</a></span></dt></dl></dd><dt><span class="section"><a href="ch14s02.html">Installing</a></span></dt><dd><dl><dt><span class="section"><a href="ch14s02.html#idp6872048">Installing Lua</a></span></dt><dt><span class="section"><a href="ch14s02.html#idp6885776">Installing ELinks</a></span></dt><dt><span class="section"><a href="ch14s02.html#idp6887904">Running ELinks with Lua</a></span></dt></dl></dd><dt><span class="section"><a href="ch14s03.html">Using ELinks with Lua</a></span></dt><dd><dl><dt><span class="section"><a href="ch14s03.html#idp6891168">ELinks Lua additions</a></span></dt><dt><span class="section"><a href="ch14s03.html#idp6896832">Config file</a></span></dt><dt><span class="section"><a href="ch14s03.html#idp6901440">Hooks</a></span></dt><dt><span class="section"><a href="ch14s03.html#idp6928432">Functions</a></span></dt><dt><span class="section"><a href="ch14s03.html#idp6981856">Variables</a></span></dt><dt><span class="section"><a href="ch14s03.html#idp6984848">User protocol</a></span></dt></dl></dd><dt><span class="section"><a href="ch14s04.html">Example recipes</a></span></dt><dd><dl><dt><span class="section"><a href="ch14s04.html#idp6992896">Go to URL on steroids</a></span></dt><dt><span class="section"><a href="ch14s04.html#idp6998816">Expanding ~ (tilde)</a></span></dt><dt><span class="section"><a href="ch14s04.html#idp7003024">Filtering crap</a></span></dt><dt><span class="section"><a href="ch14s04.html#idp7012320">Reading gzipped files</a></span></dt><dt><span class="section"><a href="ch14s04.html#idp7016448">Printing</a></span></dt><dt><span class="section"><a href="ch14s04.html#idp7024352">Deferring to Netscape</a></span></dt><dt><span class="section"><a href="ch14s04.html#idp7027936">Alternative bookmark system</a></span></dt><dt><span class="section"><a href="ch14s04.html#idp7029888">More ideas</a></span></dt></dl></dd></dl></div><p>This file documents the Lua scripting interface of the ELinks web browser.</p><div class="section" title="Introduction"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="idp6859728"></a>Introduction</h2></div></div></div><div class="section" title="What is it"><div class="titlepage"><div><div><h3 class="title"><a name="idp6860368"></a>What is it</h3></div></div></div><p>Lua scripting capabilities permit users to customize the ELinks behaviour to
unusual degree - they allow automatic rewriting of HTML code of the received
documents, rewriting of the URLs entered by user etc. You can even write your
own bookmarks system with Lua. See also contrib/lua/ for some examples of the
possibilities of ELinks Lua support.</p><p>Please do not confuse Lua scripting with JavaScript, EcmaScript, VBScript and
similar. Those are embedded in page, allowing per-document scripting related
to its presentation and providing some degree of interactivity etc. On the
contrary, the current Lua support permits scripts to be embedded to the
browser directly, changing the behaviour of the browser, not the document.</p><p>The original Lua support (in the form of Links-Lua fork of original Links) was
written by Peter Wang and Cliff Cunnington.  There are some rough edges
remaining, but is suitable for everyday use (I have been using it every day
for a year).</p></div><div class="section" title="Where to get it"><div class="titlepage"><div><div><h3 class="title"><a name="idp6864176"></a>Where to get it</h3></div></div></div><p>The Lua scripting support comes with the stock ELinks distribution, no
additional patches and tweaks should be needed.</p><p>The web site of the original Links-Lua is at
<a class="ulink" href="http://links.sourceforge.net/links-lua/" target="_top">http://links.sourceforge.net/links-lua/</a>. Some older patches against
regular Links are available at
<a class="ulink" href="http://www.sourceforge.net/projects/links/" target="_top">http://www.sourceforge.net/projects/links/</a>, but they are not being
maintained.</p><p>Lua can be found at <a class="ulink" href="http://www.lua.org/" target="_top">http://www.lua.org/</a>.</p></div><div class="section" title="What it runs on"><div class="titlepage"><div><div><h3 class="title"><a name="idp6868560"></a>What it runs on</h3></div></div></div><p>The Lua support has only been tested under Linux, although it <span class="strong"><strong>should</strong></span>
work under other platforms that ELinks and Lua support (perhaps with some
changes to source code?).</p><p>Also, note that many of the scripts given here assume a Unix system.
Your mileage will definitely vary on other platforms.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch13s03.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="ch14s02.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">The Download Dialog </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Installing</td></tr></table></div></body></html>