[elinks-users] Image rendering options
Witold Filipczyk
witekfl at poczta.onet.pl
Fri Dec 14 11:45:58 MST 2007
On Mon, Dec 10, 2007 at 12:08:40PM -0500, Ethan Mallove wrote:
> Hello,
>
> Is there a way to render certain images as a specified ASCII
> text string instead of the image's URL? E.g., I would like
> "/images/arrowLeft.gif" to appear as "<-".
It is possible via browser scripting.
At compile time you could choose of guile, Perl, Python, Ruby, Lua
or Java Script. In your version the Java Script engine was compiled-in.
You must define own preformat_html hook and rewrite html
of pages. Add or replace the alt param of IMG.
Rewritten html fragment would look like this:
<img src="/images/arrowLeft.gif" alt="<-" />.
See contrib/ for examples.
--
Witek
More information about the elinks-users
mailing list