]> git.cameronkatri.com Git - mandoc.git/log
mandoc.git
13 years agoAdd -Ofragment mode to release notes.
Kristaps Dzonsons [Wed, 5 Oct 2011 21:43:11 +0000 (21:43 +0000)]
Add -Ofragment mode to release notes.

13 years agoAdd the -Ofragment option to -T[]x]html. This accomodates for embedding
Kristaps Dzonsons [Wed, 5 Oct 2011 21:35:17 +0000 (21:35 +0000)]
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.

13 years agoBreak schwarze@'s release notes into sections. Ok schwarze@.
Kristaps Dzonsons [Sun, 2 Oct 2011 18:37:25 +0000 (18:37 +0000)]
Break schwarze@'s release notes into sections.  Ok schwarze@.

13 years agoMake -T[x]html suppress output with \& (and similar zwsp points). This
Kristaps Dzonsons [Sun, 2 Oct 2011 10:02:26 +0000 (10:02 +0000)]
Make -T[x]html suppress output with \& (and similar zwsp points).  This
fixes lynx's rendering of manuals with the \&, which were rendering as
​ in the text.  Reported by Paul de Weerd, thanks!

13 years agoimplement .Ap .Bd .Bo .Bq .D1 .Ic .Lp .Oo .Pf .Po .Ss .Sx .Sy .br .sp
Ingo Schwarze [Fri, 30 Sep 2011 00:13:28 +0000 (00:13 +0000)]
implement .Ap .Bd .Bo .Bq .D1 .Ic .Lp .Oo .Pf .Po .Ss .Sx .Sy .br .sp
implement .Bl -bullet
add more information to the .TH line
escape dots at the beginnings of lines
add trailing newline character at the end of the file
do not misinterpret the ROOT block as .Ap

13 years agolist the work done during s2k11
Ingo Schwarze [Tue, 27 Sep 2011 22:59:01 +0000 (22:59 +0000)]
list the work done during s2k11

13 years agoeven though .Bl is not callable, groff complains when it appears
Ingo Schwarze [Tue, 27 Sep 2011 21:49:23 +0000 (21:49 +0000)]
even though .Bl is not callable, groff complains when it appears
unescaped on a macro line, so lets just escape it;
noticed by jmc@

13 years agoReorganize part of the content:
Ingo Schwarze [Mon, 26 Sep 2011 23:07:31 +0000 (23:07 +0000)]
Reorganize part of the content:

1) Move the LANGUAGE SYNTAX from mdoc(7) and man(7) to roff(7),
it's common to both and it's actually roff syntax.
2) Move the MACRO SYNTAX down to the bottom, such that the less
technical parts MANUAL STRUCTURE and MACRO OVERVIEW get to the top.

Getting everything to again fit together after the reshuffling
required various adjustments; also adjust and improve
the DESCRIPTIONS while there.

feedback and "go ahead"  jmc@ kristaps@

13 years agorestore alphabetical order for the -Toutput list, and use a width
Ingo Schwarze [Mon, 26 Sep 2011 20:47:23 +0000 (20:47 +0000)]
restore alphabetical order for the -Toutput list, and use a width
specifier that makes it look nicer;
from jmc@, ok kristaps@

13 years agotypos found by jmc@
Ingo Schwarze [Sun, 25 Sep 2011 18:37:09 +0000 (18:37 +0000)]
typos found by jmc@

13 years agoAs noticed by kristaps@, when breaking an overflowing line,
Ingo Schwarze [Wed, 21 Sep 2011 09:57:13 +0000 (09:57 +0000)]
As noticed by kristaps@, when breaking an overflowing line,
forget about pending whitespace (vbl), or the next line would
be misaligned and potentially too long; but i'm fixing this
in a simpler way than he proposed.
Also remove the kludges in .HP that compensated for this bug.

13 years agosync to groff: support .Lb -libdwarf, update .Lb -libelf
Ingo Schwarze [Tue, 20 Sep 2011 23:36:24 +0000 (23:36 +0000)]
sync to groff: support .Lb -libdwarf, update .Lb -libelf
after Werner Lemberg committed a patch by Joseph Koshy

13 years agoMajor rewrite of the horizontal spacing of tables
Ingo Schwarze [Tue, 20 Sep 2011 23:05:49 +0000 (23:05 +0000)]
Major rewrite of the horizontal spacing of tables
to work both with and without frames and rulers.
ok kristaps@

13 years agoadd a MACRO OVERVIEW section, similar to the one in mdoc(7);
Ingo Schwarze [Tue, 20 Sep 2011 22:46:47 +0000 (22:46 +0000)]
add a MACRO OVERVIEW section, similar to the one in mdoc(7);
writing this for man(7), too, was suggested by kristaps@

13 years agoUsing user-defined macros, surprisingly, it is possible
Ingo Schwarze [Tue, 20 Sep 2011 14:20:48 +0000 (14:20 +0000)]
Using user-defined macros, surprisingly, it is possible
to have *next*-line head arguments on the *same* input line.
So .TP must not assume that a head argument with a matching
input line number is a same-line argument (and access a NULL pointer).
Bug found and fix tested by kristaps@ with groff_hdtbl(7).

13 years agodo not assign pointers to literal strings
Ingo Schwarze [Tue, 20 Sep 2011 13:47:55 +0000 (13:47 +0000)]
do not assign pointers to literal strings
to variables that might be changed;
from kristaps@

13 years agoWhen advancing the left margin, .RS also needs to reset the right margin
Ingo Schwarze [Tue, 20 Sep 2011 13:13:23 +0000 (13:13 +0000)]
When advancing the left margin, .RS also needs to reset the right margin
to the default and check that the left does not outgrow the right one.
Otherwise, the (rmargin >= offset) assertion fails in term_flushln().
Bug found and fix tested by kristaps@ with NetBSD slapo-retcode(5).

13 years agoSync print_mdoc_head to print_man_head;
Ingo Schwarze [Tue, 20 Sep 2011 09:02:23 +0000 (09:02 +0000)]
Sync print_mdoc_head to print_man_head;
this was forgotten after man_term.c rev. 1.25 on March 2, 2010.
The benefit is a sane page header line when .Dt is very long.
Reminded by Thomas Klausner <wiz at NetBSD>, thanks.

13 years agoRemove the terminal frontend flag TERMP_NOLPAD.
Ingo Schwarze [Mon, 19 Sep 2011 22:36:16 +0000 (22:36 +0000)]
Remove the terminal frontend flag TERMP_NOLPAD.

In columnated contexts (.Bl -column, .Bl -tag, .IP, .TP, .HP etc.), do not
pad after writing a column.  Instead, always pad before writing content.

In itself, this change avoids:
 - writing trailing whitespace in some situations
 - with .fi/.nf in .HP, breaking lines that were already padded

It allows several bugfixes included in this patch:
 - Do not count backspace as a character with positive width.
 - Set up proper indentation when encountering .fi/.nf in .HP.
 - Adjust the .HP indentation width to what groff does.
 - Never unlimit the right margin unless in the final column.

ok kristaps@

13 years agoBreaking the line at a hyphen is only allowed if the hyphen
Ingo Schwarze [Mon, 19 Sep 2011 08:34:45 +0000 (08:34 +0000)]
Breaking the line at a hyphen is only allowed if the hyphen
is both preceded and followed by an alphabetic character.
ok kristaps@

13 years agoFix another regression introduced in 1.11.7:
Ingo Schwarze [Sun, 18 Sep 2011 23:51:31 +0000 (23:51 +0000)]
Fix another regression introduced in 1.11.7:
If a string is defined in terms of itself, the REPARSE_LIMIT in read.c
used to break the cycle.  This no longer works since all the work
is now done in the function roff_res(), looping indefinitely.

Make this loop finite by arbitrarily limiting the number of times one
string may be expanded; when that limit is reached, leave the remaining
string references unexpanded.

This changes behaviour compared to 1.11.5, where the whole line would
have been dropped.  The new behaviour is better because it loses less
information.  We don't want to imitate groff-1.20.1 behaviour anyway
because groff aborts parsing of the whole file.

ok kristaps@

13 years agofix a regression introduced in 1.11.7:
Ingo Schwarze [Sun, 18 Sep 2011 21:18:19 +0000 (21:18 +0000)]
fix a regression introduced in 1.11.7:
even a breakable hyphen may be bold or underlined
ok kristaps@

13 years agoSupport nesting of indented blocks.
Ingo Schwarze [Sun, 18 Sep 2011 21:08:34 +0000 (21:08 +0000)]
Support nesting of indented blocks.

This patch was originally written in July 2011 by kristaps@,
i promptly committed it to OpenBSD, and then it was forgotten.
Now i rediscovered it when merging 1.11.7 to OpenBSD.

ok kristaps@  (on his own patch :)

13 years agotwo issues were reported again
Ingo Schwarze [Sun, 18 Sep 2011 16:43:28 +0000 (16:43 +0000)]
two issues were reported again

13 years agoforgotten Copyright bumps; no code change
Ingo Schwarze [Sun, 18 Sep 2011 14:14:15 +0000 (14:14 +0000)]
forgotten Copyright bumps; no code change
found while syncing to OpenBSD

13 years agoAdd a MACRO OVERVIEW, listing all macros ordered by purpose,
Ingo Schwarze [Sun, 18 Sep 2011 07:57:16 +0000 (07:57 +0000)]
Add a MACRO OVERVIEW, listing all macros ordered by purpose,
each with a one-line discription.  Use this when wondering
which macro fits best for your particular use case, and whether
there are alternatives.
feedback ond ok jmc@, ok kristaps@

13 years agoInitial, incomplete support for -Tman
Ingo Schwarze [Sat, 17 Sep 2011 15:00:51 +0000 (15:00 +0000)]
Initial, incomplete support for -Tman
to convert mdoc(7) documents to the man(7) language.
This is work in progress and will be developed in tree.
It does already handle the cat(1) manual,
but will hardly handle all your fancy manuals yet.
go ahead  kristaps@ jmc@ millert@ deraadt@

13 years agofix an obvious typo: sz was used uninitialized
Ingo Schwarze [Sat, 17 Sep 2011 13:54:27 +0000 (13:54 +0000)]
fix an obvious typo: sz was used uninitialized
found while merging to OpenBSD

13 years agosupport ".St -iso8601"; committing on behalf of jmc@
Ingo Schwarze [Fri, 16 Sep 2011 20:44:57 +0000 (20:44 +0000)]
support ".St -iso8601"; committing on behalf of jmc@

13 years agoIt's unknown whether `SH' and `SS' closing out `nf' literalism is
Kristaps Dzonsons [Tue, 6 Sep 2011 17:56:00 +0000 (17:56 +0000)]
It's unknown whether `SH' and `SS' closing out `nf' literalism is
portable, so document it in COMPATIBILITY.

13 years agoRevert removal of tab warning, suggested by schwarze@.
Kristaps Dzonsons [Tue, 6 Sep 2011 17:53:50 +0000 (17:53 +0000)]
Revert removal of tab warning, suggested by schwarze@.

13 years agoRemove check for tab. man(7) says tab is Ok.
Kristaps Dzonsons [Sun, 4 Sep 2011 09:58:40 +0000 (09:58 +0000)]
Remove check for tab.  man(7) says tab is Ok.

13 years agoTeach -man that a literal context should be closed by SS/SH in the
Kristaps Dzonsons [Sun, 4 Sep 2011 09:49:46 +0000 (09:49 +0000)]
Teach -man that a literal context should be closed by SS/SH in the
backend (the front-end already accomodated for this).  Found indirectly
from a question by Brad Smith.

13 years agoFix handling of font modifiers in tables. Noted by Brad Smith.
Kristaps Dzonsons [Sat, 3 Sep 2011 00:29:21 +0000 (00:29 +0000)]
Fix handling of font modifiers in tables.  Noted by Brad Smith.

13 years agoMake -man check for tabs correctly print the column. VERSION_1_11_7
Kristaps Dzonsons [Fri, 2 Sep 2011 19:40:18 +0000 (19:40 +0000)]
Make -man check for tabs correctly print the column.

13 years agoFix typos and spelling errors found by demandoc -w | spell -b.
Kristaps Dzonsons [Fri, 2 Sep 2011 19:37:35 +0000 (19:37 +0000)]
Fix typos and spelling errors found by demandoc -w | spell -b.

13 years agoFix hypermail link.
Kristaps Dzonsons [Fri, 2 Sep 2011 14:00:09 +0000 (14:00 +0000)]
Fix hypermail link.

13 years agoAdding version notes.
Kristaps Dzonsons [Fri, 2 Sep 2011 13:04:05 +0000 (13:04 +0000)]
Adding version notes.

13 years agoFinishing touches on demandoc. It now backs over ending punctuation as
Kristaps Dzonsons [Thu, 1 Sep 2011 22:25:53 +0000 (22:25 +0000)]
Finishing touches on demandoc.  It now backs over ending punctuation as
well as leading punctuation.  Again, this isn't the same as deroff
(which uses, I think, some punctuation as delimiters), but it's easier
to explain and simpler to audit.

13 years agoMake `-w' mode work much better. This is INCREDIBLY poorly specified in
Kristaps Dzonsons [Thu, 1 Sep 2011 22:09:50 +0000 (22:09 +0000)]
Make `-w' mode work much better.  This is INCREDIBLY poorly specified in
any other deroff manual, and as I don't think anybody actually uses
deroff, I don't feel compelled to research its behaviour too much and
can just do what's logical.

13 years agoHave demandoc throw away deroff's flags.
Kristaps Dzonsons [Thu, 1 Sep 2011 20:55:50 +0000 (20:55 +0000)]
Have demandoc throw away deroff's flags.

13 years agoLint checks over demandoc.
Kristaps Dzonsons [Thu, 1 Sep 2011 10:49:13 +0000 (10:49 +0000)]
Lint checks over demandoc.

13 years agoAllow compilation on OpenBSD.
Kristaps Dzonsons [Thu, 1 Sep 2011 10:47:47 +0000 (10:47 +0000)]
Allow compilation on OpenBSD.

13 years agoAdd demandoc utility, a replacement for deroff.
Kristaps Dzonsons [Thu, 1 Sep 2011 10:46:28 +0000 (10:46 +0000)]
Add demandoc utility, a replacement for deroff.

13 years agoOrder -column lists to have the arguments follow `-column'. From a
Kristaps Dzonsons [Tue, 30 Aug 2011 13:14:01 +0000 (13:14 +0000)]
Order -column lists to have the arguments follow `-column'.  From a
patch by Jason McIntyre.

13 years agoRemove unnecessary `Pp'/`-compat' combination for column lists.
Kristaps Dzonsons [Tue, 30 Aug 2011 12:16:36 +0000 (12:16 +0000)]
Remove unnecessary `Pp'/`-compat' combination for column lists.
Directly from a patch by Jason McIntyre.

13 years agoMake sure that `Ql' literalises its arguments in -T[x]html. Found when
Kristaps Dzonsons [Fri, 26 Aug 2011 09:03:17 +0000 (09:03 +0000)]
Make sure that `Ql' literalises its arguments in -T[x]html.  Found when
doing manpages.bsd.lv stuff.

13 years agoAvoid incorrect casting by using an implicit cast. Reported by Thomas
Kristaps Dzonsons [Fri, 19 Aug 2011 13:59:23 +0000 (13:59 +0000)]
Avoid incorrect casting by using an implicit cast.  Reported by Thomas
Klausner.

13 years agoBring man.7's LANGUAGE SYNTAX in line with mdoc.7. While here, change
Kristaps Dzonsons [Fri, 19 Aug 2011 13:07:22 +0000 (13:07 +0000)]
Bring man.7's LANGUAGE SYNTAX in line with mdoc.7.  While here, change
out the \*q escapes.  Also fix some spelling typos in both manuals.

13 years agoMake LANGUAGE SYNTAX examples a bit more explanatory.
Kristaps Dzonsons [Fri, 19 Aug 2011 12:55:33 +0000 (12:55 +0000)]
Make LANGUAGE SYNTAX examples a bit more explanatory.

13 years agoFirst, use \(dq instead of \*q for double-quote. Second, use `Li' to
Kristaps Dzonsons [Fri, 19 Aug 2011 10:19:55 +0000 (10:19 +0000)]
First, use \(dq instead of \*q for double-quote.  Second, use `Li' to
note literal text in "Examples:" parts.  Finally, move parts of
Quotation related to keeping whitespace into Whitespace and clean up the
text to be a bit clearer.  Examples can be added back in at will, but
now it follows the general layout of explanation followed by examples.

13 years agoAlign `-offset indent' and `D1' by forcing BLOCKQUOTE to have a 5ex
Kristaps Dzonsons [Thu, 18 Aug 2011 09:16:01 +0000 (09:16 +0000)]
Align `-offset indent' and `D1' by forcing BLOCKQUOTE to have a 5ex
margin.  This is dubious: the HTML4 spec specifically says that
BLOCKQUOTE shouldn't be abused for indentation, which is exactly what we
do.  However, `D1' needs indentation and it's the only way to force text
browsers to do so.  Alternatives?

Also remove the unused HALFINDENT defines while here.

13 years agoSlightly tweak www section/subsections.
Kristaps Dzonsons [Thu, 18 Aug 2011 09:02:57 +0000 (09:02 +0000)]
Slightly tweak www section/subsections.

13 years agoHave `Li' be correctly monospaced in -T[x]html. Also make sure that
Kristaps Dzonsons [Thu, 18 Aug 2011 09:02:22 +0000 (09:02 +0000)]
Have `Li' be correctly monospaced in -T[x]html.  Also make sure that
`Li' prints as a CODE tag and the style-sheet has the `lit' class apply
to multiple tag types.

13 years agoReplace the old `An'/`Aq' AUTHORS note with `An'/`Mt'.
Kristaps Dzonsons [Thu, 18 Aug 2011 08:58:43 +0000 (08:58 +0000)]
Replace the old `An'/`Aq' AUTHORS note with `An'/`Mt'.

13 years agoAdd example of comments in man.7 and mdoc.7.
Kristaps Dzonsons [Wed, 17 Aug 2011 22:20:14 +0000 (22:20 +0000)]
Add example of comments in man.7 and mdoc.7.

13 years agoSync man.7's LANGUAGE SYNTAX (was INPUT ENCODING) with mdoc.7.
Kristaps Dzonsons [Wed, 17 Aug 2011 22:16:32 +0000 (22:16 +0000)]
Sync man.7's LANGUAGE SYNTAX (was INPUT ENCODING) with mdoc.7.
While here, fix the scaling widths example that incorrectly used `br'
(it now correctly uses `sp').

13 years agoClean up and normalise the LANGUAGE SYNTAX section in mdoc.7:
Kristaps Dzonsons [Wed, 17 Aug 2011 20:34:53 +0000 (20:34 +0000)]
Clean up and normalise the LANGUAGE SYNTAX section in mdoc.7:

 - make examples trail each section
 - make explanations more concise
 - remove references to troff

ok Jason McIntyre.

13 years agoToyed with www site a bit. For the next release.
Kristaps Dzonsons [Wed, 17 Aug 2011 19:35:58 +0000 (19:35 +0000)]
Toyed with www site a bit.  For the next release.

13 years agoReplace the .Fl examples by others exhibiting the same features, VERSION_1_11_6
Ingo Schwarze [Tue, 16 Aug 2011 23:44:58 +0000 (23:44 +0000)]
Replace the .Fl examples by others exhibiting the same features,
but avoiding use of .Nm, because letting .Nm call other macros
is unusual style, and we don't want unusual style in examples.
Issue brought up by kristaps@.

13 years agoMore information about lots of macros, many new examples, and various fixes.
Ingo Schwarze [Tue, 16 Aug 2011 23:37:39 +0000 (23:37 +0000)]
More information about lots of macros, many new examples, and various fixes.
ok kristaps@

13 years agoAdded generation of Universal binary. Fixed up index.sgml to be shorter
Kristaps Dzonsons [Tue, 16 Aug 2011 22:21:04 +0000 (22:21 +0000)]
Added generation of Universal binary.  Fixed up index.sgml to be shorter
and more expressive.

13 years agoVersion: 1.11.6.
Kristaps Dzonsons [Tue, 16 Aug 2011 12:31:01 +0000 (12:31 +0000)]
Version: 1.11.6.

13 years agoLint check.
Kristaps Dzonsons [Tue, 16 Aug 2011 12:30:12 +0000 (12:30 +0000)]
Lint check.

13 years agoFixed mingw compatibility where the "z" printf() modifier isn't
Kristaps Dzonsons [Tue, 16 Aug 2011 12:23:51 +0000 (12:23 +0000)]
Fixed mingw compatibility where the "z" printf() modifier isn't
recognised.  It's easier to make these u_int than to jump through hoops
for a special formatter.

13 years agoUpdating mingw32 install hooks for new mingw version.
Kristaps Dzonsons [Tue, 16 Aug 2011 12:15:19 +0000 (12:15 +0000)]
Updating mingw32 install hooks for new mingw version.

13 years agoInitial version bits in place. Also added forgotten tests to installed files.
Kristaps Dzonsons [Tue, 16 Aug 2011 12:13:27 +0000 (12:13 +0000)]
Initial version bits in place.  Also added forgotten tests to installed files.

13 years agoAllow `Sx' and `Ss' to have child nodes. Fixes manuals in NetBSD.
Kristaps Dzonsons [Wed, 10 Aug 2011 14:07:23 +0000 (14:07 +0000)]
Allow `Sx' and `Ss' to have child nodes.  Fixes manuals in NetBSD.
Originally pointed out by joerg@ then again by Thomas Klausner by way of
Nicolas Joy.  Note: don't use these constructions as you can't link to
the sections with `Sx'.

13 years agoAdd small chunks of new text and better examples written from scratch,
Ingo Schwarze [Wed, 3 Aug 2011 21:25:23 +0000 (21:25 +0000)]
Add small chunks of new text and better examples written from scratch,
filling gaps found by checking the MANUAL DOMAIN chapter in mdoc.samples(7).
While here, fix lots of minor issues.
feedback and ok jmc@

13 years agoThe term "reserved terms" is too broad, so narrow it down
Ingo Schwarze [Tue, 2 Aug 2011 01:07:26 +0000 (01:07 +0000)]
The term "reserved terms" is too broad, so narrow it down
to "delimiters", and explain which special handling they get
as macro arguments.  Move the text to a better place and remove
a few lies.  Postpone figuring out the lists of macros causing
that special handling, it would cost too much time right now.
feedback and ok jmc@

This also brings the file back in sync with OpenBSD.

13 years agoAdd some new text written from scratch after checking whether anything
Ingo Schwarze [Mon, 1 Aug 2011 07:45:11 +0000 (07:45 +0000)]
Add some new text written from scratch after checking whether anything
explained in mdoc.samples(7) is missing from mdoc(7):
* Discourage trailing whitespace.
* Move all information about quoted arguments to the relevant
  subsection, shortening it a bit, and adding an example.
* Mention that blanks can be quoted with a backslash.
* A better .Nd line in the template (verbatim from mdoc.samples(7)).
* Explain how to escape callable macro names, and provide examples.
ok jmc@

13 years agotrivial fixes found while merging to OpenBSD:
Ingo Schwarze [Sun, 31 Jul 2011 17:42:50 +0000 (17:42 +0000)]
trivial fixes found while merging to OpenBSD:
* ellipsis is an argument to .Ar, not part of the preceding argument
* libz, libpam, on, off are not placeholders for arguments
* .Rv is not only relevant for system calls, see atexit(3), sem_init(3)

13 years agoSystem III is relevant for string(3) HISTORY.
Ingo Schwarze [Sun, 31 Jul 2011 17:30:33 +0000 (17:30 +0000)]
System III is relevant for string(3) HISTORY.

13 years agoMake sure that in -Tascii mode, predefined strings render the same
Ingo Schwarze [Sun, 31 Jul 2011 11:36:49 +0000 (11:36 +0000)]
Make sure that in -Tascii mode, predefined strings render the same
way as in groff.  With this fix, \*(If, \*(Pi and \*(Tm change in
other output modes, but -Tascii is what matters.
Found when merging 1.11.3 to OpenBSD; ok kristaps@.

13 years agoRegression fixes after merging 1.11.3 to OpenBSD (rev. 1.20):
Ingo Schwarze [Sun, 31 Jul 2011 11:24:39 +0000 (11:24 +0000)]
Regression fixes after merging 1.11.3 to OpenBSD (rev. 1.20):
* Do not pass integers outside the ASCII range to isprint().
* Make sure escaped characters are really printed verbatim
  when the escape sequence has no special meaning.
ok kristaps@

13 years agoUse a character-table for quick per-character substitution in `tr'. As
Kristaps Dzonsons [Fri, 29 Jul 2011 10:16:59 +0000 (10:16 +0000)]
Use a character-table for quick per-character substitution in `tr'.  As
suggested by joerg@.

13 years agoRenamed roffstr as roffkv (key-value) and split out char/size_t into
Kristaps Dzonsons [Fri, 29 Jul 2011 09:19:48 +0000 (09:19 +0000)]
Renamed roffstr as roffkv (key-value) and split out char/size_t into
roffstr.

13 years agoFix border condition in `tr' grokking arguments.
Kristaps Dzonsons [Thu, 28 Jul 2011 14:53:22 +0000 (14:53 +0000)]
Fix border condition in `tr' grokking arguments.

13 years agoRemove TODO entry about `tr'.
Kristaps Dzonsons [Thu, 28 Jul 2011 14:37:39 +0000 (14:37 +0000)]
Remove TODO entry about `tr'.

13 years agoAn implementation of `tr'. This routes allocations of TEXT nodes
Kristaps Dzonsons [Thu, 28 Jul 2011 14:17:11 +0000 (14:17 +0000)]
An implementation of `tr'.  This routes allocations of TEXT nodes
through libroff, which does the appropriate translations of `tr'.  This
is SLOW: it uses the backend of `ds' and `de', which is a simple linear
list.  However, unlike `ds' and `de', it iterates over EACH CHARACTER of
the entire file looking for replacements.

13 years agoCorrectly set valsz this time.
Kristaps Dzonsons [Wed, 27 Jul 2011 20:55:28 +0000 (20:55 +0000)]
Correctly set valsz this time.

13 years agoHave roffstr keep track of string lengths.
Kristaps Dzonsons [Wed, 27 Jul 2011 17:25:30 +0000 (17:25 +0000)]
Have roffstr keep track of string lengths.

13 years agoFix a memory-offset bug that was hell tracking down.
Kristaps Dzonsons [Wed, 27 Jul 2011 14:58:28 +0000 (14:58 +0000)]
Fix a memory-offset bug that was hell tracking down.

13 years agoRename some terms (incremental part of a larger set of check-ins).
Kristaps Dzonsons [Wed, 27 Jul 2011 14:23:27 +0000 (14:23 +0000)]
Rename some terms (incremental part of a larger set of check-ins).

13 years agoFix hyphen-replacement loop.
Kristaps Dzonsons [Wed, 27 Jul 2011 14:19:26 +0000 (14:19 +0000)]
Fix hyphen-replacement loop.

13 years agoCritical fix to avoid looping forever.
Kristaps Dzonsons [Wed, 27 Jul 2011 13:47:26 +0000 (13:47 +0000)]
Critical fix to avoid looping forever.

13 years agoClean up roff_getstrn() function.
Kristaps Dzonsons [Wed, 27 Jul 2011 13:42:27 +0000 (13:42 +0000)]
Clean up roff_getstrn() function.

13 years agoSimply word allocation in libmdoc and libman.
Kristaps Dzonsons [Wed, 27 Jul 2011 12:43:02 +0000 (12:43 +0000)]
Simply word allocation in libmdoc and libman.

13 years agoDisable in-line eqn processing for a bit.
Kristaps Dzonsons [Wed, 27 Jul 2011 12:41:02 +0000 (12:41 +0000)]
Disable in-line eqn processing for a bit.

13 years agoMove mandoc_hyph() into roff_parsetext() as a single conditional. While
Kristaps Dzonsons [Wed, 27 Jul 2011 07:32:26 +0000 (07:32 +0000)]
Move mandoc_hyph() into roff_parsetext() as a single conditional.  While
here, do some function renames for clarity and make all function
prototypes be in one place.

13 years agoFirst, roff_res() has no need to invoke ROFF_RERUN: since it's executed
Kristaps Dzonsons [Wed, 27 Jul 2011 07:09:41 +0000 (07:09 +0000)]
First, roff_res() has no need to invoke ROFF_RERUN: since it's executed
before any other roff processing occurs, it's Ok to just let it do its
thing and pass through.  Also, make sure this function is ALWAYS called,
not just when first_string is defined.

Second, add a new function, roff_parsetext(), that post-processes
non-macro lines.  This, for the time being, amounts to detecting soft
hyphens.  This fixes a long-standing bug in that -man now has proper
hyphen breaking!

13 years agoUpdate mandoc_hyph() to the extent that numbers on either side of the
Kristaps Dzonsons [Wed, 27 Jul 2011 07:06:29 +0000 (07:06 +0000)]
Update mandoc_hyph() to the extent that numbers on either side of the
hyphen make for a non-breakable hyphen.  Found by random testing.

13 years agoUse correct column of warning messages and make sure this function is
Kristaps Dzonsons [Tue, 26 Jul 2011 14:24:06 +0000 (14:24 +0000)]
Use correct column of warning messages and make sure this function is
run even when `first_string' isn't defined.

13 years agoMove checking of escapes into roff.c, where we're already stepping
Kristaps Dzonsons [Tue, 26 Jul 2011 14:09:01 +0000 (14:09 +0000)]
Move checking of escapes into roff.c, where we're already stepping
through looking for user-defined escapes.  This clears up a nice bit of
validation code.

13 years agoImplement the first steps of equation parsing from within libmdoc.
Kristaps Dzonsons [Mon, 25 Jul 2011 15:37:00 +0000 (15:37 +0000)]
Implement the first steps of equation parsing from within libmdoc.
This consists of a shim around the text parser that calls out to libroff
if equation components exist on the line.  Right now this will do
nothing, as the equation delimiter always returns nil.

13 years agoSlip in a typo. VERSION_1_11_5
Kristaps Dzonsons [Sun, 24 Jul 2011 19:08:09 +0000 (19:08 +0000)]
Slip in a typo.

13 years agoWe're officially no longer UNIX-specific; make this clear.
Kristaps Dzonsons [Sun, 24 Jul 2011 19:03:40 +0000 (19:03 +0000)]
We're officially no longer UNIX-specific; make this clear.

13 years agoScary-looking but otherwise harmless changes allow me to build for Windows.
Kristaps Dzonsons [Sun, 24 Jul 2011 18:15:13 +0000 (18:15 +0000)]
Scary-looking but otherwise harmless changes allow me to build for Windows.
That is to say, with mingw32.  This amounts to the following:

 (1) break compat.c into compat_strlcpy.c and compat_strlcat.c
 (2) add compat_getsubopt.c (from OpenBSD) and test-getsubopt.c
 (3) add test-strptime.c for HAVE_STRPTIME
 (4) add ifdef bits here and there, where necessary
 (5) remove some harmless unportable stuff (u_char, localtime_r)

I've added the appropriate mdocml.zip target to the Makefile, too.

13 years agoTuned the initial eqn output, making it completely simple. This
Kristaps Dzonsons [Sun, 24 Jul 2011 10:09:03 +0000 (10:09 +0000)]
Tuned the initial eqn output, making it completely simple.  This
completes a full initial eqn system, so I'm tagging a release on it.

13 years agoFlip on equation printing for -T[x]html.
Kristaps Dzonsons [Sat, 23 Jul 2011 22:57:13 +0000 (22:57 +0000)]
Flip on equation printing for -T[x]html.