lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: lynx-dev Overriding mime types


From: Lloyd Rasmussen
Subject: RE: lynx-dev Overriding mime types
Date: Fri, 22 Mar 2002 23:33:50 -0500

For a specific class of XML files with the extension .XML, Lynx could
be set up to call XSLTPROC to run an XSLT stylesheet on the file,
presenting Lynx with an HTML version of the content.  An XSLT
stylesheet could also be applied to SVG material to present
accessible pieces to Lynx as one or more HTML files.

On Sat, 23 Mar 2002 11:28:00 +0900 (JST), Henry Nelson wrote:

>> How do you override mime types?
>
>Not sure what information you are looking for.  "Overriding" mime types in
>the sense of ignoring the encoding of a particular file type is not something
>you want to do lightly.  Just as general knowledge, I offer the following
>suggestions on ways to have Lynx handle files based on the file extension(s).
>
>1) define a DOWNLOADER in lynx.cfg
>
>2) use a (pseudo)proxy method, or apply the "Cern rules" code
>
>3) define an EXTERNAL in lynx.cfg
>
>4) hardcode Lynx
>
>5) define a SUFFIX/VIEWER *pair* in lynx.cfg, or (IMHO, better,)
>   make entries in your PERSONAL_EXTENSION_MAP *and* PERSONAL_MAILCAP.
>
>The last of these options is nice in that it makes things "automagic."
>The method also allows you to have "levels" of extensions.  For example
>you can hit [Enter] on the link "http://www.irm.nara.kindai.ac.jp/
>lynxdev/archives/0201.arc.bz2" and have Lynx pass the file to "bzip2" to
>be decompressed, and then pass the decompressed file to "most" for
>viewing by putting the following two lines in, e.g., ".mime.types"
>             text/x-archive                    arc
>             application/x-bzip2               bz2
>to define the extension type, and then two lines in, e.g., ".mailcap"
>             text/x-archive; /usr/bin/most +s -k %s
>             application/x-bzip2; /usr/bin/bzip2 -d %s
>to define what applications should be used to open files of those types.
>
>__Henry
>
>; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

Braille is the solution to the digital divide.
Lloyd Rasmussen, Kensington, Maryland
home:  <address@hidden> <http://lras.home.sprynet.com/>
Work:  <address@hidden>         <http://www.loc.gov/nls/>



; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]