lynx-dev
[Top][All Lists]
Advanced

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

LYNX-DEV Developments of my styles patch-thing


From: Rob Partington
Subject: LYNX-DEV Developments of my styles patch-thing
Date: Mon, 27 Jan 1997 21:06:46 +0000

(The following is a public service announcement, written by address@hidden;
I just hack the code, he comes up with the press releases... <grin>)

Lynx-SS
-------
A pre-Alpha version of Lynx-SS, including enhanced support for pseudo-style
sheets, has now been released and is available for download from
lynx.browser.org now.

Whereas the previous version relied upon entries in the lynx.cfg file to
define element styles, this release uses an entirely different method. It
has been rewritten to use an associative array (hash table) for mapping
style names to the styles themselves. This means that it now includes
support for classes - so instead of redefining elements to a universal style, 
you can now use classes of elements: <h1 class=red> is different to just
<h1>, for example.

With lynx-ss, you can define a universal style sheet to be read in on the
command line - so, if you have a series of different files for different
terminal types (say, mono and colour), you can make sure you get the
appearance right every time. The default file can be defined and/or compiled
in the same way as lynx.cfg can (ie, in userdefs.h or as an environment
variable) using LYNX_LSS_FILE

Styles can still be defined in lynx.cfg, but now sheets can be specified
too, and local style sheets can be loaded in with 
<link rel=style href="filename"> too.

Defining more than one sheet per page doesn't cause so much cascading, more
interfering. In rare cases it may work, but I did say this is a pre-Alpha. :-)

This version was made using base code from December, so there's still a lot
of patching to do to make it work with the latest Fote code - but I'll be
doing that in the next week or so.

It's horribly developmental code, and it definitely only works with ncurses
and probably only with Linux as well, but if you want to try it, then
you can get it from <URL: http://lynx.browser.org/lynxrp.tgz >

To compile: make develop

If you want to compile it for a different OS, then look at develop and
take the options from there: at the very least, you need to define CS,
XRP, and USEHASH ("-DCS -DXRP -DUSEHASH") for *both* the libwww code 
and the Lynx code.

If you have any problems, mail me (address@hidden) and I'll see
what I can do to help.

To run: lynx test.html 2> /dev/null

(redirecting stderr is a good idea - there may be some debugging output
that I still haven't wrapped in TRACE's)

If you use the test.html from the distribution, then that demonstrates
link-rel'd stylesheets.  test4.html doesn't have a linked stylesheet, so
you can use that for testing the -lss command line option
(lynx -lss=test.lss test4.html 2>/dev/null) or the CSSFILE config option.

test.lss is my current personal "stylesheet", mono.lss mimics the default
mono Lynx setup, and test3.html is just a hideous test. 

The code is cleaner than the last set, and a lot nicer too, but there's
still a lot of work to be done.  
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

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