CVS log for docbook2mdoc/node.h

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.37 / (download) - annotate - [select for diffs], Wed May 1 12:52:05 2019 UTC (4 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_1_0, HEAD
Changes since 1.36: +2 -1 lines
Diff to previous 1.36 (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.36 / (download) - annotate - [select for diffs], Wed May 1 11:34:20 2019 UTC (4 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.35: +2 -1 lines
Diff to previous 1.35 (unified)

print commas between Copyright years

Revision 1.35 / (download) - annotate - [select for diffs], Sun Apr 28 20:26:49 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_0_2
Changes since 1.34: +2 -1 lines
Diff to previous 1.34 (unified)

Parse <abstract> and treat it like a <section>;
when it occurs inside an info element, move it out
and put it before the first section of the page.

Revision 1.34 / (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.33: +2 -1 lines
Diff to previous 1.33 (unified)

provide a simple function to generate a text node

Revision 1.33 / (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.32: +4 -2 lines
Diff to previous 1.32 (unified)

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

Revision 1.32 / (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.31: +2 -1 lines
Diff to previous 1.31 (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.31 / (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.30: +2 -1 lines
Diff to previous 1.30 (unified)

translate <productname> to .Sy

Revision 1.30 / (download) - annotate - [select for diffs], Tue Apr 16 14:58:19 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.29: +3 -2 lines
Diff to previous 1.29 (unified)

preserve leading whitespace in no-fill mode

Revision 1.29 / (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.28: +2 -1 lines
Diff to previous 1.28 (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.28 / (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.27: +5 -1 lines
Diff to previous 1.27 (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.27 / (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.26: +4 -1 lines
Diff to previous 1.26 (unified)

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

Revision 1.26 / (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.25: +3 -1 lines
Diff to previous 1.25 (unified)

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

Revision 1.25 / (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.24: +2 -6 lines
Diff to previous 1.24 (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.24 / (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.23: +1 -2 lines
Diff to previous 1.23 (unified)

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

Revision 1.23 / (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.22: +5 -1 lines
Diff to previous 1.22 (unified)

rudimentary implementation of <systemitem>

Revision 1.22 / (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.21: +3 -1 lines
Diff to previous 1.21 (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.21 / (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.20: +3 -1 lines
Diff to previous 1.20 (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.20 / (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.19: +24 -9 lines
Diff to previous 1.19 (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.19 / (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.18: +1 -2 lines
Diff to previous 1.18 (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.18 / (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.17: +2 -2 lines
Diff to previous 1.17 (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.17 / (download) - annotate - [select for diffs], Fri Apr 12 04:39:24 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (unified)

New function pnode_alloc() to reduce code duplication.
No functional change.

Revision 1.16 / (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.15: +1 -3 lines
Diff to previous 1.15 (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.15 / (download) - annotate - [select for diffs], Tue Apr 9 15:23:51 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.14: +5 -4 lines
Diff to previous 1.14 (unified)

switch to mandoc(1)-style EXIT STATUS and DIAGNOSTICS

Revision 1.14 / (download) - annotate - [select for diffs], Tue Apr 9 01:39:09 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.13: +3 -1 lines
Diff to previous 1.13 (unified)

implement file inclusion via <xi:include>

Revision 1.13 / (download) - annotate - [select for diffs], Mon Apr 8 14:37:31 2019 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.12: +7 -1 lines
Diff to previous 1.12 (unified)

Handle DOCTYPE declarations containing ENTITY definitions.
Also make <sbr> self-closing even without a trailing slash.

Revision 1.12 / (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.11: +2 -2 lines
Diff to previous 1.11 (unified)

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

Revision 1.11 / (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.10: +4 -1 lines
Diff to previous 1.10 (unified)

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

Revision 1.10 / (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.9: +2 -1 lines
Diff to previous 1.9 (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.9 / (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.8: +2 -4 lines
Diff to previous 1.8 (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.8 / (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.7: +2 -2 lines
Diff to previous 1.7 (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.7 / (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.6: +2 -1 lines
Diff to previous 1.6 (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.6 / (download) - annotate - [select for diffs], Thu Mar 28 20:41:33 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (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.5 / (download) - annotate - [select for diffs], Thu Mar 28 12:21:10 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (unified)

The expat library aborts parsing as soon as it encounters invalid
input, and the basic design of the library practically precludes
fixing it.  However, whether the input is well-formed XML or not
is totally irrelevant, and in fact, i have seen real-world documents
from X.org that expat rejects as not well-formed.  Kristaps reports
the same from OpenGL.

We really want to parse *ANYTHING* whatsoever without ever throwing
a fatal error - after all, the point is to convert legacy documents
to a better format, and nitpicking about the syntax merely alienates
users (including myself).

Consequently, ditch expat and write a parser from scratch, optimized
for robustness on invalid input.

Oh, and by the way, it only requires 200 lines of code,
compared to 15,000 lines in expat - an economy of 98.5%
at the sime time as being much more useful in practice.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Mar 26 22:39:33 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.3: +4 -6 lines
Diff to previous 1.3 (unified)

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

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

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

Revision 1.2 / (download) - annotate - [select for diffs], Tue Mar 26 20:54:43 2019 UTC (5 years ago) by schwarze
Branch: MAIN
Changes since 1.1: +3 -2 lines
Diff to previous 1.1 (unified)

Provide an easy way to parse an XML element without generating a node,
either ignoring it outright or emitting a warning if -W was specified.
Use this to handle <xi:include> more cleanly, fixing two FIXMEs.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Mar 26 18:32:07 2019 UTC (5 years ago) by schwarze
Branch: MAIN

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.

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