source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* docbook2mdoc: translate <productname> to .Sy
@ 2019-04-16 21:21 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-04-16 21:21 UTC (permalink / raw)
  To: source

Log Message:
-----------
translate <productname> to .Sy

Modified Files:
--------------
    docbook2mdoc:
        docbook2mdoc.c
        node.c
        node.h
        statistics.c

Revision Data
-------------
Index: node.c
===================================================================
RCS file: /home/cvs/mdocml/docbook2mdoc/node.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -Lnode.c -Lnode.c -u -p -r1.21 -r1.22
--- node.c
+++ node.c
@@ -101,6 +101,7 @@ static	const struct nodeprop properties[
 	{ "parameter",		CLASS_LINE },
 	{ "personname",		CLASS_TRANS },
 	{ "preface",		CLASS_BLOCK },
+	{ "productname",	CLASS_LINE },
 	{ "programlisting",	CLASS_NOFILL },
 	{ "prompt",		CLASS_TRANS },
 	{ "pubdate",		CLASS_TRANS },
Index: node.h
===================================================================
RCS file: /home/cvs/mdocml/docbook2mdoc/node.h,v
retrieving revision 1.30
retrieving revision 1.31
diff -Lnode.h -Lnode.h -u -p -r1.30 -r1.31
--- node.h
+++ node.h
@@ -110,6 +110,7 @@ enum	nodeid {
 	NODE_PARAMETER,
 	NODE_PERSONNAME,
 	NODE_PREFACE,
+	NODE_PRODUCTNAME,
 	NODE_PROGRAMLISTING,
 	NODE_PROMPT,
 	NODE_PUBDATE,
Index: docbook2mdoc.c
===================================================================
RCS file: /home/cvs/mdocml/docbook2mdoc/docbook2mdoc.c,v
retrieving revision 1.130
retrieving revision 1.131
diff -Ldocbook2mdoc.c -Ldocbook2mdoc.c -u -p -r1.130 -r1.131
--- docbook2mdoc.c
+++ docbook2mdoc.c
@@ -1184,6 +1184,7 @@ pnode_print(struct format *f, struct pno
 		pnode_printgroup(f, n);
 		break;
 	case NODE_KEYSYM:
+	case NODE_PRODUCTNAME:
 		macro_open(f, "Sy");
 		break;
 	case NODE_LINK:
Index: statistics.c
===================================================================
RCS file: /home/cvs/mdocml/docbook2mdoc/statistics.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -Lstatistics.c -Lstatistics.c -u -p -r1.34 -r1.35
--- statistics.c
+++ statistics.c
@@ -508,6 +508,7 @@ main(int argc, char *argv[])
 		table_add("phrase", "TEXT");
 		table_add("preface", NULL);
 		table_add("primary", NULL);
+		table_add("productname", "TEXT");
 		table_add("programlisting", NULL);
 		table_add("property", "TEXT");
 		table_add("pubdate", "TEXT");
@@ -524,6 +525,7 @@ main(int argc, char *argv[])
 		table_add("refentryinfo", "authorgroup");
 		table_add("refentryinfo", "copyright");
 		table_add("refentryinfo", "date");
+		table_add("refentryinfo", "productname");
 		table_add("refentrytitle", "TEXT");
 		table_add("refmeta", "manvolnum");
 		table_add("refmeta", "refentrytitle");
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-04-16 21:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-16 21:21 docbook2mdoc: translate <productname> to .Sy 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).