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