tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
* [PATCH docbook2mdoc] Add NODE_CONTRIB, NODE_PRODUCTNAME
@ 2019-03-27  3:52 Stephen Gregoratto
  2019-03-28 17:19 ` Ingo Schwarze
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Gregoratto @ 2019-03-27  3:52 UTC (permalink / raw)
  To: tech

Here are some nodes I found in the wild.

Technically <productname> is used to markup text as 
copyright/trademark/registered, but the Systemd and GTK manuals use it 
to set the "source" argument of TH in man(7). We have no need for it.

<contrib> is a bit odd case. It classifies an <author>'s contributions 
to the program/manual/code etc. Here's an example from GTK:

  <authorgroup>
    <author>
      <contrib>Developer</contrib>
      <firstname>Matthias</firstname>
      <surname>Clasen</surname>
    </author>
  </authorgroup>

I'm setting it to be skipped for now, but if we ever start recording
<author>s we could probably include this.
-- 
Stephen Gregoratto
PGP: 3FC6 3D0E 2801 C348 1C44 2D34 A80C 0F8E 8BAB EC8B


Index: node.h
===================================================================
RCS file: /cvs/docbook2mdoc/node.h,v
retrieving revision 1.4
diff -u -p -r1.4 node.h
--- node.h	26 Mar 2019 22:39:33 -0000	1.4
+++ node.h	27 Mar 2019 03:28:02 -0000
@@ -46,6 +46,7 @@ enum	nodeid {
 	NODE_COLSPEC,
 	NODE_COMMAND,
 	NODE_CONSTANT,
+	NODE_CONTRIB,
 	NODE_COPYRIGHT,
 	NODE_DATE,
 	NODE_EDITOR,
@@ -98,6 +99,7 @@ enum	nodeid {
 	NODE_PARAMETER,
 	NODE_PERSONNAME,
 	NODE_PREFACE,
+	NODE_PRODUCTNAME,
 	NODE_PROGRAMLISTING,
 	NODE_PROMPT,
 	NODE_QUOTE,
Index: parse.c
===================================================================
RCS file: /cvs/docbook2mdoc/parse.c,v
retrieving revision 1.4
diff -u -p -r1.4 parse.c
--- parse.c	26 Mar 2019 22:39:33 -0000	1.4
+++ parse.c	27 Mar 2019 03:28:02 -0000
@@ -64,6 +64,7 @@ static	const struct element elements[] =
 	{ "citetitle",		NODE_CITETITLE },
 	{ "cmdsynopsis",	NODE_CMDSYNOPSIS },
 	{ "code",		NODE_CODE },
+	{ "contrib",		NODE_CONTRIB },
 	{ "colspec",		NODE_COLSPEC },
 	{ "command",		NODE_COMMAND },
 	{ "constant",		NODE_CONSTANT },
@@ -125,6 +126,7 @@ static	const struct element elements[] =
 	{ "phrase",		NODE_IGNORE },
 	{ "preface",		NODE_PREFACE },
 	{ "primary",		NODE_DELETE },
+	{ "productname",	NODE_PRODUCTNAME },
 	{ "programlisting",	NODE_PROGRAMLISTING },
 	{ "prompt",		NODE_PROMPT },
 	{ "quote",		NODE_QUOTE },
--
 To unsubscribe send an email to tech+unsubscribe@mandoc.bsd.lv

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-28 20:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-27  3:52 [PATCH docbook2mdoc] Add NODE_CONTRIB, NODE_PRODUCTNAME Stephen Gregoratto
2019-03-28 17:19 ` Ingo Schwarze
2019-03-28 20:53   ` Ingo Schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).