Re: [Lynx-dev] colo(u)red figcaptions

2022-11-01 Thread Thomas Dickey
On Tue, Nov 01, 2022 at 05:22:40AM -0600, rb...@alumni.caltech.edu wrote:
>   'I'd check the diff by using dtd_util to regenerate the header
> files.'
>   dtd_util?

WWW/Library/Implementation/dtd_util.c

(read the makefile, to see how it is used).

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


signature.asc
Description: PGP signature


Re: [Lynx-dev] colo(u)red figcaptions

2022-11-01 Thread rbell--- via Lynx-dev
'I'd check the diff by using dtd_util to regenerate the header
files.'
dtd_util?

russell bell



Re: [Lynx-dev] colo(u)red figcaptions

2022-10-31 Thread Thomas Dickey
On Tue, Oct 25, 2022 at 10:37:28PM -0600, rb...@alumni.caltech.edu wrote:
>   I needed -p0.  Here's the patch - do you want me to do
> something else?

actually, as an attachment would make it easier to extract.

given that, I'd check the diff by using dtd_util to regenerate the
header files.
 
> Index: WWW/Library/Implementation/hdr_HTMLDTD.h
> *** lynx2.9.0dev.10/WWW/Library/Implementation/hdr_HTMLDTD.h  2021-07-15 
> 18:40:16.0 -0600
> --- 
> lynx2.9.0dev.10_patchedforfigcaption/WWW/Library/Implementation/hdr_HTMLDTD.h 
> 2022-10-24 12:30:41.189510975 -0600
...

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


signature.asc
Description: PGP signature


Re: [Lynx-dev] colo(u)red figcaptions

2022-10-25 Thread rbell--- via Lynx-dev
I needed -p0.  Here's the patch - do you want me to do
something else?

Index: WWW/Library/Implementation/hdr_HTMLDTD.h
*** lynx2.9.0dev.10/WWW/Library/Implementation/hdr_HTMLDTD.h2021-07-15 
18:40:16.0 -0600
--- 
lynx2.9.0dev.10_patchedforfigcaption/WWW/Library/Implementation/hdr_HTMLDTD.h   
2022-10-24 12:30:41.189510975 -0600
***
*** 60,65 
--- 60,66 
HTML_EMBED,
HTML_FIELDSET,
HTML_FIG,
+ HTML_FIGCAPTION,
HTML_FIGURE,
HTML_FN,
HTML_FONT,
***
*** 426,431 
--- 427,443 
  #define HTML_FIG_WIDTH   16
  #define HTML_FIG_ATTRIBUTES  17
  
+ #define HTML_FIGCAPTION_ACCESSKEY0
+ #define HTML_FIGCAPTION_ALIGN1
+ #define HTML_FIGCAPTION_CLASS2
+ #define HTML_FIGCAPTION_CLEAR3
+ #define HTML_FIGCAPTION_DIR  4
+ #define HTML_FIGCAPTION_ID   5
+ #define HTML_FIGCAPTION_LANG 6
+ #define HTML_FIGCAPTION_STYLE7
+ #define HTML_FIGCAPTION_TITLE8
+ #define HTML_FIGCAPTION_ATTRIBUTES   9
+ 
  #define HTML_FONT_CLASS   0
  #define HTML_FONT_CLEAR   1
  #define HTML_FONT_COLOR   2
Index: WWW/Library/Implementation/src0_HTMLDTD.h
*** lynx2.9.0dev.10/WWW/Library/Implementation/src0_HTMLDTD.h   2021-07-23 
15:36:23.0 -0600
--- 
lynx2.9.0dev.10_patchedforfigcaption/WWW/Library/Implementation/src0_HTMLDTD.h  
2022-10-24 12:28:06.688442504 -0600
***
*** 50,55 
--- 50,56 
  #define T_EMBED 
0x02000,0x8F107,0x8FFF7,0xB6FBF,0xB7FBF,0x1FF7F,0x1
  #define T_FIELDSET  
0x00200,0x8FB4F,0x8FF7F,0x186787,0x1B7FF7,0x8805F,0x0
  #define T_FIG   
0x00200,0x0FB00,0x8,0x136680,0x1B6FBF,0x8834F,0x0
+ #define T_FIGCAPTION
0x00100,0x0B04F,0x8,0x106A00,0x1B6FA7,0x8035F,0x0
  #define T_FIGURE
0x00200,0x8FBCF,0x8,0x1B66A0,0x1B7FFF,0x8031F,0x4
  #define T_FN
0x00200,0x8FBCF,0x8,0x1B6680,0x1B7EBF,0x8114F,0x0
  #define T_FONT  
0x1,0x8B04F,0x8,0xB778F,0xF7FBF,0x1,0x00014
***
*** 538,543 
--- 539,559 
{ 0, 0 },
  };
  
+ static const attr FIGCAPTION_attr_list[] = {
+   { "ACCESSKEY" T(N) },
+   { "CLEAR" T(N) },
+   { 0   T(N) }/* Terminate list */
+ };
+ 
+ static const AttrType FIGCAPTION_attr_type[] = {
+   { ATTR_TYPE(align) },
+   { ATTR_TYPE(core) },
+   { ATTR_TYPE(events) },
+   { ATTR_TYPE(i18n) },
+   { ATTR_TYPE(FIGCAPTION) },
+   { 0, 0 },
+ };
+ 
  static const attr FONT_attr_list[] = {
{ "CLEAR" T(N) },
{ "COLOR" T(N) },
***
*** 1529,1534 
--- 1545,1563 
{ 0   T(N) }/* Terminate list */
  };
  
+ static const attr FIGCAPTION_attr[] = {/* FIGCAPTION attributes */
+   { "ACCESSKEY" T(N) },
+   { "ALIGN" T(N) },
+   { "CLASS" T(c) },
+   { "CLEAR" T(N) },
+   { "DIR"   T(N) },
+   { "ID"T(i) },
+   { "LANG"  T(N) },
+   { "STYLE" T(N) },
+   { "TITLE" T(N) },
+   { 0   T(N) }/* Terminate list */
+ };
+ 
  static const attr FONT_attr[] = {   /* BASEFONT attributes */
{ "CLASS" T(c) },
{ "CLEAR" T(N) },
***
*** 2207,2212 
--- 2236,2242 
  #undef BR
  #undef BUTTON
  #undef CAPTION
+ #undef FIGCAPTION
  #undef CENTER
  #undef CITE
  #undef CODE
***
*** 2470,2475 
--- 2500,2508 
  /* This one will be used as a temporary substitute within the parser when
 it has been signalled to parse OBJECT content as MIXED. - kw */
   { P(OBJECT),  ATTR_DATA(OBJECT),  SGML_MIXED,   T_OBJECT_PCDATA, 0, 
0},
+  { P(FIGCAPTION),  ATTR_DATA(FIGCAPTION),  SGML_MIXED,   T_CAPTION, 0, 0},
+  { P(LEGEND),  ATTR_DATA(FIGCAPTION),  SGML_MIXED,   T_LEGEND, 0, 0},
+ 
  };
  /* *INDENT-ON* */
  
Index: WWW/Library/Implementation/src0_HTMLDTD.txt
*** lynx2.9.0dev.10/WWW/Library/Implementation/src0_HTMLDTD.txt 2021-07-23 
15:36:20.0 -0600
--- 
lynx2.9.0dev.10_patchedforfigcaption/WWW/Library/Implementation/src0_HTMLDTD.txt
2022-10-24 11:52:10.762395289 -0600
***
*** 528,533 
--- 528,539 
5:2:SRC
6:0:TYPE
7:0:WRAP
+ 
+   60:FIGCAPTION
+   2 attributes:
+   0:0:ACCESSKEY
+   1:0:CLEAR
+ 
  128 tags
0:A
justify
***
*** 2463,2468 
--- 2469,2475 
events
i18n
CAPTION
+   FIGCAPTION
contents: SGML_MIXED
tagclass: EMlike
contains: FONTlike EMlike MATHlike Alike SELECTlike BRlike 
APPLETlike 

Re: [Lynx-dev] colo(u)red figcaptions

2022-10-25 Thread Thomas Dickey
On Mon, Oct 24, 2022 at 10:11:35PM -0600, rbell--- via Lynx-dev wrote:
>   I found my mistake.  How do I create a patch?  I tried:
> 
>   diff -ruN lynx2.9.0dev.10 lynx2.9.0dev.10_patchedforfigcaption  > patch
> 
> but it looks different from official patches - and it doesn't work.

I use a script (an old version of makepatch, pre-GPL, with my fixes),

https://invisible-island.net/scripts/readme.html#item:makepatch

to get the "Index" lines, in a script which does this

makepatch -diff "diff -u" $1 $2  >$tmp

but diff -Naur will provide equivalent diff's

Perhaps (on applying the patch), you didn't provide the -p1 option.

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


signature.asc
Description: PGP signature


Re: [Lynx-dev] colo(u)red figcaptions

2022-10-23 Thread Thomas Dickey
On Fri, Oct 21, 2022 at 08:00:14AM -0600, rbell--- via Lynx-dev wrote:
>   A patch!  Just the thing.  I searched for CAPTION in the
> source, found it in:
> 
>   WWW/Library/Implementation/src1_HTMLDTD.txt
>   WWW/Library/Implementation/hdr_HTMLDTD.h
>   WWW/Library/Implementation/src0_HTMLDTD.txt
>   WWW/Library/Implementation/src0_HTMLDTD.h
>   WWW/Library/Implementation/src1_HTMLDTD.h
>   src/HTML.h
>   src/HTML.c
>   src/LYCharUtils.c
> 
> 
> copied its model for FIGCAPTION, built without complaint, but no
> difference.  I must have missed something.

the above hints that you went in the right direction,
but without a diff/patch that others can inspect,
no one can tell if you reached your destination.

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


signature.asc
Description: PGP signature


[Lynx-dev] colo(u)red figcaptions

2022-10-21 Thread rbell--- via Lynx-dev
A patch!  Just the thing.  I searched for CAPTION in the
source, found it in:

WWW/Library/Implementation/src1_HTMLDTD.txt
WWW/Library/Implementation/hdr_HTMLDTD.h
WWW/Library/Implementation/src0_HTMLDTD.txt
WWW/Library/Implementation/src0_HTMLDTD.h
WWW/Library/Implementation/src1_HTMLDTD.h
src/HTML.h
src/HTML.c
src/LYCharUtils.c


copied its model for FIGCAPTION, built without complaint, but no
difference.  I must have missed something.

russell bell