CVS log for mandoc/html.h

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.112 / (download) - annotate - [select for diffs], Wed Jul 6 14:34:59 2022 UTC (20 months, 3 weeks ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.111: +2 -2 lines
Diff to previous 1.111 (colored) to selected 1.31 (colored)

While the HTML standard allows multiple <h1> elements in the same
document, <h1> is intended for top level headers, and most of the
sections in a manual page can hardly be considered top-level.
It is more usual to use <h1> only for the main title of the document
of for the site name.

Consequently, move .Sh/.SH from <h1> to <h2> and .Ss/.SS from <h2>
to <h3>, freeing <h1> for use by header.html in man.cgi(8).

Discussed with Anna Vyalkova <cyber at sysrq dot in>.

Revision 1.111 / (download) - annotate - [select for diffs], Sun Jul 3 14:29:44 2022 UTC (20 months, 3 weeks ago) by schwarze
Branch: MAIN
Changes since 1.110: +2 -1 lines
Diff to previous 1.110 (colored) to selected 1.31 (colored)

Instead of the custom <div class="manual-text">, use the standard
HTML <main> element.  The benefit is that it has the ARIA landmark
role "main" by default.  To ease the transition for people using
their own CSS file instead of mandoc.css, retain the custom class
for now.

I had this idea in a discussion with Anna Vyalkova <cyber at sysrq dot in>.
Patch from Anna, slightly tweaked by me.

Revision 1.110 / (download) - annotate - [select for diffs], Fri Jun 24 11:15:53 2022 UTC (21 months ago) by schwarze
Branch: MAIN
Changes since 1.109: +2 -1 lines
Diff to previous 1.109 (colored) to selected 1.31 (colored)

Improve accessibility of -T html -O toc output by using the <nav> element
in the DPUB-ARIA doc-toc role.
Patch from Anna Vyalkova <cyber at sysrq dot in> slightly tweaked by me.

This is hopefully the start of a collaboration to improve accessibility
of Unix manual pages using the WAI-ARIA, HTML-ARIA, and DPUB-ARIA standards.
Progress appears to be possible without changing *anything* with respect to
the way manual pages are written.  Instead, it seems sufficient to properly
translate semantic cues already implied by existing mdoc(7) markup into the
appropriate HTML elements and ARIA attributes.  Overall, the total length
of HTML output is likely to increase slightly, but not much.

Revision 1.109 / (download) - annotate - [select for diffs], Thu Sep 9 14:47:24 2021 UTC (2 years, 6 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6
Changes since 1.108: +2 -1 lines
Diff to previous 1.108 (colored) to selected 1.31 (colored)

If the layout or data of an individual cell in a tbl(7) contains
only "_", "-", or "=", requesting a horizontal line to be drawn
across the middle of the cell, print <hr/> in that cell in HTML
output.

That is arguably slightly ugly because HTML 5 regards <hr/> as
semantic markup, meaning "thematic break".  If somebody knowns
a better way to render a horizontal line across the middle of a
table cell with pure HTML and CSS, and without implying a specific
meaning, please tell me.

Missing feature reported by <Oliver dot Corff at email dot de>.

Revision 1.108 / (download) - annotate - [select for diffs], Sat Apr 18 20:40:10 2020 UTC (3 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.107: +3 -1 lines
Diff to previous 1.107 (colored) to selected 1.31 (colored)

When a .Tg is attached to a paragraph, attach the permalink
to the first word, or the first few words if they are short.

Revision 1.107 / (download) - annotate - [select for diffs], Fri Mar 13 15:32:28 2020 UTC (4 years ago) by schwarze
Branch: MAIN
Changes since 1.106: +7 -2 lines
Diff to previous 1.106 (colored) to selected 1.31 (colored)

Split tagging into a validation part including prioritization
in tag.{h,c} and {mdoc,man}_validate.c
and into a formatting part including command line argument checking
in term_tag.{h,c}, html.c, and {mdoc|man}_{term|html}.c.

Immediate functional benefits include:
* Improved prioritization of automatic tags for .Em and .Sy.
* Avoiding bogus automatic tags when .Em, .Fn, or .Sy are explicitly tagged.
* Explicit tagging of .Er and .Fl now works in HTML output.
* Automatic tagging of .IP and .TP now works in HTML output.
But mainly, this patch provides clean earth to build further improvements on.

Technical changes:
* Main program: Write a tag file for ASCII and UTF-8 output only.
* All formatters: There is no more need to delay writing the tags.
* mdoc(7)+man(7) formatters: No more need for elaborate syntax tree inspection.
* HTML formatter: If available, use the "string" attribute as the tag.
* HTML formatter: New function to write permalinks, to reduce code duplication.

Style cleanup in the vicinity while here:
* mdoc(7) terminal formatter: To set up bold font for children,
defer to termp_bold_pre() rather than calling term_fontpush() manually.
* mdoc(7) terminal formatter: Garbage collect some duplicate functions.
* mdoc(7) HTML formatter: Unify <code> handling, delete redundant functions.
* Where possible, use switch statements rather than if cascades.
* Get rid of some more Yoda notation.

The necessity for such changes was first discussed with kn@, but i didn't
bother him with a request to review the resulting -673/+782 line patch.

Revision 1.106 / (download) - annotate - [select for diffs], Sun Jan 19 18:02:00 2020 UTC (4 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.105: +2 -1 lines
Diff to previous 1.105 (colored) to selected 1.31 (colored)

Introduce a new mdoc(7) macro .Tg ("tag") to explicitly mark a place
as defining a term.  Please only use it when automatic tagging does
not work.  Manual page authors will not be required to add the new
macro; using it remains optional.  HTML output is still rudimentary
in this version and will be polished later.

Thanks to kn@ for reminding me that i have been considering since
BSDCan 2014 whether something like this might be useful.  Given
that possibilities of making automatic tagging better are running
out and there are still several situations where automatic tagging
cannot do the job, i think the time is now ripe.

Feedback and no objection from millert@; OK espie@ inoguchi@ kn@.

Revision 1.105 / (download) - annotate - [select for diffs], Sun Sep 1 15:12:19 2019 UTC (4 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.104: +1 -2 lines
Diff to previous 1.104 (colored) to selected 1.31 (colored)

delete the TAG_IDIV crutch, which is no longer used

Revision 1.104 / (download) - annotate - [select for diffs], Thu Aug 29 17:57:29 2019 UTC (4 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.103: +12 -12 lines
Diff to previous 1.103 (colored) to selected 1.31 (colored)

In the HTML formatter, assert(3) that no HTML nesting violation occurs.
Tested on the complete manual page trees of Version 7 AT&T UNIX,
4.4BSD-Lite2, POSIX-2013, OpenBSD 2.2 to 6.5 and -current,
FreeBSD 10.0 to 12.0, NetBSD 6.1.5 to 8.1, DragonFly 3.8.2 to 5.6.1,
and Linux 4.05 to 5.02.

Revision 1.103 / (download) - annotate - [select for diffs], Tue Apr 30 15:53:00 2019 UTC (4 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.102: +4 -13 lines
Diff to previous 1.102 (colored) to selected 1.31 (colored)

In HTML output, allow switching the desired font for subsequent
text without printing an opening tag right away, and use that in
the .ft request handler.  While here, garbage collect redundant
enum htmlfont and reduce code duplication in print_text().
Fixing an assertion failure reported by Michael <Stapelberg at Debian>
in pmRegisterDerived(3) from libpcp3-dev.

Revision 1.102 / (download) - annotate - [select for diffs], Fri Mar 1 10:57:18 2019 UTC (5 years ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_5
Changes since 1.101: +2 -1 lines
Diff to previous 1.101 (colored) to selected 1.31 (colored)

Wrap .Sh/.SH sections and .Ss/.SS subsections in HTML <section> elements
as recommended for accessibility by the HTML 5 standard.
Triggered by a similar, but slightly different suggestion
from Laura Morales <lauretas at mail dot com>.

Revision 1.101 / (download) - annotate - [select for diffs], Fri Jan 18 14:36:21 2019 UTC (5 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.100: +3 -1 lines
Diff to previous 1.100 (colored) to selected 1.31 (colored)

The .UR and .MT blocks in man(7) are represented by <a> elements
which establish phrasing context, but they can contain paragraph
breaks (which is relevant for terminal formatting, so we can't just
change the structure of the syntax tree), which are respresented
by <p> elements and cannot occur inside <a>.

Fix this by prematurely closing the <a> element in the HTML formatter.
This menas that the clickable text in HTML output is shorter than
what is represented as the link text in terminal output, but in
HTML, it is frankly impossible to have the clickable area of a
hyperlink extend across a paragraph break.  The difference in
presentation is not a major problem, and besides, paragraph breaks
inside .UR are rather poor style in the first place.

The implementation is quite tricky.  Naively closing out the <a>
prematurely would result in accessing a stale pointer when later
reaching the physical end of the .UR block.  So this commit separates
visual and structural closing of "struct tag" stack items.  Visual
closing means that the HTML element is closed but the "struct tag"
remains on the stack, to avoid later access to a stale pointer and
to avoid closing the same HTML element a second time later.

This also needs reference counting of pointers to "struct tag" stack
items because often more than one child holds a pointer to the same
parent item, and only the outermost child can safely do the physical
closing.

In the whole corpus of nearly half a million manual pages on
man.openbsd.org, this problem occurs in exactly one page: the
groff(1) version 1.20.1 manual contained in DragonFly-3.8.2, which
contains a formatting error triggering the bug.

Revision 1.100 / (download) - annotate - [select for diffs], Mon Jan 7 07:26:29 2019 UTC (5 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.99: +1 -2 lines
Diff to previous 1.99 (colored) to selected 1.31 (colored)

Represent mdoc(7) .Pp (and .sp, and some SYNOPSIS and .Rs features)
by the <p> HTML element and use the html_fillmode() mechanism
for .Bd -unfilled, just like it was done for man(7) earlier, finally
getting rid both of the horrible <div class="Pp"></div> hack and
of the worst HTML syntax violations caused by nested displays.

Care is needed because in some situations, paragraphs have to remain
open across several subsequent macros, whereas in other situations,
they must get closed together with a block containing them.

Some implementation details include:
* Always close paragraphs before emitting HTML flow content.
* Let html_close_paragraph() also close <pre> for extra safety.
* Drop the old, now unused function print_paragraph().
* Minor adjustments in the top-level man(7) node formatter for symmetry.
* Bugfix: .Ss heads suspend no-fill mode, even though .Ss doesn't end it.
* Bugfix: give up on .Op semantic markup for now, see the comment.

Revision 1.99 / (download) - annotate - [select for diffs], Sun Jan 6 04:55:09 2019 UTC (5 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.98: +4 -2 lines
Diff to previous 1.98 (colored) to selected 1.31 (colored)

Finally, represent the man(7) .PP and .HP macros by the natural
choice, which is the <p> HTML element.  On top of the previous
fill-mode improvements, the key to making this possible is to
automatically close the <p> when required: before headers, subsequent
paragraphs, lists, indented blocks, synopsis blocks, tbl(7) blocks,
and before blocks using no-fill mode.

In man(7) documents, represent the .sp request by a blank line in
no-fill mode and in the same way as .PP in fill mode.

Revision 1.98 / (download) - annotate - [select for diffs], Sat Jan 5 09:14:44 2019 UTC (5 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.97: +2 -1 lines
Diff to previous 1.97 (colored) to selected 1.31 (colored)

Now that the NODE_NOFILL flag in the syntax tree is accurate,
use it in the man(7) HTML formatter rather than keeping fill mode
state locally, resulting in massive simplification (minus 40 LOC).

Move the html_fillmode() state handler function to the html.c module
such that both the man(7) and the roff(7) formatter (and in the future,
also the mdoc(7) formatter) can use it.  Give it a query mode, to be
invoked with TOKEN_NONE.

Revision 1.97 / (download) - annotate - [select for diffs], Mon Dec 31 11:09:25 2018 UTC (5 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.96: +1 -2 lines
Diff to previous 1.96 (colored) to selected 1.31 (colored)

drop flag HTML_LITERAL which is no longer used

Revision 1.96 / (download) - annotate - [select for diffs], Sun Dec 16 00:17:02 2018 UTC (5 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.95: +2 -1 lines
Diff to previous 1.95 (colored) to selected 1.31 (colored)

Yet another round of improvements to manual font selection.

Unify handling of \f and .ft.
Support \f4 (bold+italic).
Support ".ft BI" and ".ft CW" for terminal output.
Support the .ft request in HTML output.
Reject the bogus fonts \f(C1, \f(C2, \f(C3, and \f(CP.
In regress.pl, only strip leading whitespace in math mode.

Revision 1.95 / (download) - annotate - [select for diffs], Thu Oct 25 01:32:40 2018 UTC (5 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.94: +2 -1 lines
Diff to previous 1.94 (colored) to selected 1.31 (colored)

Implement the \f(CW and \f(CR (constant width font) escape sequences
for HTML output.  Somewhat relevant because pod2man(1) relies on this.
Missing feature reported by Pali dot Rohar at gmail dot com.

Note that constant width font was already correctly selected before
this when required by semantic markup.  Only attempting physical
markup with the low-level escape sequence was ineffective.

Revision 1.94 / (download) - annotate - [select for diffs], Tue Oct 2 14:56:47 2018 UTC (5 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.93: +3 -1 lines
Diff to previous 1.93 (colored) to selected 1.31 (colored)

Add an option -T html -O toc to add a brief table of contents near
the top of HTML pages containing at least two non-standard sections.
Suggested by Adam Kalisz and discussed with kristaps@ during EuroBSDCon 2018.

Revision 1.93 / (download) - annotate - [select for diffs], Tue Oct 2 12:33:37 2018 UTC (5 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.92: +3 -2 lines
Diff to previous 1.92 (colored) to selected 1.31 (colored)

Support a second argument to -O man,
selecting the format according to local existence of the file.
Suggested by kristaps@ during EuroBSDCon 2018.
Written on the train Frankfurt-Karlsruhe returning from EuroBSDCon.

Revision 1.92 / (download) - annotate - [select for diffs], Mon Jun 25 16:54:59 2018 UTC (5 years, 9 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_4
Changes since 1.91: +1 -2 lines
Diff to previous 1.91 (colored) to selected 1.31 (colored)

Delete substantial amounts of code
now that we no longer use variable style= attributes.

Revision 1.91 / (download) - annotate - [select for diffs], Mon Jun 25 13:45:57 2018 UTC (5 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.90: +1 -3 lines
Diff to previous 1.90 (colored) to selected 1.31 (colored)

Do not write <colgroup> elements.  Their only purpose is to enforce
author-specified column widths, which can harm responsive design and
provide no real benefit: HTML rendering engines usually do just
fine automatically selecting appropriate column widths.

Revision 1.90 / (download) - annotate - [select for diffs], Fri May 25 20:23:51 2018 UTC (5 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.89: +2 -2 lines
Diff to previous 1.89 (colored) to selected 1.31 (colored)

Do not write duplicate id= attributes, they violate HTML syntax.
Append suffixes for disambiguation.  Issue first reported by Jakub
Klinkovsky <j dot l dot k at gmx dot com> (Arch Linux).

Revision 1.89 / (download) - annotate - [select for diffs], Wed May 9 00:46:10 2018 UTC (5 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.88: +2 -1 lines
Diff to previous 1.88 (colored) to selected 1.31 (colored)

Fix a long-standing issue:
Some macros (Nd, Oo) can contain blocks but rendered as elements that
can only contain phrasing content, resulting in invalid HTML nesting.
Switch them to <div>.
Also move the related "display: inline" style from the HTML to the CSS.

Reminded during a conversation with John Gardner.

Revision 1.88 / (download) - annotate - [select for diffs], Fri Apr 13 16:28:07 2018 UTC (5 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.87: +3 -2 lines
Diff to previous 1.87 (colored) to selected 1.31 (colored)

preserve comments before .Dd and .TH (typically Copyright and license)
in full HTML output, but not with -Ofragment, e.g. in man.cgi(8);
suggested by Thomas Klausner <wiz at NetBSD>

Revision 1.87 / (download) - annotate - [select for diffs], Sat Jul 8 14:51:04 2017 UTC (6 years, 8 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_3, VERSION_1_14_2
Changes since 1.86: +3 -3 lines
Diff to previous 1.86 (colored) to selected 1.31 (colored)

1. Eliminate struct eqn, instead use the existing members
of struct roff_node which is allocated for each equation anyway.
2. Do not keep a list of equation parsers, one parser is enough.
Minus fifty lines of code, no functional change.

Revision 1.86 / (download) - annotate - [select for diffs], Fri Jun 23 02:32:12 2017 UTC (6 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.85: +2 -1 lines
Diff to previous 1.85 (colored) to selected 1.31 (colored)

Write text boxes as <mi>, <mn>, or <mo> as appropriate,
and write fontstyle or fontweight attributes where required.
Missing features reported by bentley@.

Revision 1.85 / (download) - annotate - [select for diffs], Thu May 4 22:16:09 2017 UTC (6 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.84: +3 -1 lines
Diff to previous 1.84 (colored) to selected 1.31 (colored)

Start roff formatter modules for HTML and termininal output,
used by both the mdoc and man formatters, with the ultimate
goal of reducing code duplication between the two macro formatters.
Made possible by the parser unification.
Add the first formatting function (for the .br request).

Revision 1.84 / (download) - annotate - [select for diffs], Wed Mar 15 11:29:53 2017 UTC (7 years ago) by schwarze
Branch: MAIN
Changes since 1.83: +3 -1 lines
Diff to previous 1.83 (colored) to selected 1.31 (colored)

Minimal support for deep linking into man(7) pages.
As the man(7) language does not provide semantic markup,
only .SH, .SS, and .UR become anchors for now.

Revision 1.83 / (download) - annotate - [select for diffs], Sun Feb 5 20:22:04 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_1, VERSION_1_13
Changes since 1.82: +2 -1 lines
Diff to previous 1.82 (colored) to selected 1.31 (colored)

mark up .Ar, .Fa, .Va, .Ft, and .Vt with <var> rather than <i>;
suggested by bentley@ long ago, but needed lots of cleanup first

Revision 1.82 / (download) - annotate - [select for diffs], Sun Feb 5 19:29:19 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.81: +2 -1 lines
Diff to previous 1.81 (colored) to selected 1.31 (colored)

for .Rs, use <cite>

Revision 1.81 / (download) - annotate - [select for diffs], Sun Feb 5 18:15:39 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.80: +2 -2 lines
Diff to previous 1.80 (colored) to selected 1.31 (colored)

Improve <table> syntax:
The <col> element can only appear inside <colgroup>, so use <colgroup>.
The <tbody> element is optional and useless, so don't use it.
Even if we would ever need <thead> or <tfoot>, <tbody> would still be
optional and useless; besides, we will likely never need <thead> or <tfoot>,
simply because our languages don't support such functionality.

Revision 1.80 / (download) - annotate - [select for diffs], Sun Jan 29 14:02:42 2017 UTC (7 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.79: +2 -6 lines
Diff to previous 1.79 (colored) to selected 1.31 (colored)

eliminate one useless struct and one level of indirection;
no functional change

Revision 1.79 / (download) - annotate - [select for diffs], Thu Jan 26 18:28:18 2017 UTC (7 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.78: +2 -1 lines
Diff to previous 1.78 (colored) to selected 1.31 (colored)

Fix -man -Thtml formatting after .nf (which has nothing to do
with "literal", by the way, it means "no fill"):

* Use <pre> such that whitespace is preserved.
* Preserve lines breaks.
* For font alternating macros, avoid node recursion which required
scary juggling with the fill state.  Instead, simply print the text
children directly.

Missing feature first noticed by kristaps@ in 2011,
the again reported by afresh1@ in 2016,
and finally reported here: https://github.com/Debian/debiman/issues/21 ,
which i only found because of Shane Kerr's comment here:
https://plus.google.com/110314300533310775053/posts/H1eaw9Yskoc

Revision 1.78 / (download) - annotate - [select for diffs], Thu Jan 19 16:59:30 2017 UTC (7 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.77: +1 -2 lines
Diff to previous 1.77 (colored) to selected 1.31 (colored)

clean up markup of .Bd, .D1, .Dl, .Li, and .Ql;
in particular, stop abuse of <blockquote>

Revision 1.77 / (download) - annotate - [select for diffs], Thu Jan 19 01:00:14 2017 UTC (7 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.76: +6 -3 lines
Diff to previous 1.76 (colored) to selected 1.31 (colored)

Implement line breaking of the generated HTML code at space characters
in filled text.  This does not affect HTML semantics, but makes the
HTML code even more humanly readable.

While here,
- collapse multiple consecutive space characters in filled text
- and insert a blank between style entries.

Revision 1.76 / (download) - annotate - [select for diffs], Wed Jan 18 19:22:22 2017 UTC (7 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.75: +4 -1 lines
Diff to previous 1.75 (colored) to selected 1.31 (colored)

Make HTML output more human readable by overhauling line break logic
around tags and by introducing some simple indentation.
No change of HTML semantics intended.

Revision 1.75 / (download) - annotate - [select for diffs], Tue Jan 17 15:32:43 2017 UTC (7 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.74: +1 -16 lines
Diff to previous 1.74 (colored) to selected 1.31 (colored)

Completely delete the buf field of struct html and all the buf*()
interfaces.  Such a static buffer was a bad idea in the first place,
causing unfixable truncation that was only prevented by triggering
an assertion failure.  Instead, let the small number of remaining
users allocate and free their own, temporary dynamic buffers,
or for the case of .Xr and .In, pass the original data to be
assembled in print_otag().

Revision 1.74 / (download) - annotate - [select for diffs], Tue Jan 17 01:47:51 2017 UTC (7 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.73: +3 -36 lines
Diff to previous 1.73 (colored) to selected 1.31 (colored)

Simplify the usage of print_otag() by making it accept a variable
number of arguments.

Delete struct htmlpair and all the PAIR_*() macros.
Delete enum htmlattr, handle that in print_otag() instead.

Minus 190 lines of code; no functional change except better ordering
of attributes (class before style) in three cases.

Revision 1.73 / (download) - annotate - [select for diffs], Tue Jul 19 13:36:13 2016 UTC (7 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.72: +3 -5 lines
Diff to previous 1.72 (colored) to selected 1.31 (colored)

Use __attribute__((__format__ throughout.
Triggered by a smaller patch from Christos Zoulas.

While here, unify style, move several config tests to config.h,
and delete the useless MANDOC_CONFIG_H.

Revision 1.72 / (download) - annotate - [select for diffs], Sat Nov 7 14:01:16 2015 UTC (8 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_4
Changes since 1.71: +1 -4 lines
Diff to previous 1.71 (colored) to selected 1.31 (colored)

In private header files, __BEGIN_DECLS and __END_DECLS are pointless.
Because these work slightly differently on different systems,
they are becoming a maintenance burden in the portable version,
so delete them.

Besides, one of the chief design goals of the mandoc toolbox is to
make sure that nothing related to documentation requires C++.
Consequently, linking mandoc against any kind of C++ program would
defeat the purpose and is not supported.
I don't understand why kristaps@ added them in the first place.

Revision 1.71 / (download) - annotate - [select for diffs], Tue Oct 13 22:59:54 2015 UTC (8 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.70: +1 -2 lines
Diff to previous 1.70 (colored) to selected 1.31 (colored)

Major character table cleanup:
* Use ohash(3) rather than a hand-rolled hash table.
* Make the character table static in the chars.c module:
There is no need to pass a pointer around, we most certainly
never want to use two different character tables concurrently.
* No need to keep the characters in a separate file chars.in;
that merely encourages downstream porters to mess with them.
* Sort the characters to agree with the mandoc_chars(7) manual page.
* Specify Unicode codepoints in hex, not decimal (that's the detail
that originally triggered this patch).
No functional change, minus 100 LOC, and i don't see a performance change.

Revision 1.70 / (download) - annotate - [select for diffs], Tue Dec 2 10:08:06 2014 UTC (9 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_3, VERSION_1_13_2
Changes since 1.69: +2 -1 lines
Diff to previous 1.69 (colored) to selected 1.31 (colored)

Fix the implementation and documentation of \c (continue text input line).
In particular, make it work in no-fill mode, too.
Reminded by Carsten dot Kunze at arcor dot de (Heirloom roff).

Revision 1.69 / (download) - annotate - [select for diffs], Mon Dec 1 08:05:52 2014 UTC (9 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.68: +6 -3 lines
Diff to previous 1.68 (colored) to selected 1.31 (colored)

header cleanup:
* add missing forward declarations
* remove needless header inclusions
* some style unification

Revision 1.68 / (download) - annotate - [select for diffs], Mon Dec 1 04:05:31 2014 UTC (9 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.67: +1 -5 lines
Diff to previous 1.67 (colored) to selected 1.31 (colored)

remove unneccessary inclusion protection; patch from deraadt@

Revision 1.67 / (download) - annotate - [select for diffs], Tue Oct 28 17:36:19 2014 UTC (9 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.66: +2 -2 lines
Diff to previous 1.66 (colored) to selected 1.31 (colored)

Make the character table available to libroff so it can check the
validity of character escape names and warn about unknown ones.
This requires mchars_spec2cp() to report unknown names again.
Fortunately, that doesn't require changing the calling code because
according to groff, invalid character escapes should not produce
output anyway, and now that we warn about them, that's fine.

Revision 1.66 / (download) - annotate - [select for diffs], Fri Oct 10 15:26:29 2014 UTC (9 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.65: +2 -2 lines
Diff to previous 1.65 (colored) to selected 1.31 (colored)

sync Copyright years after merge to OpenBSD; no code change

Revision 1.65 / (download) - annotate - [select for diffs], Fri Oct 10 08:44:24 2014 UTC (9 years, 5 months ago) by kristaps
Branch: MAIN
Changes since 1.64: +2 -1 lines
Diff to previous 1.64 (colored) to selected 1.31 (colored)

Re-write of eqn(7) parser and MathML output.
This adds parser-level support for the grammar described by the eqn
second-edition technical paper, "Typesetting Mathematics — User's Guide"
(Kernighan, Cherry).
The reason for this re-write is the grouping rules, which were not
possible given the existing implementation.
The re-write has also considerably simplified the HTML (and, if it ever
is completed, terminal) front-end.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Sep 28 20:14:20 2014 UTC (9 years, 6 months ago) by kristaps
Branch: MAIN
Changes since 1.63: +4 -1 lines
Diff to previous 1.63 (colored) to selected 1.31 (colored)

Change "to" and "from" commands to use munder, mover, and munderover.

Revision 1.63 / (download) - annotate - [select for diffs], Sun Sep 28 11:33:15 2014 UTC (9 years, 6 months ago) by kristaps
Branch: MAIN
Changes since 1.62: +16 -1 lines
Diff to previous 1.62 (colored) to selected 1.31 (colored)

Add support for some MathML elements and attributes in our HTML5.

Revision 1.62 / (download) - annotate - [select for diffs], Sat Sep 27 11:17:19 2014 UTC (9 years, 6 months ago) by kristaps
Branch: MAIN
Changes since 1.61: +1 -7 lines
Diff to previous 1.61 (colored) to selected 1.31 (colored)

Don't pretend we have a separate XHTML and HTML mode any more.

Revision 1.61 / (download) - annotate - [select for diffs], Sat Sep 27 10:56:18 2014 UTC (9 years, 6 months ago) by kristaps
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored) to selected 1.31 (colored)

Remove <p> in favour of <div class="spacer">.
This is good because <p> is brittle: it can't appear within other block
macros.
This fixes a regression of the original HTML5 patch as noted by schwarze@
on the tech@ list, 14/8/2014.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Sep 27 09:26:01 2014 UTC (9 years, 6 months ago) by kristaps
Branch: MAIN
Changes since 1.59: +1 -2 lines
Diff to previous 1.59 (colored) to selected 1.31 (colored)

Remove last hard-coded width attribute.

Revision 1.59 / (download) - annotate - [select for diffs], Sat Sep 27 09:20:03 2014 UTC (9 years, 6 months ago) by kristaps
Branch: MAIN
Changes since 1.58: +1 -2 lines
Diff to previous 1.58 (colored) to selected 1.31 (colored)

HTML5-isation: remove more alignments.

Revision 1.58 / (download) - annotate - [select for diffs], Sat Sep 27 09:05:57 2014 UTC (9 years, 6 months ago) by kristaps
Branch: MAIN
Changes since 1.57: +1 -3 lines
Diff to previous 1.57 (colored) to selected 1.31 (colored)

Kick out "summary" attribute, which isn't HTML5.

Revision 1.57 / (download) - annotate - [select for diffs], Sat Sep 27 09:03:24 2014 UTC (9 years, 6 months ago) by kristaps
Branch: MAIN
Changes since 1.56: +1 -3 lines
Diff to previous 1.56 (colored) to selected 1.31 (colored)

Kick out two attibutes we don't use any more in HTML5.

Revision 1.56 / (download) - annotate - [select for diffs], Sat Sep 27 09:02:19 2014 UTC (9 years, 6 months ago) by kristaps
Branch: MAIN
Changes since 1.55: +2 -1 lines
Diff to previous 1.55 (colored) to selected 1.31 (colored)

First, add space for default styling for HTML5 (non-fragment) output.
This uses a <style /> block right before the <link /> for the stylesheet.
Use this to kick out hardcoded header and footer table widths.

Revision 1.55 / (download) - annotate - [select for diffs], Sat Sep 27 08:54:34 2014 UTC (9 years, 6 months ago) by kristaps
Branch: MAIN
Changes since 1.54: +2 -1 lines
Diff to previous 1.54 (colored) to selected 1.31 (colored)

First steps in HTML5: use UTF8 meta-charset and HTML5 doctype identifier.

Revision 1.54 / (download) - annotate - [select for diffs], Wed Sep 17 19:55:59 2014 UTC (9 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.53: +3 -1 lines
Diff to previous 1.53 (colored) to selected 1.31 (colored)

implement .An -[no]split for -Thtml

Revision 1.53 / (download) - annotate - [select for diffs], Thu Aug 14 00:31:43 2014 UTC (9 years, 7 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_12_4, VERSION_1_12
Changes since 1.52: +1 -2 lines
Diff to previous 1.52 (colored) to selected 1.31 (colored)

Revert previous, as requested by kristaps@.
The .Bf block can contain subblocks, so it has to render as an
element that can contain flow content.  But <em> cannot contain
flow content, only phrasing content.  Rendering .Em and .Bf differently
would by unfortunate, and closing out .Bf before subblocks and
re-opening it afterwards would merely complicate both the C code
of the program and the generated HTML code.  Besides, converting
.Em to semantic HTML markup would require some content to be put
into <em> and some into <i>, but we cannot automatically distinguish
which is which, so strictly speaking, we can't use semantic HTML
here but have to fall back to physical markup.  Wonders of HTML...

Revision 1.52 / (download) - annotate - [select for diffs], Wed Aug 13 15:25:22 2014 UTC (9 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored) to selected 1.31 (colored)

Use <em> for .Em and .Bf -emphasis.

The vast majority of .Em in real-world manuals is stress emphasis,
for which <em> is the correct markup.  Admittedly, there are some
instances of .Em usage for alternate quality, for which <i> would
be a better match.  Most of these are technical terms that neither
allow semantic markup nor are keywords - for the latter, .Sy would
be preferable.  A typical example is that the shell breaks input into
.Em words .
Alternate voice or mood, which would also require <i>, is almost
absent from manuals.
We cannot satisfy both stress emphasis and alternate quality, so
pick the one that fits more often and looks less wrong when off.

Patch from Guy Harris <guy at alum dot mit dot edu>.
ok joerg@ bentley@

Revision 1.51 / (download) - annotate - [select for diffs], Sun Apr 20 16:46:04 2014 UTC (9 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_1
Changes since 1.50: +7 -7 lines
Diff to previous 1.50 (colored) to selected 1.31 (colored)

KNF: case (FOO):  ->  case FOO:, remove /* LINTED */ and /* ARGSUSED */,
remove trailing whitespace and blanks before tabs, improve some indenting;
no functional change

Revision 1.50 / (download) - annotate - [select for diffs], Sun Jan 5 19:10:56 2014 UTC (10 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.49: +4 -1 lines
Diff to previous 1.49 (colored) to selected 1.31 (colored)

Tag functions with format strings as arguments as printf-like.
Fix one case where a non-literal is used as format string.
Fix another case where a variable is formatted using the wrong type.

Revision 1.49 / (download) - annotate - [select for diffs], Thu Aug 8 20:07:47 2013 UTC (10 years, 7 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_12_3, VERSION_1_12_2
Changes since 1.48: +2 -1 lines
Diff to previous 1.48 (colored) to selected 1.31 (colored)

Implement the roff(7) font-escape sequence \f(BI "bold+italic".
This improves the formatting of about 40 base manuals
and reduces groff-mandoc formatting differences in base by about 5%.

Revision 1.48 / (download) - annotate - [select for diffs], Thu May 31 22:29:13 2012 UTC (11 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.47: +2 -1 lines
Diff to previous 1.47 (colored) to selected 1.31 (colored)

Implement the roff \z escape sequence, intended to output the next
character without advancing the cursor position; implement it to
simply skip the next character, as it will usually be overwritten.

With this change, the pod2man(1) preamble user-defined string \*:,
intended to render as a diaeresis or umlaut diacritic above the
preceding character, is rendered in a slightly less ugly way,
though still not correctly.  It was rendered as "z.." and is now
rendered as ".".

Given that the definition of \*: uses elaborate manual \h positioning,
there is little chance for mandoc(1) to ever render it correctly,
but at least we can refrain from printing out a spurious "z", and
we can make the \z do something semi-reasonable for easier cases.

"just commit" kristaps@

Revision 1.47 / (download) - annotate - [select for diffs], Wed Oct 5 21:35:17 2011 UTC (12 years, 5 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_12_1, VERSION_1_12_0
Changes since 1.46: +6 -4 lines
Diff to previous 1.46 (colored) to selected 1.31 (colored)

Add the -Ofragment option to -T[]x]html.  This accomodates for embedding
manual output in existing HTML or XHTML documents, e.g., when invoking
mandoc from an SSI or CGI.

Revision 1.46 / (download) - annotate - [select for diffs], Sun Sep 18 14:14:15 2011 UTC (12 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored) to selected 1.31 (colored)

forgotten Copyright bumps; no code change
found while syncing to OpenBSD

Revision 1.45 / (download) - annotate - [select for diffs], Sat Jul 23 22:57:13 2011 UTC (12 years, 8 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_11_7, VERSION_1_11_6, VERSION_1_11_5
Changes since 1.44: +2 -1 lines
Diff to previous 1.44 (colored) to selected 1.31 (colored)

Flip on equation printing for -T[x]html.

Revision 1.44 / (download) - annotate - [select for diffs], Tue May 17 11:34:31 2011 UTC (12 years, 10 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_11_4, VERSION_1_11_3
Changes since 1.43: +7 -7 lines
Diff to previous 1.43 (colored) to selected 1.31 (colored)

Cleanups in -T[x]html: make html_idcat() use the buffer and be called
bufcat_id(), then collapse it into a little function without so much
crap.  Next, make bufinit() only be called when we really need to do so,
and not simply before pre/post calls.

Revision 1.43 / (download) - annotate - [select for diffs], Tue May 17 11:19:45 2011 UTC (12 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.42: +2 -3 lines
Diff to previous 1.42 (colored) to selected 1.31 (colored)

Clean-ups in -T[x]html: inline print_num(), as it was just a single
conditional; same for print_xmltype() and print_doctype(), same reason;
make bufncat() be static, as it was only being called from html.c;
have bufcat() simply call through to strlcat().  Finally, assert()
whenever we truncate.

Also rename buffmt() -> bufcat_fmt() to differentiate from buffmt_man et
al., which do not concatenate.

Revision 1.42 / (download) - annotate - [select for diffs], Sat May 14 16:28:23 2011 UTC (12 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.41: +2 -1 lines
Diff to previous 1.41 (colored) to selected 1.31 (colored)

Give -Thtml and -Txhtml the gift of recognising escapes when calculating
widths (e.g., `Bl -tag -width "\s[blahblah]bar").  This has long since
been done for -Tascii but escaped noticed with -T[x]html.

Revision 1.41 / (download) - annotate - [select for diffs], Fri Apr 29 22:18:12 2011 UTC (12 years, 11 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_11_2
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored) to selected 1.31 (colored)

Move "chars" interface out of out.h and into mandoc.h.  This doesn't
change any code but for renaming functions and types to be consistent
with other mandoc.h stuff.  The reason for moving into libmandoc is that
the rendering of special characters is part of mandoc itself---not an
external part.  From mandoc(1)'s perspective, this changes nothing, but
for other utilities, it's important to have these part of libmandoc.
Note this isn't documented [yet] in mandoc.3 because there are some
parts I'd like to change around beforehand.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Jan 29 14:49:44 2011 UTC (13 years, 2 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_11_1, VERSION_1_10_10
Changes since 1.39: +4 -3 lines
Diff to previous 1.39 (colored) to selected 1.31 (colored)

When in a <PRE>, don't print out the <BR> before lines that have leading
whitespace.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Jan 13 14:30:13 2011 UTC (13 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.38: +4 -1 lines
Diff to previous 1.38 (colored) to selected 1.31 (colored)

Change how -Thtml behaves with tables: use multiple rows, with widths
set by COL, until an external macro is encountered.  At this point in
time, close out the table and process the macro.  When the first table
row is again re-encountered, re-start the table.  This requires a bit of
tracking added to "struct html", but the change is very small and
follows the logic of meta-fonts.  This all follows a bug-report by
joerg@.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Jan 6 11:55:39 2011 UTC (13 years, 2 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_9
Changes since 1.37: +8 -10 lines
Diff to previous 1.37 (colored) to selected 1.31 (colored)

Make -T[x]html for tables structure cells with a width.  I don't
anticipate doing much more than this for the coming release.

Also, remove "base" part of struct html (not used anywhere) and put some
comments in struct html.h.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Jan 4 10:29:41 2011 UTC (13 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.36: +2 -1 lines
Diff to previous 1.36 (colored) to selected 1.31 (colored)

Add skeleton for -T[x]html tbl stuff.  Also start to put in some bits about
the up-coming version, although we're not quite there yet.

Revision 1.36 / (download) - annotate - [select for diffs], Fri Dec 24 14:14:00 2010 UTC (13 years, 3 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_8
Changes since 1.35: +1 -2 lines
Diff to previous 1.35 (colored) to selected 1.31 (colored)

Apparently the U tag is deprecated, so use a SPAN instead (blah).  Bump
version date for release.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Dec 24 00:46:49 2010 UTC (13 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.34: +5 -5 lines
Diff to previous 1.34 (colored) to selected 1.31 (colored)

Drastically fix -T[x]html's handling of font-escape mode changes (i.e.,
using \fI or \fP).  Now, using these modes will cause a font to be
rendered for each word; furthermore, setting mode within a word will do
the correct thing.

Second, make -man use real font tags (B, I, SMALL) to set its font
instead of using font modes and fix up the pre-macro unsetting of the
current mode.

This fixes how roff.7 wasn't validating (<P> closing out a font mode)
and has been checked against gcc.1 (more will come).  I considered
failure to validate OUR manual to be a show-stopper for the up-coming
release.

Revision 1.34 / (download) - annotate - [select for diffs], Wed Dec 22 11:15:16 2010 UTC (13 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored) to selected 1.31 (colored)

Implement reference-counted version of original union mdoc_data.  This
simplifies clean-up and allows for more types without extra hassle.

Also made in-line literal types in -T[x]html use CODE instead of SPAN to
match how literal blocks use PRE.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Dec 20 13:07:55 2010 UTC (13 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.32: +3 -1 lines
Diff to previous 1.32 (colored) to selected 1.31 (colored)

More use default tags, this time I and U.  Also fix a stack overflow
segfault in the last commit.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Dec 20 10:40:11 2010 UTC (13 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

Give header and footer table cells default widths (using WIDTH and ALIGN
atttributes) if no style is specified.

Give the default-bold elements a B tag instead of a SPAN tag, as this
can be overriden in the stylesheet.

Prune some unused attributes from html.h.

Revision 1.31 / (download) - annotate - [selected], Fri Dec 17 10:37:26 2010 UTC (13 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.30: +2 -1 lines
Diff to previous 1.30 (colored)

Make literal `Bd' use a PRE in -Thtml.  Make `Bd' output in general use
only a single DIV or PRE.  Tag all displays with display class.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Dec 15 17:19:41 2010 UTC (13 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.29: +2 -1 lines
Diff to previous 1.29 (colored) to selected 1.31 (colored)

Use a single P tag for paragraph breaks (which can be configured for
paragraph breaking in CSS).

Use -man's handling of `sp' and `br', which accomodates for scaling
widths (-mdoc wasn't).

Revision 1.29 / (download) - annotate - [select for diffs], Wed Dec 15 15:59:23 2010 UTC (13 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored) to selected 1.31 (colored)

Remove stupid outer DIV tag in favour of regular BODY and HTML that can
be handled in CSS.

Clarified "lit" tag (will be the subject of future clarification).

Removed CSS2 note in mandoc.1, which is no longer the case.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Dec 15 14:52:16 2010 UTC (13 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.27: +5 -11 lines
Diff to previous 1.27 (colored) to selected 1.31 (colored)

In-progress move from -T[x]html using DIVs for its lists to using DL,
OL, and UL.  Issue raised by Will Backman, solution proposed by
schwarze@.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Jul 23 00:08:57 2010 UTC (13 years, 8 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_7, VERSION_1_10_6, VERSION_1_10_5_PREPDF, VERSION_1_10_5
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored) to selected 1.31 (colored)

Add support for `Sm' in -T[x]html -mdoc.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Jul 13 23:53:20 2010 UTC (13 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored) to selected 1.31 (colored)

correct lots of copyright notices;
ok kristaps@

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jul 6 12:37:17 2010 UTC (13 years, 8 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_4
Changes since 1.24: +4 -2 lines
Diff to previous 1.24 (colored) to selected 1.31 (colored)

Give -T[x]html `Bk -words' capability.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Jun 19 20:46:27 2010 UTC (13 years, 9 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_3, VERSION_1_10_2
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored) to selected 1.31 (colored)

Churn as I finish email address migration kth.se -> bsd.lv.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Apr 5 08:51:56 2010 UTC (13 years, 11 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_25, VERSION_1_9_24, VERSION_1_9_23, VERSION_1_10_1
Changes since 1.22: +12 -13 lines
Diff to previous 1.22 (colored) to selected 1.31 (colored)

Fix in `Mt' mailto from a patch by Tim van der Molen.
Fixed PAIR_xxx_INIT macros -- this are to be unified.
Have `Vt', `Fn', `Ft', and `Fo' print whitespace afterward, instead of before.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jan 29 14:39:38 2010 UTC (14 years, 2 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_22, VERSION_1_9_21, VERSION_1_9_20, VERSION_1_9_19, VERSION_1_9_18, VERSION_1_9_17, VERSION_1_9_16, VERSION_1_9_15
Changes since 1.21: +8 -4 lines
Diff to previous 1.21 (colored) to selected 1.31 (colored)

Fixed Makefile for `make lint' dep. on config.h
Added -Txhtml for XHTML output (minimal increase to programme logic).  Because groff has it and it bothers me that we don't.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Nov 16 06:07:49 2009 UTC (14 years, 4 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_15-pre2, VERSION_1_9_15-pre1, VERSION_1_9_14
Changes since 1.20: +11 -1 lines
Diff to previous 1.20 (colored) to selected 1.31 (colored)

Abstraction of -Thtml -man font setting (still experimental).

Revision 1.20 / (download) - annotate - [select for diffs], Sat Nov 14 12:04:59 2009 UTC (14 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.19: +1 -2 lines
Diff to previous 1.19 (colored) to selected 1.31 (colored)

Removed superfluous HTML_NEWLINE.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Nov 14 11:58:36 2009 UTC (14 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.18: +2 -5 lines
Diff to previous 1.18 (colored) to selected 1.31 (colored)

Fixed \c handling in -Thtml.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Nov 10 16:20:22 2009 UTC (14 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.17: +5 -1 lines
Diff to previous 1.17 (colored) to selected 1.31 (colored)

(Forgot to update html.h with metafonts.  Build will puke on check-out.)

Revision 1.17 / (download) - annotate - [select for diffs], Wed Oct 28 08:00:18 2009 UTC (14 years, 5 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_13, VERSION_1_9_12
Changes since 1.16: +1 -2 lines
Diff to previous 1.16 (colored) to selected 1.31 (colored)

Fixed `sp', `br', `Pp', etc. so as not to have an empty div (-Thtml, -man, -mdoc).
Made html_idcat be completely correct (messy standard) (-Thtml).
Fixed warnings about -ohang and -item lists (-Thtml, -mdoc).
Fixed typo in index.sgml.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Oct 28 05:08:17 2009 UTC (14 years, 5 months ago) by kristaps
Branch: MAIN
Changes since 1.15: +4 -1 lines
Diff to previous 1.15 (colored) to selected 1.31 (colored)

Fixed un-reset buffer in `.In', -Thtml, -mdoc.
Added html_id[cat,cpy] for transforming id's into well-formed attribute strings (no %s, etc.).

Revision 1.15 / (download) - annotate - [select for diffs], Tue Oct 27 04:50:14 2009 UTC (14 years, 5 months ago) by kristaps
Branch: MAIN
Changes since 1.14: +5 -1 lines
Diff to previous 1.14 (colored) to selected 1.31 (colored)

Added "summary" tag to tables in order to silence HTML-tidy's complaints.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Oct 26 08:18:16 2009 UTC (14 years, 5 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_11, VERSION_1_9_10
Changes since 1.13: +10 -6 lines
Diff to previous 1.13 (colored) to selected 1.31 (colored)

Portability: replaced queue macros in html.c (Joerg Sonnenberger).
Fixed "-o" residue.
Added "-O" to usage() (-o didn't appear there either).

Revision 1.13 / (download) - annotate - [select for diffs], Tue Oct 13 10:21:24 2009 UTC (14 years, 5 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_9
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored) to selected 1.31 (colored)

Clean up consts (noted by Joerg Sonnenberger and Ulrich Sporlein).

Revision 1.12 / (download) - annotate - [select for diffs], Wed Oct 7 12:35:23 2009 UTC (14 years, 5 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_8, VERSION_1_9_7
Changes since 1.11: +19 -2 lines
Diff to previous 1.11 (colored) to selected 1.31 (colored)

Additions to -Tman -Thtml: all structural components tested & in place.
Fitted both -Thtml with handling of arbitrary vertical and horizontal scaling units (see groff(7)).  Undocumented until fitted into -Tascii (next release).

Revision 1.11 / (download) - annotate - [select for diffs], Sun Oct 4 09:02:40 2009 UTC (14 years, 5 months ago) by kristaps
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored) to selected 1.31 (colored)

Example style-sheet reflecting modified section/subsection style tags.
Added ATTR_ID and so forth to attrs.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Oct 3 16:36:06 2009 UTC (14 years, 5 months ago) by kristaps
Branch: MAIN
Changes since 1.9: +8 -1 lines
Diff to previous 1.9 (colored) to selected 1.31 (colored)

Fixed mandoc.1 examples (new -Thtml options).
Fixed manuals to use `In', not `Fd'.
Moved buf* functions into html.c.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Oct 3 15:26:26 2009 UTC (14 years, 5 months ago) by kristaps
Branch: MAIN
Changes since 1.8: +3 -1 lines
Diff to previous 1.8 (colored) to selected 1.31 (colored)

Added the -oincludes=FMT option.
The `In' handler now decorates with a hyperlink.
If no -oman= or -oincludes= is stipulated, no link is printed (but the text is still style-decorated).

Revision 1.8 / (download) - annotate - [select for diffs], Sat Oct 3 15:08:09 2009 UTC (14 years, 5 months ago) by kristaps
Branch: MAIN
Changes since 1.7: +4 -1 lines
Diff to previous 1.7 (colored) to selected 1.31 (colored)

Element tag buffer is now part of struct html.
buffmt() can be called in sequence.
Noted BUFSIZ-sized buffer in CAVEATS (attribute length for link formats).
Added -oman=FMT -Thtml option for `Xr' manual links.
Removed -obase=URI -Thtml option (obsolete).

Revision 1.7 / (download) - annotate - [select for diffs], Thu Sep 24 09:50:31 2009 UTC (14 years, 6 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_6
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored) to selected 1.31 (colored)

Added Bf, Pf, etc. to -Thtml.
Fixed Rs in -Tascii to behave properly when not in "SEE ALSO" section.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Sep 21 14:56:56 2009 UTC (14 years, 6 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_5
Changes since 1.5: +86 -70 lines
Diff to previous 1.5 (colored) to selected 1.31 (colored)

Split html.c into html.h, mdoc_html.c, man_html.c.

Revision 1.5, Mon Dec 15 01:54:58 2008 UTC (15 years, 3 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_8_5, VERSION_1_8_1, VERSION_1_7_16, VERSION_1_7_15, VERSION_1_6_5, VERSION_1_5_1, VERSION_1_3_6, VERSION_1_3_15, VERSION_1_2_0, OPENBSD_CHECKIN
Changes since 1.4: +1 -1 lines
FILE REMOVED

Purged all old files in favour of new design.  Selective reintegration.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Dec 10 17:40:56 2008 UTC (15 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.3: +4 -2 lines
Diff to previous 1.3 (colored) to selected 1.31 (colored)

Prettier HTML.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Dec 10 12:09:47 2008 UTC (15 years, 3 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_0_2
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored) to selected 1.31 (colored)

Linted on NetBSD side.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Dec 10 00:58:15 2008 UTC (15 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored) to selected 1.31 (colored)

*** empty log message ***

Revision 1.1 / (download) - annotate - [select for diffs], Wed Dec 10 00:52:46 2008 UTC (15 years, 3 months ago) by kristaps
Branch: MAIN
Diff to selected 1.31 (colored)

*** empty log message ***

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