CVS log for docbook2mdoc/docbook2mdoc.c

[BACK] Up to [cvsweb.bsd.lv] / docbook2mdoc

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.148 / (download) - annotate - [select for diffs], Thu May 2 04:15:40 2019 UTC (4 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_1_0, HEAD
Changes since 1.147: +20 -10 lines
Diff to previous 1.147 (unified) to selected 1.134 (unified)

Yet more whitespace improvements:
* Do not forcefully break a macro line after closing delimiters,
let it continue when needed.
* In no-fill context, use .No to append text to a macro line when needed.
* In no-fill context, allow .Pf as a child macro when needed.
* Use macro_open() for .Ns, with the proper flags before and after.

Revision 1.147 / (download) - annotate - [select for diffs], Wed May 1 17:20:47 2019 UTC (4 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.146: +4 -2 lines
Diff to previous 1.146 (unified) to selected 1.134 (unified)

More whitespace improvements:
* Skip XML line breaks right after opening tags.
* When processing a text node, check whether a paragraph break is needed
before starting more detailed checks regarding macro arguments.
* Break the mdoc line at the beginning of a new XML line
unless a macro line is open and wants more arguments.
* Do not print "\c" escapes on macro lines.

Revision 1.146 / (download) - annotate - [select for diffs], Wed May 1 15:05:39 2019 UTC (4 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.145: +10 -2 lines
Diff to previous 1.145 (unified) to selected 1.134 (unified)

In no-fill context, do not break the output line when a text node
on a text line is followed by a macro node.

Revision 1.145 / (download) - annotate - [select for diffs], Wed May 1 12:52:05 2019 UTC (4 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.144: +12 -3 lines
Diff to previous 1.144 (unified) to selected 1.134 (unified)

handle <funcparams> inside <paramdef> inside <funcprototype>
(used for giving full function prototypes inside parameter lists
of functions taking function pointer arguments)
by enclosing them in parentheses inside the .Fa macro

Revision 1.144 / (download) - annotate - [select for diffs], Wed May 1 11:34:19 2019 UTC (4 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.143: +10 -1 lines
Diff to previous 1.143 (unified) to selected 1.134 (unified)

print commas between Copyright years

Revision 1.143 / (download) - annotate - [select for diffs], Sun Apr 28 19:59:01 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_0_2
Changes since 1.142: +4 -126 lines
Diff to previous 1.142 (unified) to selected 1.134 (unified)

move reshuffling of document info and meta nodes to the reorg module

Revision 1.142 / (download) - annotate - [select for diffs], Sun Apr 28 19:05:11 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.141: +12 -50 lines
Diff to previous 1.141 (unified) to selected 1.134 (unified)

move default section titles to the reorg module

Revision 1.141 / (download) - annotate - [select for diffs], Sun Apr 28 17:10:06 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.140: +20 -59 lines
Diff to previous 1.140 (unified) to selected 1.134 (unified)

Start a reorg module, to edit and move around nodes between parsing
and formatting.  This helps because using queue macros is prone to
bugs, but inspecting the resulting trees with a C debugger is quite
hard.  Using -T tree is much easier.

Revision 1.140 / (download) - annotate - [select for diffs], Sun Apr 28 15:32:05 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.139: +2 -4 lines
Diff to previous 1.139 (unified) to selected 1.134 (unified)

provide a simple function to generate a text node

Revision 1.139 / (download) - annotate - [select for diffs], Sun Apr 28 15:03:28 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.138: +6 -17 lines
Diff to previous 1.138 (unified) to selected 1.134 (unified)

In this program, there is never a need to survive memory allocation
failure, and there are many places allocating memory.  Consequently,
the code can be simplified providing memory allocation functions
that error out on failure, in the conventional way.

Revision 1.138 / (download) - annotate - [select for diffs], Wed Apr 24 18:38:02 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_0_1
Changes since 1.137: +19 -15 lines
Diff to previous 1.137 (unified) to selected 1.134 (unified)

Remove some needless output line breaks between text nodes.
Some of them were incorrect in no-fill mode.

Revision 1.137 / (download) - annotate - [select for diffs], Wed Apr 24 15:20:12 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.136: +2 -2 lines
Diff to previous 1.136 (unified) to selected 1.134 (unified)

preserve line breaks in no-fill elements
even when lines start with nodes of CLASS_TEXT
that are not NODE_TEXT, for example NODE_ESCAPE

Revision 1.136 / (download) - annotate - [select for diffs], Wed Apr 24 14:56:51 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.135: +6 -4 lines
Diff to previous 1.135 (unified) to selected 1.134 (unified)

keep consecutive text nodes together in macro arguments

Revision 1.135 / (download) - annotate - [select for diffs], Wed Apr 24 14:03:21 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.134: +6 -1 lines
Diff to previous 1.134 (unified)

request a paragraph break after displays and after non-compact lists

Revision 1.134 / (download) - annotate - [selected], Tue Apr 23 22:25:28 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.133: +3 -1 lines
Diff to previous 1.133 (unified)

handle <info> like <refentryinfo> inside the document element
and inside <refentry>; issue found in OpenGL-Refpages
by Stephen Gregoratto <dev at sgregoratto dot me>

Revision 1.133 / (download) - annotate - [select for diffs], Sun Apr 21 15:24:05 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.132: +8 -6 lines
Diff to previous 1.132 (unified) to selected 1.134 (unified)

When <term> contains a macro-generating element,
the subsequent comma needs spacing.
Fixing a bug reported by Jan Stary <hans at stare dot cz>.

Revision 1.132 / (download) - annotate - [select for diffs], Sun Apr 21 14:48:11 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.131: +54 -23 lines
Diff to previous 1.131 (unified) to selected 1.134 (unified)

Implement <void> child of <funcprototype>.
Also treat <tag> just like <sgmltag> and <markup>.
Some small parts of this patch were sent in by
Stephen Gregoratto <dev at sgregoratto dot me>.

Revision 1.131 / (download) - annotate - [select for diffs], Tue Apr 16 21:21:27 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_0_0
Changes since 1.130: +2 -1 lines
Diff to previous 1.130 (unified) to selected 1.134 (unified)

translate <productname> to .Sy

Revision 1.130 / (download) - annotate - [select for diffs], Tue Apr 16 14:26:27 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.129: +63 -42 lines
Diff to previous 1.129 (unified) to selected 1.134 (unified)

Reorganize printing of .Pp macro lines, much improved formatting:
Refrain from manual tree inspection.
Instead, let <para> and other nodes keep paragraph state
and automatically emit .Pp when needed before printing text or macros.

Revision 1.129 / (download) - annotate - [select for diffs], Mon Apr 15 19:15:19 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.128: +16 -1 lines
Diff to previous 1.128 (unified) to selected 1.134 (unified)

Minimal translation of <xref> to .Sx.
This might need refinement in the future, but that won't be easy because
the element is horribly underspecified and the usage is practice is very
inconsistent.

Revision 1.128 / (download) - annotate - [select for diffs], Mon Apr 15 00:34:15 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.127: +36 -1 lines
Diff to previous 1.127 (unified) to selected 1.134 (unified)

The <olink> element is woefully underspecified, so the various
attributes may be used quite differently in different documents,
but let's try a basic translation anyway.

Revision 1.127 / (download) - annotate - [select for diffs], Sun Apr 14 23:07:05 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.126: +12 -3 lines
Diff to previous 1.126 (unified) to selected 1.134 (unified)

ignore <quote> around <filename>

Revision 1.126 / (download) - annotate - [select for diffs], Sun Apr 14 22:37:56 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.125: +19 -1 lines
Diff to previous 1.125 (unified) to selected 1.134 (unified)

Rudimentary implementation of <imagedata> by printing the filename.
Ignore the wrappers <caption>, <figure>, <imageobject>, <mediaobject>.

Revision 1.125 / (download) - annotate - [select for diffs], Sun Apr 14 21:11:04 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.124: +8 -1 lines
Diff to previous 1.124 (unified) to selected 1.134 (unified)

The is no perfect way to render <footnote> in mdoc(7).
For now, use .Bo/.Bc as a full block.

Revision 1.124 / (download) - annotate - [select for diffs], Sun Apr 14 20:13:25 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.123: +14 -1 lines
Diff to previous 1.123 (unified) to selected 1.134 (unified)

render <superscript> and <subscript> with \(ha and _

Revision 1.123 / (download) - annotate - [select for diffs], Sun Apr 14 19:29:50 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.122: +7 -3 lines
Diff to previous 1.122 (unified) to selected 1.134 (unified)

do not emit .Em or .Fl right before another macro

Revision 1.122 / (download) - annotate - [select for diffs], Sun Apr 14 18:28:41 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.121: +8 -4 lines
Diff to previous 1.121 (unified) to selected 1.134 (unified)

avoid overquoting when <literal> is nested inside <quote>

Revision 1.121 / (download) - annotate - [select for diffs], Sun Apr 14 18:07:35 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.120: +23 -14 lines
Diff to previous 1.120 (unified) to selected 1.134 (unified)

Minor improvements to the handling of some meta-information:
* Translate <simplesect> and <legalnotice> to .Ss or lower.
* Do not uppercase high-level <note> and similar elements.
* Handle <subtitle> like stand-alone <title>.
* Handle <editor> by the <author> handler function.
* Make <copyright> print "Copyright (C)".
* Ignore some transparent nodes.

Revision 1.120 / (download) - annotate - [select for diffs], Sun Apr 14 14:00:16 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.119: +1 -4 lines
Diff to previous 1.119 (unified) to selected 1.134 (unified)

Minor improvements for some inline elements:
* New aliases <keycap> and <property>.
* Make <application> an alias for <command>.
* Ignore <keycode> and <returnvalue>.

Revision 1.119 / (download) - annotate - [select for diffs], Sun Apr 14 12:38:33 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.118: +146 -12 lines
Diff to previous 1.118 (unified) to selected 1.134 (unified)

Move content from <bookinfo>, <articleinfo>, <refentryinfo>, and <refmeta>
that is not used in the prologue to the AUTHORS section.

Revision 1.118 / (download) - annotate - [select for diffs], Sat Apr 13 15:54:45 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.117: +20 -1 lines
Diff to previous 1.117 (unified) to selected 1.134 (unified)

rudimentary implementation of <systemitem>

Revision 1.117 / (download) - annotate - [select for diffs], Sat Apr 13 15:13:31 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.116: +44 -42 lines
Diff to previous 1.116 (unified) to selected 1.134 (unified)

Improve formatting of <arg> and <group>:
* Respect the repeat attribute even if there is a child macro.
* Mark up all children of <group>, not just the first.
* Implement the repeat attribute for <group>.
* Do the proper was_impl dance for <group>.

Revision 1.116 / (download) - annotate - [select for diffs], Sat Apr 13 13:06:35 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.115: +64 -54 lines
Diff to previous 1.115 (unified) to selected 1.134 (unified)

Improve the proplogue:
* Use <pubdate> or <date> for .Dd.
* Clean up the way how <title> from <bookinfo> is used for .Nd.
* Treat <articleinfo> just like <bookinfo>.

Revision 1.115 / (download) - annotate - [select for diffs], Fri Apr 12 21:37:07 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.114: +38 -11 lines
Diff to previous 1.114 (unified) to selected 1.134 (unified)

Author node polishing:
* In the AUTHORS section, set -nosplit mode.
* In <author>, do not recurse for <email>: it is pointless because it
cannot reasonably contain child elements, but it can trigger assertions.
* For standalone <email>, do the standard was_impl dance.
* Treat <othercredit> just like <author>.

Revision 1.114 / (download) - annotate - [select for diffs], Fri Apr 12 19:14:50 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.113: +2 -2 lines
Diff to previous 1.113 (unified) to selected 1.134 (unified)

Implement lint and tree dump output modes.
Thanks to the previously committed node property infrastructure
in node.c, this needs only 110 lines of code (including the license
and the documentation).

Revision 1.113 / (download) - annotate - [select for diffs], Fri Apr 12 16:40:53 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.112: +13 -7 lines
Diff to previous 1.112 (unified) to selected 1.134 (unified)

Infrastructure to access node properties
that can be used by both the parser and the formatter.
Use it to decide whether a text node needs .Pf before a macro,
whether the first word of a text node needs to be split off after
a macro, and whether a macro node can suppress the SPACE flag.

Revision 1.112 / (download) - annotate - [select for diffs], Fri Apr 12 12:07:26 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.111: +25 -12 lines
Diff to previous 1.111 (unified) to selected 1.134 (unified)

Finally get rid of the "sv" variable in pnode_print().
Switch <literal> and <quote> between explicit and implicit enclosures
depending on whether we are already inside an implicit context.

Revision 1.111 / (download) - annotate - [select for diffs], Fri Apr 12 11:37:09 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.110: +6 -14 lines
Diff to previous 1.110 (unified) to selected 1.134 (unified)

There is no need to ever use the eqn(7) inline syntax ($$):
Its purpose it to inline eqn(7) source code in the *input* file.
On the *output* side, equations are inlined by default.
To display them, the .EQ block needs to be wrapped in .Bd.
This patch gets rid of another user of "sv".

Revision 1.110 / (download) - annotate - [select for diffs], Fri Apr 12 11:19:31 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.109: +24 -19 lines
Diff to previous 1.109 (unified) to selected 1.134 (unified)

Clean up the <refnamediv> mess to get rid of the worst "sv" user:
Explicit loop over <refname> elements in <refnamediv>.
Treat stray <refname> elements just like <command>.

Revision 1.109 / (download) - annotate - [select for diffs], Fri Apr 12 10:34:48 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.108: +17 -7 lines
Diff to previous 1.108 (unified) to selected 1.134 (unified)

Improve <link linkend="..."> formatting.
Take markup of the content into account.
Do not break a partial implicit macro line, if one is open.
Do not let the parentheses extend too far.

Revision 1.108 / (download) - annotate - [select for diffs], Fri Apr 12 09:39:21 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.107: +21 -10 lines
Diff to previous 1.107 (unified) to selected 1.134 (unified)

Fix an assertion failure when content inside a term causes an output
line break.  The solution isn't perfect: content from the <term>
still leaks into the .It body, but fixing *that* is a much more
complex task than merely fixing the assertion.

Revision 1.107 / (download) - annotate - [select for diffs], Fri Apr 12 08:48:16 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.106: +17 -36 lines
Diff to previous 1.106 (unified) to selected 1.134 (unified)

Move escaping of control characters and backslashes on text lines
to print_text() such that it works for all text lines.

In pnode_printtext(), use macro_addarg() or print_text() to get the
required escaping.  On the other hand, there is no need to handle
linefeed characters because these can no longer occur in text nodes.

Stephen Gregoratto <dev at sgregoratto dot me>
reported that escaping was incomplete in some cases.

Revision 1.106 / (download) - annotate - [select for diffs], Fri Apr 12 07:05:19 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.105: +4 -4 lines
Diff to previous 1.105 (unified) to selected 1.134 (unified)

handle <computeroutput> and <markup>;
patch from Stephen Gregoratto <dev at sgregoratto dot me>
who found that both are frequently used in the doclifter manpage

Revision 1.105 / (download) - annotate - [select for diffs], Fri Apr 12 04:17:11 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.104: +8 -2 lines
Diff to previous 1.104 (unified) to selected 1.134 (unified)

Do not include literal linefeed characters in text nodes;
instead, let the parser split them into two text nodes.

For now, let the formatter start text nodes preceded by whitespace
on new output lines, which is a crude way of preserving input line
breaks and making sure output text lines are limited to reasonable
length.

Revision 1.104 / (download) - annotate - [select for diffs], Fri Apr 12 03:38:09 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.103: +4 -2 lines
Diff to previous 1.103 (unified) to selected 1.134 (unified)

Outside <funcprototype>, format <paramdef> and <parameter> in-line
rather than stand-alone.
While many potential assertion failures remain, this patch fixes
the last remaining assertion that actually occurs in Xenocara.

Revision 1.103 / (download) - annotate - [select for diffs], Thu Apr 11 04:23:22 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.102: +80 -47 lines
Diff to previous 1.102 (unified) to selected 1.134 (unified)

Introduce FMT_* formatter flags to control what can be added to the
current macro line.  Move trailing punctuation handling to the text
formatter, allowing elimination of the function macro_closepunct()
and of the "real" and "bsz" members from struct node.
Substantial functional improvements, yet minus 25 lines of code.

Revision 1.102 / (download) - annotate - [select for diffs], Wed Apr 10 14:37:32 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.101: +9 -9 lines
Diff to previous 1.101 (unified) to selected 1.134 (unified)

Last instance of conistent "struct pnode *nc, *nn" variable naming.
While the previous commit caused no binary change, this one does,
but only because one variable serving two different purposes
is split into two.  Still no functional change.

Revision 1.101 / (download) - annotate - [select for diffs], Wed Apr 10 14:22:37 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.100: +282 -282 lines
Diff to previous 1.100 (unified) to selected 1.134 (unified)

Consitently use for function arguments:
struct parse *p, struct format *f, struct pnode *n, struct pattr *a

Consistently use struct pnode *nc, *nn, *np
for child, next, and previous nodes, respectively.

I admit this makes commit history a bit harder to inspect,
but i think seeing at once what variables mean is worth it.

Revision 1.100 / (download) - annotate - [select for diffs], Sun Apr 7 19:33:27 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.99: +14 -5 lines
Diff to previous 1.99 (unified) to selected 1.134 (unified)

handle <appendix>, <article>, <book>, and <legalnotice> similar to <section>

Revision 1.99 / (download) - annotate - [select for diffs], Sun Apr 7 18:51:53 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.98: +6 -3 lines
Diff to previous 1.98 (unified) to selected 1.134 (unified)

handle glossaries just like variablelists

Revision 1.98 / (download) - annotate - [select for diffs], Sun Apr 7 17:55:18 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.97: +5 -1 lines
Diff to previous 1.97 (unified) to selected 1.134 (unified)

render <blockquote> as .Bd -ragged -offset indent

Revision 1.97 / (download) - annotate - [select for diffs], Sun Apr 7 17:42:36 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.96: +9 -5 lines
Diff to previous 1.96 (unified) to selected 1.134 (unified)

do not access null pointers when the document element is <title>

Revision 1.96 / (download) - annotate - [select for diffs], Sun Apr 7 17:00:56 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.95: +39 -7 lines
Diff to previous 1.95 (unified) to selected 1.134 (unified)

better handling of <link> and <ulink> elements
including endterm=, linkend=, url=, and xlink:href= attributes

Revision 1.95 / (download) - annotate - [select for diffs], Sun Apr 7 15:06:56 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.94: +7 -1 lines
Diff to previous 1.94 (unified) to selected 1.134 (unified)

some nodes never continue an existing macro line

Revision 1.94 / (download) - annotate - [select for diffs], Sun Apr 7 14:49:26 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.93: +15 -1 lines
Diff to previous 1.93 (unified) to selected 1.134 (unified)

handle preceding a macro without intervening whitespace

Revision 1.93 / (download) - annotate - [select for diffs], Sun Apr 7 13:16:21 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.92: +56 -51 lines
Diff to previous 1.92 (unified) to selected 1.134 (unified)

Move printing of text nodes out of pnode_print() into a dedicated
function, like for all other node types that require a substantial
amount of code.  No functional change.

Revision 1.92 / (download) - annotate - [select for diffs], Sat Apr 6 22:37:57 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.91: +5 -3 lines
Diff to previous 1.91 (unified) to selected 1.134 (unified)

Store the information whether a node is preceded by whitespace
into the node tree.  Use that information in the formatter
to suppress the insertion of whitespace
in text-text, macro-text, and macro-macro node sequences.

Text-macro sequences are not yet handled.  They are more complicated
because they require emitting a .Pf macro as part of a text node
depending on the spacing properties of the *following* macro node.

Revision 1.91 / (download) - annotate - [select for diffs], Wed Apr 3 18:52:40 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.90: +21 -2 lines
Diff to previous 1.90 (unified) to selected 1.134 (unified)

rudimentary implementation of <simplelist>

Revision 1.90 / (download) - annotate - [select for diffs], Wed Apr 3 17:53:02 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.89: +7 -15 lines
Diff to previous 1.89 (unified) to selected 1.134 (unified)

Various in-line elements:
Translate <errorname> to .Er.
Translate <sgmltag> to .Ic.
Translate <literal> to .Ql, avoiding .Li.
Map <code> and <userinput> to <literal>.
Map <structname> to <type>.
Map <structfield> to <parameter>.

Revision 1.89 / (download) - annotate - [select for diffs], Wed Apr 3 16:52:51 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.88: +1 -4 lines
Diff to previous 1.88 (unified) to selected 1.134 (unified)

do not abort(3) when there is more than one <refmeta>

Revision 1.88 / (download) - annotate - [select for diffs], Wed Apr 3 15:59:31 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.87: +3 -1 lines
Diff to previous 1.87 (unified) to selected 1.134 (unified)

treat <synopsis> as a literal display

Revision 1.87 / (download) - annotate - [select for diffs], Wed Apr 3 15:24:25 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.86: +2 -1 lines
Diff to previous 1.86 (unified) to selected 1.134 (unified)

translate <paramdef> to .Fa even outside <funcprototype>

Revision 1.86 / (download) - annotate - [select for diffs], Wed Apr 3 15:05:08 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.85: +13 -21 lines
Diff to previous 1.85 (unified) to selected 1.134 (unified)

Make <funcdef> more robust:
If the first child is text, use it for .Ft,
then use all remaining children for .Fo.

Make <funcprototype> more robust:
Use all children but the first <funcdef> for .Fa.

Revision 1.85 / (download) - annotate - [select for diffs], Wed Apr 3 14:02:07 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.84: +2 -5 lines
Diff to previous 1.84 (unified) to selected 1.134 (unified)

Do not handle <varlistentry> in pnode_print()
because it generates .It which must not occur outside .Bl.

Revision 1.84 / (download) - annotate - [select for diffs], Wed Apr 3 13:42:35 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.83: +2 -3 lines
Diff to previous 1.83 (unified) to selected 1.134 (unified)

Improve robustness by allowing macro_close() in any state.
This is relevant because pnode_print() may change state.

Revision 1.83 / (download) - annotate - [select for diffs], Wed Apr 3 12:29:47 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.82: +36 -12 lines
Diff to previous 1.82 (unified) to selected 1.134 (unified)

print tables containing two columns as .Bl -tag

Revision 1.82 / (download) - annotate - [select for diffs], Wed Apr 3 11:46:09 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.81: +38 -12 lines
Diff to previous 1.81 (unified) to selected 1.134 (unified)

Prints tables containing only one column as .Bl -bullet -compact.
The number of columns is taken from the "cols" attribute.

No neat to treat <informaltable> separately from <table>;
the only difference is whether or not it has a title.

Treat <table> as transparent and handle <tgroup> instead.
The advantages are that <title> gets a generic handler
which also works in other contexts
and that other children of <table> are now covered as well.

Revision 1.81 / (download) - annotate - [select for diffs], Tue Apr 2 17:06:50 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.80: +1 -2 lines
Diff to previous 1.80 (unified) to selected 1.134 (unified)

handle trailing delimiters after <citerefentry>/.Xr;
bug reported by Stephen Gregoratto <dev at sgregoratto dot me>

Revision 1.80 / (download) - annotate - [select for diffs], Tue Apr 2 16:24:23 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.79: +11 -1 lines
Diff to previous 1.79 (unified) to selected 1.134 (unified)

use the idiom ".An Name Aq Mt email" for author email addresses;
issue reported by Stephen Gregoratto <dev at sgregoratto dot me>

Revision 1.79 / (download) - annotate - [select for diffs], Tue Apr 2 15:53:02 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.78: +8 -1 lines
Diff to previous 1.78 (unified) to selected 1.134 (unified)

Translate XML character entity references to roff character escape sequences.
Missing feature reported by Stephen Gregoratto <dev at sgregoratto dot me>.

Remaining known issues:
* Whitespace handling isn't perfect yet.
* Numeric character references aren't handled yet.
* The list of entities is still very incomplete.
* When it grows longer, we may have to switch to binary search.
* Local entities declared in the DTD are not yet handled.

Revision 1.78 / (download) - annotate - [select for diffs], Thu Mar 28 20:41:33 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.77: +64 -21 lines
Diff to previous 1.77 (unified) to selected 1.134 (unified)

Implement a formatter for <author> elements,
handling <contrib>, <personname>, <firstname>, <othername>, <surname>,
as well as arbitrary children properly.

This required minor work on the formatting infrastructure:
Improve macro_addnode() such that it also handles text nodes.
Add a companion function print_textnode().
Let print_text() optionally work without ARG_SPACE.

Triggered by a report from Stephen Gregoratto <dev at sgregoratto
dot me> that and how GTK documentation uses <contrib>.

Revision 1.77 / (download) - annotate - [select for diffs], Tue Mar 26 22:39:33 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.76: +1 -3 lines
Diff to previous 1.76 (unified) to selected 1.134 (unified)

Provide a way to exclude elements including their children from the tree
and use that for <anchor>, <indexterm>, <primary>, and <secondary>.

Revision 1.76 / (download) - annotate - [select for diffs], Tue Mar 26 21:52:09 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.75: +1 -4 lines
Diff to previous 1.75 (unified) to selected 1.134 (unified)

mark the first seven elements as ignored,
shortening enum nodeid, and in one case even pnode_print()

Revision 1.75 / (download) - annotate - [select for diffs], Tue Mar 26 19:17:29 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.74: +2 -202 lines
Diff to previous 1.74 (unified) to selected 1.134 (unified)

The file docbook2mdoc.c is still large,
so split out the macro line formatter,
which is quite self-contained.

Revision 1.74 / (download) - annotate - [select for diffs], Tue Mar 26 18:32:07 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.73: +56 -645 lines
Diff to previous 1.73 (unified) to selected 1.134 (unified)

The program docbook2mdoc(1) has become large enough that splitting
it into a number of logical components makes sense: node tree,
parser, formatter, each with interface and implementation, and the
main program.  That way, it becomes easier to see what interacts
with what, and what is independent of what.

Revision 1.73 / (download) - annotate - [select for diffs], Mon Mar 25 23:14:44 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.72: +17 -33 lines
Diff to previous 1.72 (unified) to selected 1.134 (unified)

Various parser simplifications and improvements.

Delete the redundant member "node" of struct parse.
The same is already available from cur->node.

No need to check in xml_char() whether an element is open.
Text outside the document element results in expat errors "not
well-formed (invalid token)" or "junk after document element"
and the function xml_char() is not called.

No need to check in xml_elem_end() whether an element is open.
Bogus closing tags result in expat errors "not well-formed (invalid
token)" or "mismatched tag" and the function xml_elem_end() is not
called.

In xml_elem_start(): no point in skipping the element name check
for the document element; and the error error "multiple refentries"
can no longer happen due to earlier cleanups.

Revision 1.72 / (download) - annotate - [select for diffs], Mon Mar 25 17:28:32 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.71: +128 -139 lines
Diff to previous 1.71 (unified) to selected 1.134 (unified)

For macro_addarg(), macro_addnode(), and macro_nodeline(), provide
a flag ARG_SINGLE to request quoting of strings containing whitespace.
Use it for .Dt, .Fa, .Fo, .Nm, and .Xr.

Do not \&-escape macros in quoted strings.
Escape quote characters in macro arguments.
NUL-terminate the content of text nodes.
Eliminate the awkward "bufappend()" global output buffer.
Simplify and improve handling of <paramdef>.

Substantial functional improvements, easier to read, yet minus 20 LOC.

Revision 1.71 / (download) - annotate - [select for diffs], Sun Mar 24 23:48:58 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.70: +37 -44 lines
Diff to previous 1.70 (unified) to selected 1.134 (unified)

To avoid use after free, use TAILQ_FOREACH_SAFE(3) rather than
TAILQ_FOREACH(3) when deleting list elements during the iteration.
Factor out some repeated code into a new function pnode_printtitle().

Where pnode_print() calls per-element pnode_print*() functions,
call exactly one function per element and do everything that is
required inside, making the huge function pnode_print() slightly
smaller and the various pnode_print*() more self-contained.
In particular, call pnode_unlinksub() as close as possible to the
place where the processing justifying the deletion was done.

Revision 1.70 / (download) - annotate - [select for diffs], Sun Mar 24 21:00:11 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.69: +24 -9 lines
Diff to previous 1.69 (unified) to selected 1.134 (unified)

Avoid reckless use of low-level stdio output functions like putchar(3),
puts(3), and fputs(3) in high-level formatting code.  For clarity
and robustness, be explicit whether we are printing to a text line
with print_text() or to a macro line with macro_addarg().

While here, fix NODE_REFNAME formatting which i broke previously.

For now, leave MathML to eqn(7) translation alone.  Usually, that
happens in .EQ blocks, i.e. writing text lines.  But it can also
happen in inline ($$) context on macro lines.  That is certainly
very fragile and will often fail especially for non-trivial formulae,
but switching to print_text() would break it even more.  So postpone
repairs until i come round to work on equation formatting for real.

Revision 1.69 / (download) - annotate - [select for diffs], Sun Mar 24 16:45:46 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.68: +260 -348 lines
Diff to previous 1.68 (unified) to selected 1.134 (unified)

As usual, whitespace handling is the heart and soul of roff(7)
processing, so overhaul it.  Keep output line state and provide a
set of output functions to open and close macro lines and to add
arguments to them.  Mostly avoid asserting output line state because
elements can occur in any order and we should just deal with whatever
comes in.

This diff shortens the code by 60 lines, improves robustness and
readability, and fixes some bugs.

Revision 1.68 / (download) - annotate - [select for diffs], Sat Mar 23 11:13:29 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.67: +6 -1 lines
Diff to previous 1.67 (unified) to selected 1.134 (unified)

translate <citetitle> to .%T

Revision 1.67 / (download) - annotate - [select for diffs], Sat Mar 23 10:53:52 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.66: +6 -1 lines
Diff to previous 1.66 (unified) to selected 1.134 (unified)

translate <keysym> to .Sy

Revision 1.66 / (download) - annotate - [select for diffs], Sat Mar 23 10:22:23 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.65: +4 -4 lines
Diff to previous 1.65 (unified) to selected 1.134 (unified)

the handlers for NODE_LITERALLAYOUT and NODE_PROGRAMLISTING were exchanged

Revision 1.65 / (download) - annotate - [select for diffs], Fri Mar 22 19:44:29 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.64: +8 -1 lines
Diff to previous 1.64 (unified) to selected 1.134 (unified)

support <personname> and <email>;
based on a patch from Stephen Gregoratto <dev at sgregoratto dot me>

Revision 1.64 / (download) - annotate - [select for diffs], Fri Mar 22 19:07:07 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.63: +124 -138 lines
Diff to previous 1.63 (unified) to selected 1.134 (unified)

KNF: eliminate Yoda notation, and also drop a few redundant assertions

Revision 1.63 / (download) - annotate - [select for diffs], Fri Mar 22 18:02:07 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.62: +15 -15 lines
Diff to previous 1.62 (unified) to selected 1.134 (unified)

* Fix the return value from main().
* Do not use the pointless constants EXIT_SUCCESS and EXIT_FAILURE.
* KNF: remove parentheses from return statements.

Revision 1.62 / (download) - annotate - [select for diffs], Fri Mar 22 17:42:53 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.61: +126 -130 lines
Diff to previous 1.61 (unified) to selected 1.134 (unified)

KNF: remove parentheses from switch cases

Revision 1.61 / (download) - annotate - [select for diffs], Fri Mar 22 17:28:59 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.60: +16 -8 lines
Diff to previous 1.60 (unified) to selected 1.134 (unified)

no output for PARA right inside ENTRY, and fix the same in LISTITEM

Revision 1.60 / (download) - annotate - [select for diffs], Fri Mar 22 17:01:10 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.59: +25 -5 lines
Diff to previous 1.59 (unified) to selected 1.134 (unified)

handle class="monospaced" in NODE_LITERALLAYOUT

Revision 1.59 / (download) - annotate - [select for diffs], Fri Mar 22 16:55:44 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.58: +26 -34 lines
Diff to previous 1.58 (unified) to selected 1.134 (unified)

factor out new function pnode_getattr_raw()

Revision 1.58 / (download) - annotate - [select for diffs], Fri Mar 22 16:50:54 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.57: +13 -1 lines
Diff to previous 1.57 (unified) to selected 1.134 (unified)

translate NODE_LINK to .Sx

Revision 1.57 / (download) - annotate - [select for diffs], Fri Mar 22 16:47:29 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.56: +3 -1 lines
Diff to previous 1.56 (unified) to selected 1.134 (unified)

translate NODE_FIRSTTERM to .Em

Revision 1.56 / (download) - annotate - [select for diffs], Fri Mar 22 16:42:49 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.55: +146 -181 lines
Diff to previous 1.55 (unified) to selected 1.134 (unified)

Work towards reducing the number of node IDs.

Allow mapping several node names to the same node ID
and use that for chapter, part, refsect*, sect* -> NODE_SECTION.
Do not require the root to be of a specific type.
Delete the useless NODE_IGNTEXT.

Revision 1.55 / (download) - annotate - [select for diffs], Fri Mar 22 16:35:41 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.54: +3 -1 lines
Diff to previous 1.54 (unified) to selected 1.134 (unified)

ignore NODE_INDEXTERM for now

Revision 1.54 / (download) - annotate - [select for diffs], Fri Mar 22 16:32:34 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.53: +37 -10 lines
Diff to previous 1.53 (unified) to selected 1.134 (unified)

new function pnode_printpara()
to avoid printing redundant .Pp, for example after section headers

Revision 1.53 / (download) - annotate - [select for diffs], Fri Mar 22 16:25:42 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (unified) to selected 1.134 (unified)

NODE_ITEMIZEDLIST is .Bl -bullet, not .Bl -enum

Revision 1.52 / (download) - annotate - [select for diffs], Fri Mar 22 16:21:23 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.51: +67 -47 lines
Diff to previous 1.51 (unified) to selected 1.134 (unified)

automatic assignment of header levels

Revision 1.51 / (download) - annotate - [select for diffs], Fri Mar 22 16:14:52 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.50: +13 -8 lines
Diff to previous 1.50 (unified) to selected 1.134 (unified)

get the .Dt name from the id attribute of the root node

Revision 1.50 / (download) - annotate - [select for diffs], Fri Mar 22 16:10:09 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.49: +93 -4 lines
Diff to previous 1.49 (unified) to selected 1.134 (unified)

many new nodes found below /usr/xenocara/proto/xorgproto/specs/

Revision 1.49 / (download) - annotate - [select for diffs], Fri Mar 22 15:54:42 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.48: +1 -20 lines
Diff to previous 1.48 (unified) to selected 1.134 (unified)

Delete the rest of rules.c.

Just like validation of element nesting is pointless,
validating attributes makes no sense either.

Revision 1.48 / (download) - annotate - [select for diffs], Fri Mar 22 15:38:09 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.47: +2 -14 lines
Diff to previous 1.47 (unified) to selected 1.134 (unified)

Delete the isparent() validation function.

The DocBook language is totally ill-designed, a gigantic accretion
of arbitrary elements without any kind of discernible design or
cohesion, with an absurdly large number of arbitrary and pointless
rules of what is allowed to nest inside which other elements.
So attempting to validate DocBook input against the totally crazy
specification makes no sense whatsoever, and even less so because
we are certainly not encouraging anybody to write new or maintain
existing DocBook documents.  The whole point of having a DocBook
parser is to be able to parse legacy documents and convert them to
a sane language, so it is utterly irrelevant whether the input is
considered valid or invalid by some idiotic standard.

This deletion allows substantial simplification of the code
and will massively speed up development in the future.

Kristaps@ says that i can move forward with development without
asking for individual OKs.

Revision 1.47 / (download) - annotate - [select for diffs], Fri Mar 8 15:18:50 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (unified) to selected 1.134 (unified)

for the null character '\0', use the standard shorthand NUL, not "nil"

Revision 1.46 / (download) - annotate - [select for diffs], Fri Mar 8 15:09:54 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.45: +13 -13 lines
Diff to previous 1.45 (unified) to selected 1.134 (unified)

fix systematically wrong (int) casts in character classification functions

Revision 1.45 / (download) - annotate - [select for diffs], Fri Mar 8 10:04:01 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.44: +6 -5 lines
Diff to previous 1.44 (unified) to selected 1.134 (unified)

improve error handling and usage in main()

Revision 1.44 / (download) - annotate - [select for diffs], Thu Mar 19 10:04:32 2015 UTC (9 years ago) by schwarze
Branch: MAIN
Changes since 1.43: +127 -127 lines
Diff to previous 1.43 (unified) to selected 1.134 (unified)

zap trailing whitespace; verified with diff -b;
patch from Svyatoslav Mishyn <juef at openmailbox dot org>

Revision 1.43 / (download) - annotate - [select for diffs], Sun Oct 19 19:11:29 2014 UTC (9 years, 5 months ago) by kristaps
Branch: MAIN
Changes since 1.42: +33 -11 lines
Diff to previous 1.42 (unified) to selected 1.134 (unified)

Differentiate between inline and non-inline equations by using delimiters.

Revision 1.42 / (download) - annotate - [select for diffs], Sun Oct 12 15:48:42 2014 UTC (9 years, 5 months ago) by kristaps
Branch: MAIN
Changes since 1.41: +18 -11 lines
Diff to previous 1.41 (unified) to selected 1.134 (unified)

Properly handle multiple <term> for a <varlistentry>.

Revision 1.41 / (download) - annotate - [select for diffs], Sun Oct 12 15:34:44 2014 UTC (9 years, 5 months ago) by kristaps
Branch: MAIN
Changes since 1.40: +42 -5 lines
Diff to previous 1.40 (unified) to selected 1.134 (unified)

Make <mml:mfenced> work properly.

Revision 1.40 / (download) - annotate - [select for diffs], Sun Oct 12 15:08:45 2014 UTC (9 years, 5 months ago) by kristaps
Branch: MAIN
Changes since 1.39: +80 -1 lines
Diff to previous 1.39 (unified) to selected 1.134 (unified)

Add initial support for mml:* -> eqn(7).

Revision 1.39 / (download) - annotate - [select for diffs], Wed Apr 30 13:18:38 2014 UTC (9 years, 11 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_0_0_9
Changes since 1.38: +10 -1 lines
Diff to previous 1.38 (unified) to selected 1.134 (unified)

Add type, modifier, and fieldsynopsis.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Apr 30 12:54:26 2014 UTC (9 years, 11 months ago) by kristaps
Branch: MAIN
Changes since 1.37: +45 -22 lines
Diff to previous 1.37 (unified) to selected 1.134 (unified)

Add refmetainfo, which seems to be a holdover from early DocBook days.
Also add the -W flag to differentiate failure and warning in scanning output.

Revision 1.37 / (download) - annotate - [select for diffs], Wed Apr 30 12:34:44 2014 UTC (9 years, 11 months ago) by kristaps
Branch: MAIN
Changes since 1.36: +48 -3 lines
Diff to previous 1.36 (unified) to selected 1.134 (unified)

For some elements, we want to look ahead to see if the next node is text
and begins with punctuation.  If so, we can print that punctuation or
our line and make it work well with mdoc(7).  For example,

  <constant>bar</constant>.

will now render as

  .Dv bar .

This makes output pages much more readable.

Revision 1.36 / (download) - annotate - [select for diffs], Wed Apr 30 10:11:24 2014 UTC (9 years, 11 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_0_0_8
Changes since 1.35: +7 -2 lines
Diff to previous 1.35 (unified) to selected 1.134 (unified)

Toss xi:include (crudely, til I figure out a better way).
Bump version.

Revision 1.35 / (download) - annotate - [select for diffs], Wed Apr 30 09:43:55 2014 UTC (9 years, 11 months ago) by kristaps
Branch: MAIN
Changes since 1.34: +4 -1 lines
Diff to previous 1.34 (unified) to selected 1.134 (unified)

For free, we get informaltable.

Revision 1.34 / (download) - annotate - [select for diffs], Wed Apr 30 09:37:26 2014 UTC (9 years, 11 months ago) by kristaps
Branch: MAIN
Changes since 1.33: +5 -7 lines
Diff to previous 1.33 (unified) to selected 1.134 (unified)

citerefentry shouldn't expect a newline--it can occur inline.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Apr 30 09:26:10 2014 UTC (9 years, 11 months ago) by kristaps
Branch: MAIN
Changes since 1.32: +8 -1 lines
Diff to previous 1.32 (unified) to selected 1.134 (unified)

Add trademark, format constant.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Apr 30 09:04:40 2014 UTC (9 years, 11 months ago) by kristaps
Branch: MAIN
Changes since 1.31: +12 -6 lines
Diff to previous 1.31 (unified) to selected 1.134 (unified)

Add holder, copyright, and year elements.
Fix parameter to suppress trailing newline (puts -> fputs).

Revision 1.31 / (download) - annotate - [select for diffs], Wed Apr 2 12:27:05 2014 UTC (9 years, 11 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_0_0_7
Changes since 1.30: +10 -7 lines
Diff to previous 1.30 (unified) to selected 1.134 (unified)

Improve (and fix) manpage and index page.
Remove now-trivial examples.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Apr 2 12:12:41 2014 UTC (9 years, 11 months ago) by kristaps
Branch: MAIN
Changes since 1.29: +15 -2 lines
Diff to previous 1.29 (unified) to selected 1.134 (unified)

Add <sgmltag> and (ignore) <anchor>.
Also give more error-reporting for internal XML errors.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Apr 2 10:59:07 2014 UTC (9 years, 11 months ago) by kristaps
Branch: MAIN
Changes since 1.28: +47 -4 lines
Diff to previous 1.28 (unified) to selected 1.134 (unified)

Add caution, note, tip, refsect3, refsection, warning.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Apr 2 10:27:29 2014 UTC (9 years, 11 months ago) by kristaps
Branch: MAIN
Changes since 1.27: +13 -1 lines
Diff to previous 1.27 (unified) to selected 1.134 (unified)

Add <quote>.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Apr 2 10:06:14 2014 UTC (9 years, 11 months ago) by kristaps
Branch: MAIN
Changes since 1.26: +7 -1 lines
Diff to previous 1.26 (unified) to selected 1.134 (unified)

Add <application> and a README for adding new nodes.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Apr 2 07:52:14 2014 UTC (9 years, 11 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_0_0_6
Changes since 1.25: +9 -3 lines
Diff to previous 1.25 (unified) to selected 1.134 (unified)

Add <varname>.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Apr 2 07:48:34 2014 UTC (9 years, 11 months ago) by kristaps
Branch: MAIN
Changes since 1.24: +80 -24 lines
Diff to previous 1.24 (unified) to selected 1.134 (unified)

Initial support for tables.
Because docbook table entries are blocks (not columns), write them out as
lists (rows) of lists (elements).

Revision 1.24 / (download) - annotate - [select for diffs], Sun Mar 30 18:15:55 2014 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.23: +58 -1 lines
Diff to previous 1.23 (unified) to selected 1.134 (unified)

Get a biggie: <group>.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Mar 30 17:46:17 2014 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.22: +9 -2 lines
Diff to previous 1.22 (unified) to selected 1.134 (unified)

Add more tags.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Mar 30 17:22:01 2014 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.21: +7 -1 lines
Diff to previous 1.21 (unified) to selected 1.134 (unified)

Even more tags.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Mar 30 17:10:50 2014 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.20: +17 -2 lines
Diff to previous 1.20 (unified) to selected 1.134 (unified)

Add <orderedlist>, <acronym>, <envar>.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Mar 30 16:57:06 2014 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.19: +24 -6 lines
Diff to previous 1.19 (unified) to selected 1.134 (unified)

Add <refsect2>.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Mar 30 16:44:13 2014 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.18: +12 -1 lines
Diff to previous 1.18 (unified) to selected 1.134 (unified)

Add <sbr>, <literal>.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Mar 30 16:33:27 2014 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.17: +3 -2 lines
Diff to previous 1.17 (unified) to selected 1.134 (unified)

All "Sh" should be uppercase.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Mar 30 16:32:03 2014 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.16: +7 -1 lines
Diff to previous 1.16 (unified) to selected 1.134 (unified)

Add <filename>.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Mar 30 16:25:26 2014 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.15: +32 -3 lines
Diff to previous 1.15 (unified) to selected 1.134 (unified)

<itemizedlist> support.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Mar 30 15:08:03 2014 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.14: +7 -1 lines
Diff to previous 1.14 (unified) to selected 1.134 (unified)

Add <refentryinfo> and <date> for more doclifter processing.
Note that <ulink> is from the original DocBook.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Mar 30 13:18:49 2014 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.13: +3 -1 lines
Diff to previous 1.13 (unified) to selected 1.134 (unified)

Initial ulink (is this just a DocBook extension?) and link working.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Mar 30 11:48:10 2014 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.12: +141 -390 lines
Diff to previous 1.12 (unified) to selected 1.134 (unified)

Split out rules and enums (extern.h, rules.c).
Add initial variable list support.
Clarify role of who prints space/control character.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Mar 29 22:44:06 2014 UTC (10 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_0_0_4
Changes since 1.11: +211 -16 lines
Diff to previous 1.11 (unified) to selected 1.134 (unified)

Let there be attributes!
Allow <arg> to properly have its attributes.
Comma-separate multiple Nm in a refname div.
Clean up error reporting.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Mar 29 11:13:49 2014 UTC (10 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_0_0_3
Changes since 1.10: +1 -3 lines
Diff to previous 1.10 (unified) to selected 1.134 (unified)

Add examples.
Allow missing <parameter> in printing function prototype.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Mar 29 10:56:21 2014 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.9: +109 -55 lines
Diff to previous 1.9 (unified) to selected 1.134 (unified)

Make pnode_print() be sensitive to current line positions for nested
inline macros.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Mar 28 13:16:40 2014 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.8: +5 -2 lines
Diff to previous 1.8 (unified) to selected 1.134 (unified)

Don't puke on empty or totally-bad files.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Mar 28 12:11:18 2014 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.7: +80 -10 lines
Diff to previous 1.7 (unified) to selected 1.134 (unified)

Documentation.
Add <structname>.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Mar 28 10:37:50 2014 UTC (10 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_0_0_2
Changes since 1.6: +40 -11 lines
Diff to previous 1.6 (unified) to selected 1.134 (unified)

Emit bogus prologue if none found.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Mar 28 10:08:24 2014 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.5: +24 -2 lines
Diff to previous 1.5 (unified) to selected 1.134 (unified)

This patch needs work... make meta-less manpages work.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Mar 28 10:03:36 2014 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (unified) to selected 1.134 (unified)

Quash regression where REFSECT1 was not recursed.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Mar 28 10:00:40 2014 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.3: +143 -26 lines
Diff to previous 1.3 (unified) to selected 1.134 (unified)

Add some more elements, simplify unlinking of children after running a
custom node handler, strip leading whitespace from text children (thus
making <element>  <foo>bar</foo></element> not emit a spurrious initial
child text).

Revision 1.3 / (download) - annotate - [select for diffs], Fri Mar 28 02:46:40 2014 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.2: +156 -14 lines
Diff to previous 1.2 (unified) to selected 1.134 (unified)

More functions and prototypes.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Mar 28 02:06:29 2014 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (unified) to selected 1.134 (unified)

CVS tag guard.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Mar 28 02:04:47 2014 UTC (10 years ago) by kristaps
Branch: MAIN
Diff to selected 1.134 (unified)

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb