]> git.cameronkatri.com Git - mandoc.git/log
mandoc.git
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.

13 years agoClarify what eqn actually is.
Kristaps Dzonsons [Sat, 23 Jul 2011 19:04:47 +0000 (19:04 +0000)]
Clarify what eqn actually is.

13 years agoNote GNU extensions in eqn.7. Also add `col' and `pile', which are
Kristaps Dzonsons [Sat, 23 Jul 2011 18:44:42 +0000 (18:44 +0000)]
Note GNU extensions in eqn.7.  Also add `col' and `pile', which are
mentioned briefly in the eqn User's Manual, but otherwise are
unspecified.

13 years agoAdd support for tdefine and ndefine. Consolidate some error messages. Add
Kristaps Dzonsons [Sat, 23 Jul 2011 18:41:18 +0000 (18:41 +0000)]
Add support for tdefine and ndefine.  Consolidate some error messages.  Add
somem more version notes (getting there).  Have the equation nanme be captured.

13 years agoRaise a warning when text follows the `EN'.
Kristaps Dzonsons [Sat, 23 Jul 2011 13:31:03 +0000 (13:31 +0000)]
Raise a warning when text follows the `EN'.

13 years agoAdd `fat' font. This pretty much brings us in line with the second
Kristaps Dzonsons [Sat, 23 Jul 2011 12:10:16 +0000 (12:10 +0000)]
Add `fat' font.  This pretty much brings us in line with the second
edition of eqn.

13 years agoIgnore `back', `fwd', `up', `down', `mark', and `lineup'.
Kristaps Dzonsons [Sat, 23 Jul 2011 12:08:43 +0000 (12:08 +0000)]
Ignore `back', `fwd', `up', `down', `mark', and `lineup'.

13 years agoAdd matrix support. Also remove "above" notion, as all elements in a
Kristaps Dzonsons [Sat, 23 Jul 2011 12:01:54 +0000 (12:01 +0000)]
Add matrix support.  Also remove "above" notion, as all elements in a
list are delimited by their "aboveness" and it's superfluous.

13 years agoThe circumflex is also a special space character.
Kristaps Dzonsons [Sat, 23 Jul 2011 09:47:25 +0000 (09:47 +0000)]
The circumflex is also a special space character.
Note this and clean up some documentation in eqn.7.
Also add some version notes, although I'm not ready for a release yet.

13 years agoCheck for and throw away `gfont' eqn macros.
Kristaps Dzonsons [Fri, 22 Jul 2011 14:59:02 +0000 (14:59 +0000)]
Check for and throw away `gfont' eqn macros.

13 years agoAdd support for `gsize' eqn token (introduced in second-edition troff).
Kristaps Dzonsons [Fri, 22 Jul 2011 14:55:07 +0000 (14:55 +0000)]
Add support for `gsize' eqn token (introduced in second-edition troff).

13 years agoAdd all rendered symbols used by eqn. I use the Second-Edition User's
Kristaps Dzonsons [Fri, 22 Jul 2011 14:26:32 +0000 (14:26 +0000)]
Add all rendered symbols used by eqn.  I use the Second-Edition User's
Manual (1978) for this, so it should catch most of them.  They just map
into the mandoc_char escaped characters.

13 years agoAdd support for 1/2, 1/4, and 3/4 (needed by eqn).
Kristaps Dzonsons [Fri, 22 Jul 2011 14:15:15 +0000 (14:15 +0000)]
Add support for 1/2, 1/4, and 3/4 (needed by eqn).

13 years agoClearer documentation of grammar in eqn.7 and addition of Greek symbols.
Kristaps Dzonsons [Fri, 22 Jul 2011 13:48:52 +0000 (13:48 +0000)]
Clearer documentation of grammar in eqn.7 and addition of Greek symbols.

13 years agoSupport translating Greek characters in eqn.
Kristaps Dzonsons [Fri, 22 Jul 2011 13:40:15 +0000 (13:40 +0000)]
Support translating Greek characters in eqn.

13 years agoFix left/right nesting in eqn.
Kristaps Dzonsons [Fri, 22 Jul 2011 12:55:02 +0000 (12:55 +0000)]
Fix left/right nesting in eqn.

13 years agoAdd character output (-Tpdf, -Tps, -Tascii) for equations. This is the
Kristaps Dzonsons [Fri, 22 Jul 2011 10:50:46 +0000 (10:50 +0000)]
Add character output (-Tpdf, -Tps, -Tascii) for equations.  This is the
minimum: unseparated terms.

13 years agoProtect macro expansion.
Kristaps Dzonsons [Fri, 22 Jul 2011 10:36:58 +0000 (10:36 +0000)]
Protect macro expansion.

13 years agoUse a macro instead of doing a string-fragment compare. I just get
Kristaps Dzonsons [Fri, 22 Jul 2011 10:22:47 +0000 (10:22 +0000)]
Use a macro instead of doing a string-fragment compare.  I just get
worried that I'm going to write the wrong size on both sides of the
equality (I've already done it a few times).  This cleans up the code
readability a bit.

13 years agoGive lists their own eqn function.
Kristaps Dzonsons [Fri, 22 Jul 2011 09:57:04 +0000 (09:57 +0000)]
Give lists their own eqn function.

13 years agoAccomodate for hard-spaces with tildes. For now, consider them regular
Kristaps Dzonsons [Fri, 22 Jul 2011 00:16:37 +0000 (00:16 +0000)]
Accomodate for hard-spaces with tildes.  For now, consider them regular
spaces.  Also allow for tabs.  Finally, have the parser correctly handle
open and close brackets smooshed against other terms.  All of these
handle "details" noted in the CACM paper.

13 years agoFix eqn handling of PILE clauses (multiple ABOVE statements may be
Kristaps Dzonsons [Thu, 21 Jul 2011 23:42:28 +0000 (23:42 +0000)]
Fix eqn handling of PILE clauses (multiple ABOVE statements may be
specified for each PILE).

13 years agoComplete eqn.7 parsing. Features all productions from the original 1975
Kristaps Dzonsons [Thu, 21 Jul 2011 23:30:39 +0000 (23:30 +0000)]
Complete eqn.7 parsing.  Features all productions from the original 1975
CACM paper in an LR(1) parse (1 -> eqn_rewind()).  Right now the code is
a little jungly, but will clear up as I consolidate parse components.
The AST structure will also be cleaned up, as right now it's pretty ad
hoc (this won't change the parse itself).  I added the mandoc_strndup()
function will here.

13 years agoSupport `size' constructs in eqn.7. Generalise mandoc_strontou to this
Kristaps Dzonsons [Thu, 21 Jul 2011 15:21:13 +0000 (15:21 +0000)]
Support `size' constructs in eqn.7.  Generalise mandoc_strontou to this
effect.

13 years agoFull support for eqn positionals (above, over, sup, sub, etc.).
Kristaps Dzonsons [Thu, 21 Jul 2011 14:13:00 +0000 (14:13 +0000)]
Full support for eqn positionals (above, over, sup, sub, etc.).

13 years agoAdd eqn subexpression fonts.
Kristaps Dzonsons [Thu, 21 Jul 2011 13:37:04 +0000 (13:37 +0000)]
Add eqn subexpression fonts.

13 years agoAdd support for markers. These decorate the last box: see eqn.7.
Kristaps Dzonsons [Thu, 21 Jul 2011 13:18:24 +0000 (13:18 +0000)]
Add support for markers.  These decorate the last box: see eqn.7.

13 years agoDocument `{, }' subexpressions in eqn.7.
Kristaps Dzonsons [Thu, 21 Jul 2011 12:34:09 +0000 (12:34 +0000)]
Document `{, }' subexpressions in eqn.7.

13 years agoSupport nested `{, }' subexpressions in eqn. Document in code.
Kristaps Dzonsons [Thu, 21 Jul 2011 12:30:44 +0000 (12:30 +0000)]
Support nested `{, }' subexpressions in eqn.  Document in code.

13 years agoMake `undef' not expand its argument before undefining it. Document
Kristaps Dzonsons [Thu, 21 Jul 2011 11:57:56 +0000 (11:57 +0000)]
Make `undef' not expand its argument before undefining it.  Document
this and have the same behaviour apply to `set' and `define'.

13 years agoFlip eqn into using parsed nodes. I've temporarily disabled printing
Kristaps Dzonsons [Thu, 21 Jul 2011 11:34:53 +0000 (11:34 +0000)]
Flip eqn into using parsed nodes.  I've temporarily disabled printing
these in the front-ends except for -Ttree, which will display the parsed
tree.

While here, fix that quoted strings aren't scanned for replacement parts.

13 years agoFinish the eqn syntactic parser. This correctly parses terms and does
Kristaps Dzonsons [Thu, 21 Jul 2011 10:24:35 +0000 (10:24 +0000)]
Finish the eqn syntactic parser.  This correctly parses terms and does
the proper `define' dance, which amounts to pure word-replace (you can,
say, define `foo' as `define' then define `define' as something else).
eqn.c is now ready for some semantic parsing of `box' and `eqn'
productions as defined by the grammar.

13 years agoForgot to add these bits to the last commit.
Kristaps Dzonsons [Mon, 18 Jul 2011 14:30:51 +0000 (14:30 +0000)]
Forgot to add these bits to the last commit.

13 years agoNote that equation definitions are nestable.
Kristaps Dzonsons [Mon, 18 Jul 2011 13:47:38 +0000 (13:47 +0000)]
Note that equation definitions are nestable.

13 years agoDefinitions in eqn.7 are actually recursive. Do this and add crude
Kristaps Dzonsons [Mon, 18 Jul 2011 13:35:07 +0000 (13:35 +0000)]
Definitions in eqn.7 are actually recursive.  Do this and add crude
protection that we don't nest back to ourselves.

13 years agoClarify up `Rv' and `Ex' documentation.
Kristaps Dzonsons [Mon, 18 Jul 2011 10:23:02 +0000 (10:23 +0000)]
Clarify up `Rv' and `Ex' documentation.

13 years agoFollow-up: forgot to remove useless regset structs.
Kristaps Dzonsons [Mon, 18 Jul 2011 07:48:14 +0000 (07:48 +0000)]
Follow-up: forgot to remove useless regset structs.

13 years agoMake `struct roff' be passed into libmdoc and libman upon creation.
Kristaps Dzonsons [Mon, 18 Jul 2011 07:46:41 +0000 (07:46 +0000)]
Make `struct roff' be passed into libmdoc and libman upon creation.
This is required for supporting in-line equations.  While here, push
registers properly into roff and add an set/get/mod interface.

13 years agoFix copyright email.
Kristaps Dzonsons [Sun, 17 Jul 2011 15:43:00 +0000 (15:43 +0000)]
Fix copyright email.

13 years agoRemove unused function.
Kristaps Dzonsons [Sun, 17 Jul 2011 15:24:25 +0000 (15:24 +0000)]
Remove unused function.

13 years agoFix lost allocation.
Kristaps Dzonsons [Sun, 17 Jul 2011 14:15:11 +0000 (14:15 +0000)]
Fix lost allocation.

13 years agoRemember to NULL-ify new keys/vals.
Kristaps Dzonsons [Sun, 17 Jul 2011 14:11:25 +0000 (14:11 +0000)]
Remember to NULL-ify new keys/vals.

13 years agoProvide implementations of `define', `set', and `unset'.
Kristaps Dzonsons [Sun, 17 Jul 2011 14:08:49 +0000 (14:08 +0000)]
Provide implementations of `define', `set', and `unset'.
Tie them into the stream of data.
Document these appropriate, bringing in the grammar as defined by the
original eqn manual (Kernighan/Richie).

13 years agoWarn if equation `define' key is quoted (groff-ism).
Kristaps Dzonsons [Sun, 17 Jul 2011 12:52:54 +0000 (12:52 +0000)]
Warn if equation `define' key is quoted (groff-ism).

13 years agoAdd initial `define' support for eqn(7).
Kristaps Dzonsons [Sun, 17 Jul 2011 12:13:37 +0000 (12:13 +0000)]
Add initial `define' support for eqn(7).
This works by iterating over a simple list.  It's a slow, auditable
early implementation.  Data is read (the reading function will be
reused) then parsed, then the line re-run if remaining stuff exists.
Note this function isn't the same as mandoc_getarg(), as eqn(7) uses a
different system for reading quoted strings.
This doesn't actually use the defines.

13 years agoRemove prototype since moved into mandoc.h.
Kristaps Dzonsons [Sun, 17 Jul 2011 11:14:53 +0000 (11:14 +0000)]
Remove prototype since moved into mandoc.h.

13 years agoimprove documentation of .Bl -column .It Ta
Ingo Schwarze [Fri, 15 Jul 2011 20:40:32 +0000 (20:40 +0000)]
improve documentation of .Bl -column .It Ta
using feedback from kristaps@, ok jmc@

13 years agoBig step forward in bringing mandocdb in line with most makewhatis-type
Kristaps Dzonsons [Fri, 15 Jul 2011 17:59:29 +0000 (17:59 +0000)]
Big step forward in bringing mandocdb in line with most makewhatis-type
systems.

13 years agoFirst step of making mandocdb a true makewhatis/mandb replacement:
Kristaps Dzonsons [Fri, 15 Jul 2011 10:15:24 +0000 (10:15 +0000)]
First step of making mandocdb a true makewhatis/mandb replacement:
accept a set of directories on the command line ("manpaths") that are
recursed for files.  The databases are created in each manpath root.
This temporarily removes OP_UPDATE and OP_DELETE functionality, which
will be added back in.

13 years agoExpose mandoc_strdup() to the outside world.
Kristaps Dzonsons [Fri, 15 Jul 2011 10:14:12 +0000 (10:14 +0000)]
Expose mandoc_strdup() to the outside world.

13 years agoMove parts of mandocdb that "do stuff" to the databases into their own
Kristaps Dzonsons [Fri, 15 Jul 2011 09:06:23 +0000 (09:06 +0000)]
Move parts of mandocdb that "do stuff" to the databases into their own
functions.  This will make it easier to call repeatedly (for different
directoreis) as must be done with the new interfaces being developed.

13 years agoApparently these weren't removed properly...
Kristaps Dzonsons [Thu, 14 Jul 2011 17:32:53 +0000 (17:32 +0000)]
Apparently these weren't removed properly...

13 years agomove mandocdb(1) to mandocdb(8)
Ingo Schwarze [Thu, 14 Jul 2011 14:36:37 +0000 (14:36 +0000)]
move mandocdb(1) to mandocdb(8)
"please make this change" kristaps@

13 years agoRename makewhatis [back] into mandocdb. This is to maintain consistency
Kristaps Dzonsons [Thu, 14 Jul 2011 10:57:02 +0000 (10:57 +0000)]
Rename makewhatis [back] into mandocdb.  This is to maintain consistency
with OpenBSD, which is sandboxing the code for merge.  It makes sense
because it doesn't really make a `makewhatis' file in the traditional
sense, so it may be confusing.

13 years agoHave equation be allocated with mparse. Will be needed for logging of
Kristaps Dzonsons [Tue, 12 Jul 2011 21:32:43 +0000 (21:32 +0000)]
Have equation be allocated with mparse.  Will be needed for logging of
messages.

13 years agoRe-ordered logic in makewhatis to iterate over the index file only once.
Kristaps Dzonsons [Tue, 12 Jul 2011 15:26:35 +0000 (15:26 +0000)]
Re-ordered logic in makewhatis to iterate over the index file only once.
This is much more efficient.

13 years agoSmall HTML compatibility fix. VERSION_1_11_4
Kristaps Dzonsons [Tue, 12 Jul 2011 10:04:36 +0000 (10:04 +0000)]
Small HTML compatibility fix.

13 years agoFixed some uninitialised values found during lint check.
Kristaps Dzonsons [Tue, 12 Jul 2011 10:03:02 +0000 (10:03 +0000)]
Fixed some uninitialised values found during lint check.

13 years agoNote version 1.11.4 bits. Here we go!
Kristaps Dzonsons [Tue, 12 Jul 2011 08:27:45 +0000 (08:27 +0000)]
Note version 1.11.4 bits.  Here we go!

13 years agoFairly straightforward patch adding basic update (-u) and remove (-r)
Kristaps Dzonsons [Mon, 11 Jul 2011 21:56:06 +0000 (21:56 +0000)]
Fairly straightforward patch adding basic update (-u) and remove (-r)
functionality to makewhatis.  This is somewhat expensive (requiring the
index file to be trawled multiple times), but it's a good start.

13 years agoUse mandoc.1's error codes (we use them internally).
Kristaps Dzonsons [Mon, 11 Jul 2011 09:44:07 +0000 (09:44 +0000)]
Use mandoc.1's error codes (we use them internally).

13 years agoNote we're no longer using temporary files.
Kristaps Dzonsons [Mon, 11 Jul 2011 09:40:49 +0000 (09:40 +0000)]
Note we're no longer using temporary files.

13 years agoDon't use a temporary buffer (unless people yell to have it back in),
Kristaps Dzonsons [Mon, 11 Jul 2011 09:36:15 +0000 (09:36 +0000)]
Don't use a temporary buffer (unless people yell to have it back in),
and clean up the parse process a bit.  No big changes.

13 years agoBe more specific about `Dv', `Er', and `Ev'.
Kristaps Dzonsons [Mon, 11 Jul 2011 08:45:02 +0000 (08:45 +0000)]
Be more specific about `Dv', `Er', and `Ev'.

13 years agoMake sure constants in mandoc.3 use the `Dv' macro.
Kristaps Dzonsons [Mon, 11 Jul 2011 08:43:27 +0000 (08:43 +0000)]
Make sure constants in mandoc.3 use the `Dv' macro.

13 years agoHave descriptions for -man documents in makewhatis be properly collected.
Kristaps Dzonsons [Sun, 10 Jul 2011 13:03:31 +0000 (13:03 +0000)]
Have descriptions for -man documents in makewhatis be properly collected.

13 years agoSpaces must be preserved in -T[x]html literal mode.
Kristaps Dzonsons [Sat, 9 Jul 2011 10:26:57 +0000 (10:26 +0000)]
Spaces must be preserved in -T[x]html literal mode.

13 years agoClarify the role of `RS' in man(7) and also fix a bogus cross-reference.
Kristaps Dzonsons [Fri, 8 Jul 2011 09:35:06 +0000 (09:35 +0000)]
Clarify the role of `RS' in man(7) and also fix a bogus cross-reference.

13 years agoMake sure that `br' and `sp' don't emit space before the initial `SH' in
Kristaps Dzonsons [Fri, 8 Jul 2011 09:34:06 +0000 (09:34 +0000)]
Make sure that `br' and `sp' don't emit space before the initial `SH' in
-man.  This actually seems to be what groff does.  Sort-of.  Anyway,
it's required to get perlpod pages rendered nicely, so until perlpod
stops producing shit, do it.  Ok schwarze@.

13 years agoFix two issues: the first, where a `.\}' wasn't being interpreted as a
Kristaps Dzonsons [Fri, 8 Jul 2011 09:28:33 +0000 (09:28 +0000)]
Fix two issues: the first, where a `.\}' wasn't being interpreted as a
proper macro in some conditions, resulting in strange parse errors.  The
second, where `\}' was being re-written as `\&'.  Instead, we re-write
this as two spaces OR nothing at all, if at the end of line.  This isn't
exactly what groff does (who knows...) but is a much safer and better
way than how I was doing it before.

13 years agoFix handling of the `\c' escape in -T[x]html.
Kristaps Dzonsons [Thu, 7 Jul 2011 14:34:11 +0000 (14:34 +0000)]
Fix handling of the `\c' escape in -T[x]html.

13 years agoConsiderably fix up -man -T[x]html's handling of verbatim spaces (`nf'),
Kristaps Dzonsons [Thu, 7 Jul 2011 13:54:36 +0000 (13:54 +0000)]
Considerably fix up -man -T[x]html's handling of verbatim spaces (`nf'),
which before were being handled erratically.

13 years agoClean up how -man -T[x]html handles TP, IP, and HP (dd lists and
Kristaps Dzonsons [Thu, 7 Jul 2011 13:26:25 +0000 (13:26 +0000)]
Clean up how -man -T[x]html handles TP, IP, and HP (dd lists and
indented paragraph macros, respectively).  This cleans up code and also
cleans up the output quite a lot.

13 years agoSimplify chars.c---there's really no need for extra code to reorder the
Kristaps Dzonsons [Thu, 7 Jul 2011 06:41:50 +0000 (06:41 +0000)]
Simplify chars.c---there's really no need for extra code to reorder the
hash chain or an extra function for checking matches.

13 years agoNote the strange `if'+newline issue raised by schwarze@.
Kristaps Dzonsons [Thu, 7 Jul 2011 06:34:13 +0000 (06:34 +0000)]
Note the strange `if'+newline issue raised by schwarze@.

13 years agoFix a bug in the -man parser where deleting nodes (such as `PP' or `LP'
Kristaps Dzonsons [Thu, 7 Jul 2011 05:42:32 +0000 (05:42 +0000)]
Fix a bug in the -man parser where deleting nodes (such as `PP' or `LP'
in certain situations) caused the next macros to be assigned as siblings
instead of child nodes to the original parent.  Noticed and ok by
schwarze@.

13 years agoInstall sources with mode 0644. Noted by Jack Nagel. Ok schwarze@.
Kristaps Dzonsons [Mon, 4 Jul 2011 12:02:57 +0000 (12:02 +0000)]
Install sources with mode 0644.  Noted by Jack Nagel.  Ok schwarze@.

13 years agoThe bufcat() function in -T[x]html was eating one byte off the end of its
Kristaps Dzonsons [Mon, 4 Jul 2011 09:42:38 +0000 (09:42 +0000)]
The bufcat() function in -T[x]html was eating one byte off the end of its
concatenated string.  This for some reason hasn't been found before now... ?
Anyway, fixed, and make the IDs created again be correctly prefixed by a
letter as per the HTML spec.

13 years agoFix a TODO noted by schwarze@, originally by Christian Weisgerber:
Kristaps Dzonsons [Sun, 3 Jul 2011 22:57:32 +0000 (22:57 +0000)]
Fix a TODO noted by schwarze@, originally by Christian Weisgerber:
literal mode (`nf') is ended by SH (and, it turns out, SS as well).
Noted the updated behaviour in man.7 as well.

13 years agotwo new bugs reported by naddy@:
Ingo Schwarze [Sun, 3 Jul 2011 22:40:10 +0000 (22:40 +0000)]
two new bugs reported by naddy@:
 - .\} breaks
 - .SH implies .fi

13 years agoWe obviously need man.h and mdoc.h installed as mentioned in mandoc.3.
Kristaps Dzonsons [Sun, 3 Jul 2011 20:54:41 +0000 (20:54 +0000)]
We obviously need man.h and mdoc.h installed as mentioned in mandoc.3.

13 years agoAdded `Er' in ERRORS scan to makewhatis.
Kristaps Dzonsons [Fri, 1 Jul 2011 13:46:39 +0000 (13:46 +0000)]
Added `Er' in ERRORS scan to makewhatis.

13 years agoAdded search for `Ev' environment variables in ENVIRONMENT section.
Kristaps Dzonsons [Fri, 1 Jul 2011 12:02:44 +0000 (12:02 +0000)]
Added search for `Ev' environment variables in ENVIRONMENT section.

13 years agoAllow `Nd' scarfed data to allow for non-text nodes as the first node, as well.
Kristaps Dzonsons [Fri, 1 Jul 2011 10:46:32 +0000 (10:46 +0000)]
Allow `Nd' scarfed data to allow for non-text nodes as the first node, as well.

13 years agoAdd some notes to index.sgml. This does not signal a release.
Kristaps Dzonsons [Fri, 1 Jul 2011 10:20:26 +0000 (10:20 +0000)]
Add some notes to index.sgml.  This does not signal a release.

13 years agoMake scan for text tokens in a line recursive. This is really only for
Kristaps Dzonsons [Fri, 1 Jul 2011 10:17:24 +0000 (10:17 +0000)]
Make scan for text tokens in a line recursive.  This is really only for
the benefit of `Nd', which is the only [to date] node that can consist
of sub-nodes.

13 years agoAdd path reference (`Pa' in FILES section).
Kristaps Dzonsons [Fri, 1 Jul 2011 09:11:35 +0000 (09:11 +0000)]
Add path reference (`Pa' in FILES section).

13 years agoOuch: predefined strings moved into roff.c weren't being reinitalised
Kristaps Dzonsons [Thu, 30 Jun 2011 08:05:13 +0000 (08:05 +0000)]
Ouch: predefined strings moved into roff.c weren't being reinitalised
after the first parse.  Do this, but note there are more efficient ways
just waiting for a table of macros.

13 years agoFirst fix how `sp 1' doesn't imply `1v' (it now does) and that 1
Kristaps Dzonsons [Wed, 29 Jun 2011 15:38:09 +0000 (15:38 +0000)]
First fix how `sp 1' doesn't imply `1v' (it now does) and that 1
followed by non-digits, e.g. `1g', really means `1'.  Next, fix some
spacing issues where `sp' was invoked in -man after sections or
subsections.  Make sure this behaviour is mirrored in -Thtml.

13 years agoAdd cross-reference records to makewhatis.
Kristaps Dzonsons [Sat, 25 Jun 2011 13:19:25 +0000 (13:19 +0000)]
Add cross-reference records to makewhatis.

13 years agoAdd more documentation for libmandoc.
Kristaps Dzonsons [Wed, 22 Jun 2011 22:10:02 +0000 (22:10 +0000)]
Add more documentation for libmandoc.