From: schwarze@mandoc.bsd.lv
To: source@mandoc.bsd.lv
Subject: docbook2mdoc: Make <reference> an alias for <section>.
Date: Thu, 25 Apr 2019 12:58:29 -0500 (EST) [thread overview]
Message-ID: <e3fe878f7f8f598c@fantadrom.bsd.lv> (raw)
Log Message:
-----------
Make <reference> an alias for <section>.
This is not perfect because if <reference> starts with a <title>,
that title is still printed before the NAME section. But at least
the <refentry>s no longer get lumped *into* the <title>.
Issue found by Stephen Gregoratto <dev at sgregoratto dot me>
in Xcomposite(3).
Modified Files:
--------------
docbook2mdoc:
parse.c
statistics.c
Revision Data
-------------
Index: parse.c
===================================================================
RCS file: /home/cvs/mdocml/docbook2mdoc/parse.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -Lparse.c -Lparse.c -u -p -r1.51 -r1.52
--- parse.c
+++ parse.c
@@ -104,6 +104,7 @@ static const struct alias aliases[] = {
{ "phrase", NODE_IGNORE },
{ "primary", NODE_DELETE },
{ "property", NODE_PARAMETER },
+ { "reference", NODE_SECTION },
{ "refsect1", NODE_SECTION },
{ "refsect2", NODE_SECTION },
{ "refsect3", NODE_SECTION },
Index: statistics.c
===================================================================
RCS file: /home/cvs/mdocml/docbook2mdoc/statistics.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -Lstatistics.c -Lstatistics.c -u -p -r1.35 -r1.36
--- statistics.c
+++ statistics.c
@@ -368,6 +368,7 @@ main(int argc, char *argv[])
table_add("ROOT", "part");
table_add("ROOT", "preface");
table_add("ROOT", "refentry");
+ table_add("ROOT", "reference");
table_add("ROOT", "sect1");
table_add("ROOT", "sect2");
table_add("acronym", "TEXT");
@@ -527,6 +528,7 @@ main(int argc, char *argv[])
table_add("refentryinfo", "date");
table_add("refentryinfo", "productname");
table_add("refentrytitle", "TEXT");
+ table_add("reference", "refentry");
table_add("refmeta", "manvolnum");
table_add("refmeta", "refentrytitle");
table_add("refmeta", "refmiscinfo");
--
To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv
reply other threads:[~2019-04-25 17:58 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=e3fe878f7f8f598c@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).