Re: [Lynx-dev] Adding a style

2024-04-04 Thread rbell--- via Lynx-dev
I like my paragraphs indented, so I modify DefaultStyle.c,
make it indent for  and .
Unless I'm mistaken, lynx ignores the role="paragraph", so
lynx should indent them.
Maddeningly, after weeks of not-indenting for such tags, lynx
started.  I have another intermittent problem, lynx displaying a
comment - or not.
Excuse the false alarm.

russell bell



Re: [Lynx-dev] Adding a style

2024-04-04 Thread KIHARA Hideto
>   There is no correct.  I decide what I want.  How do I add a
> style?

FYI. For example, this patch adds two styles
(for pre-format  and  that have style {white-space:pre}).

https://gist.github.com/deton/ebc9d4b4af6c216bd49cdb656a9b0ebc

-- 
KIHARA, Hideto / de...@m1.interq.or.jp




Re: [Lynx-dev] Adding a style

2024-04-03 Thread Thomas Dickey
On Wed, Apr 03, 2024 at 11:08:42AM -0600, rbell--- via Lynx-dev wrote:
> 
>   Quoth mouse:
> 
>   'since there is a spec, there is a well-defined "correct", at
> least to the extent that the spec is properly done.'
> 
>   Quoth https://www.w3.org/Library/src/HTStyle.html (the spec):
>   'The manager doesn't contain any styles - it only provides a
> mechanism for registering styles, looking them up and deleting them.
> That is, it doesn't have any idea of what a style actually looks like
> - as this is highly application dependent,'

to cook: just add water :-)
 
>   It points to an HTStyle.c from 'W3C Sample Code Library' which
> is a lot different from lynx's.

lynx uses an _early_ version of libwww

It was discussed long ago (in the 1990s) whether to use a newer version.
As I recall it, it would have been a lot of (re)work which no one did.

(Look for "libwww" in the mailing list archives)

-- 
Thomas E. Dickey 
https://invisible-island.net


signature.asc
Description: PGP signature


Re: [Lynx-dev] Adding a style

2024-04-03 Thread rbell--- via Lynx-dev


Quoth mouse:

'since there is a spec, there is a well-defined "correct", at
least to the extent that the spec is properly done.'

Quoth https://www.w3.org/Library/src/HTStyle.html (the spec):
'The manager doesn't contain any styles - it only provides a
mechanism for registering styles, looking them up and deleting them.
That is, it doesn't have any idea of what a style actually looks like
- as this is highly application dependent,'

It points to an HTStyle.c from 'W3C Sample Code Library' which
is a lot different from lynx's.

russell bell



Re: [Lynx-dev] Adding a style

2024-04-03 Thread Mouse
> 'That's correct for s in general'

> There is no correct.  I decide what I want.  How do I add a style?

Well, since there is a spec, there is a well-defined `correct', at
least to the extent that the spec is properly done.  (I don't know the
spec well enough myself to know what it says is correct for s in
general.)

That said, you are of course welcome to arrange for the software you
run to interpret HTML (or anything else) any way you please, regardless
of any specs.  But don't be surprised if others are uninterested (in
using it, in helping you arrange it, in interoperating with it,
whatever).

No, I don't know how to add a style to lynx.  I'd probably do more or
less what it sounded as though you did, then treat the crashes you
described as a bug to be debugged.

/~\ The ASCII Mouse
\ / Ribbon Campaign
 X  Against HTMLmo...@rodents-montreal.org
/ \ Email!   7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B



Re: [Lynx-dev] Adding a style

2024-04-03 Thread rbell--- via Lynx-dev
'That's correct for s in general'
There is no correct.  I decide what I want.  How do I add a
style?
You un-answered my question, a waste of everyone's time.

russell bell



Re: [Lynx-dev] Adding a style

2024-04-03 Thread Thorsten Glaser
rbell--- via Lynx-dev dixit:

>   NEJM has started using  to demarcate the
>beginning of a paragraph.  lynx renders this the same as , which
>makes it hard to read.

That’s correct for s in general, though: upon encountering the
start tag, if not at column 1, emit a newline.

Tell NEJM to use the p tag instead.

bye,
//mirabilos
-- 
22:20⎜ The crazy that persists in his craziness becomes a master
22:21⎜ And the distance between the craziness and geniality is
only measured by the success 18:35⎜ "Psychotics are consistently
inconsistent. The essence of sanity is to be inconsistently inconsistent



[Lynx-dev] Adding a style

2024-04-03 Thread rbell--- via Lynx-dev
NEJM has started using  to demarcate the
beginning of a paragraph.  lynx renders this the same as , which
makes it hard to read.  I tried to add a new style, ST_Div, in
WWW/Library/Implementation/HTStyle.h and rely on the fall-through
handling of div in src/HTML.c and src/LYCharUtils.c but the lynx I
build crashes.

russell bell