source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: schwarze@mandoc.bsd.lv
To: source@mandoc.bsd.lv
Subject: docbook2mdoc: translate <productname> to .Sy
Date: Tue, 16 Apr 2019 16:21:57 -0500 (EST)	[thread overview]
Message-ID: <e3fdf157861d7ed9@fantadrom.bsd.lv> (raw)

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

                 reply	other threads:[~2019-04-16 21:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e3fdf157861d7ed9@fantadrom.bsd.lv \
    --to=schwarze@mandoc.bsd.lv \
    --cc=source@mandoc.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).