]> git.cameronkatri.com Git - mandoc.git/log
mandoc.git
13 years agoAdd mode for -Tlocale. This mode, with this commit, behaves exactly
Kristaps Dzonsons [Tue, 17 May 2011 14:38:34 +0000 (14:38 +0000)]
Add mode for -Tlocale.  This mode, with this commit, behaves exactly
like -Tascii.  While adding this, inline term_alloc() (was a one-liner),
remove some switches around the terminal encoding for the symbol table
(unnecessary), and split out ascii_alloc() into ascii_init(), which is
also called from locale_init().

13 years agoIn tbl layouts, we puked if a space didn't followed a vertical bar
Kristaps Dzonsons [Tue, 17 May 2011 13:11:40 +0000 (13:11 +0000)]
In tbl layouts, we puked if a space didn't followed a vertical bar
(found by Yuri Pankov).  This was due to looking for modifiers for the
vertical bar.  This has been fixed, along with other special-key layout
types.

13 years agoDocumentation: note COMPATIBILITY of -Tascii `?' printing in mandoc.1
Kristaps Dzonsons [Tue, 17 May 2011 12:22:15 +0000 (12:22 +0000)]
Documentation: note COMPATIBILITY of -Tascii `?' printing in mandoc.1
and remove some long-fixed notes in sthe same section.  Also, add an
`Lb' for the mandoc library to mandoc.3 (noted by Sascha Wildner).

13 years agoFlip on printing `?' at Unicode codepoints in -Tascii, -Tpdf, and -Tps.
Kristaps Dzonsons [Tue, 17 May 2011 11:55:08 +0000 (11:55 +0000)]
Flip on printing `?' at Unicode codepoints in -Tascii, -Tpdf, and -Tps.
The reasoning behind printing SOMETHING at a Unicode codepoint is
because the input is not "wrong" (we suppress printing of "wrong"
things).  It's just that ASCII can't handle it.

13 years agoFlip on unicode output (via \[uNNNN]) in -T[x]html. Here we go!
Kristaps Dzonsons [Tue, 17 May 2011 11:50:20 +0000 (11:50 +0000)]
Flip on unicode output (via \[uNNNN]) in -T[x]html.  Here we go!

13 years agoClean-up fallout: differentiate ID's and HREF's (where to put the `#').
Kristaps Dzonsons [Tue, 17 May 2011 11:38:18 +0000 (11:38 +0000)]
Clean-up fallout: differentiate ID's and HREF's (where to put the `#').
Make buffmt functions internally bufinit(), too.

13 years agoCleanups in -T[x]html: make html_idcat() use the buffer and be called
Kristaps Dzonsons [Tue, 17 May 2011 11:34:31 +0000 (11:34 +0000)]
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.

13 years agoClean-ups in -T[x]html: inline print_num(), as it was just a single
Kristaps Dzonsons [Tue, 17 May 2011 11:19:45 +0000 (11:19 +0000)]
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.

13 years agoClean up -T[x]html by using a table instead of a switch statement for
Kristaps Dzonsons [Tue, 17 May 2011 10:48:06 +0000 (10:48 +0000)]
Clean up -T[x]html by using a table instead of a switch statement for
the roff units.  Also remove a comment about CSS and number types (they
all accept decimal numbers).

13 years agoRemove function calls to res() and so forth in term_word(). These were
Kristaps Dzonsons [Sun, 15 May 2011 22:29:50 +0000 (22:29 +0000)]
Remove function calls to res() and so forth in term_word().  These were
only used once and simply bloated the binary.  Also fix mchars_num2char
to correctly render the character instead of using atoi().  This makes
the conversation more strict, but it's more correct.

13 years agoFix missing support for \N'n' when calculating string widths in -Tascii
Kristaps Dzonsons [Sun, 15 May 2011 15:47:46 +0000 (15:47 +0000)]
Fix missing support for \N'n' when calculating string widths in -Tascii
(oops).  Do the same for -Thtml (oops^2).

13 years agoSupport groff's escape for Unicode input. See
Kristaps Dzonsons [Sun, 15 May 2011 15:30:33 +0000 (15:30 +0000)]
Support groff's escape for Unicode input.  See

  http://mdocml.bsd.lv/archives/tech/0368.html

For the time being, we just throw it away.

13 years agoUse strcspn() in term_strlen(). Clarifies the code.
Kristaps Dzonsons [Sun, 15 May 2011 14:50:01 +0000 (14:50 +0000)]
Use strcspn() in term_strlen().  Clarifies the code.

13 years agoGet rid of an "#if 0" that I don't anticipate being fixed ever (nor does
Kristaps Dzonsons [Sun, 15 May 2011 02:47:17 +0000 (02:47 +0000)]
Get rid of an "#if 0" that I don't anticipate being fixed ever (nor does
it really need to be fixed, anyway).

13 years agoMove struct termp_ps into term_ps.c; remove the engine union in struct termp,
Kristaps Dzonsons [Sun, 15 May 2011 00:58:48 +0000 (00:58 +0000)]
Move struct termp_ps into term_ps.c; remove the engine union in struct termp,
which only held one entry; finally (as per the first), make "ps" member into a
pointer managed by term_ps.c.  This frees up a nice chunk of memory during
run-time and in the binary.

13 years agoContinuing last commit with the style-sheet change.
Kristaps Dzonsons [Sat, 14 May 2011 23:44:01 +0000 (23:44 +0000)]
Continuing last commit with the style-sheet change.

13 years agoFix makewhatis.1 to have the correct name (it was MANDOC-DB, oops).
Kristaps Dzonsons [Sat, 14 May 2011 23:43:03 +0000 (23:43 +0000)]
Fix makewhatis.1 to have the correct name (it was MANDOC-DB, oops).

13 years agoMake index.sgml look more like mandoc-cgi, which I find looks much cleaner
Kristaps Dzonsons [Sat, 14 May 2011 23:41:50 +0000 (23:41 +0000)]
Make index.sgml look more like mandoc-cgi, which I find looks much cleaner
and nicer.

13 years agoMake www style.css link up to example.style.css much nicer.
Kristaps Dzonsons [Sat, 14 May 2011 23:40:49 +0000 (23:40 +0000)]
Make www style.css link up to example.style.css much nicer.

13 years agoMake some values "int" that were "size_t". These are primarily used for
Kristaps Dzonsons [Sat, 14 May 2011 18:15:20 +0000 (18:15 +0000)]
Make some values "int" that were "size_t".  These are primarily used for
indexing into arrays, so this removes lots of casts from size_t to int.

13 years agoMake character engine (-Tascii, -Tpdf, -Tps) ready for Unicode: make buffer
Kristaps Dzonsons [Sat, 14 May 2011 17:54:42 +0000 (17:54 +0000)]
Make character engine (-Tascii, -Tpdf, -Tps) ready for Unicode: make buffer
consist of type "int".  This will take more work (especially in encode and
friends), but this is a strong start.  This commit also consists of some
harmless lint fixes.

13 years agoGive -Thtml and -Txhtml the gift of recognising escapes when calculating
Kristaps Dzonsons [Sat, 14 May 2011 16:28:23 +0000 (16:28 +0000)]
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.

13 years agoMove roff.c's strtol into libmandoc.h for use by other parts of the code
Kristaps Dzonsons [Sat, 14 May 2011 16:06:08 +0000 (16:06 +0000)]
Move roff.c's strtol into libmandoc.h for use by other parts of the code
(which will come).

13 years agoLast sneak-in: incorrect www link. VERSION_1_11_2
Kristaps Dzonsons [Fri, 13 May 2011 01:04:07 +0000 (01:04 +0000)]
Last sneak-in: incorrect www link.

13 years agoOoops, forgot to install makewhatis manual.
Kristaps Dzonsons [Fri, 13 May 2011 01:02:34 +0000 (01:02 +0000)]
Ooops, forgot to install makewhatis manual.

13 years agoVersion up! 1.11.2. Let's go...
Kristaps Dzonsons [Fri, 13 May 2011 00:57:21 +0000 (00:57 +0000)]
Version up!  1.11.2.  Let's go...

13 years agoMore release notes.
Kristaps Dzonsons [Fri, 13 May 2011 00:51:27 +0000 (00:51 +0000)]
More release notes.

13 years agoRename mandoc-db to makewhatis. On the suggestion of schwarze@; I agree.
Kristaps Dzonsons [Fri, 13 May 2011 00:42:26 +0000 (00:42 +0000)]
Rename mandoc-db to makewhatis.  On the suggestion of schwarze@; I agree.
Add initial version notes.

13 years agoDon't let Linux-isms creep into Makefile.
Kristaps Dzonsons [Thu, 12 May 2011 23:45:47 +0000 (23:45 +0000)]
Don't let Linux-isms creep into Makefile.

13 years agoCorrectly catch `Vt' semicolon in mandoc-db.
Kristaps Dzonsons [Thu, 12 May 2011 23:44:51 +0000 (23:44 +0000)]
Correctly catch `Vt' semicolon in mandoc-db.

13 years agoLint fixes: remove unused function variables and pass in proper enum
Kristaps Dzonsons [Thu, 12 May 2011 23:44:01 +0000 (23:44 +0000)]
Lint fixes: remove unused function variables and pass in proper enum
values instead of ints.

13 years agoMake sure that we check for the \(en, \(em, \-, and - separators for
Kristaps Dzonsons [Thu, 12 May 2011 01:45:55 +0000 (01:45 +0000)]
Make sure that we check for the \(en, \(em, \-, and - separators for
the heuristic dance to grab manual descriptions from man documents.

13 years agoGrok manual architecture in mandoc-db.c.
Kristaps Dzonsons [Wed, 4 May 2011 20:43:38 +0000 (20:43 +0000)]
Grok manual architecture in mandoc-db.c.

13 years agoAdd configurations (`Cd') to mandoc-db mining.
Kristaps Dzonsons [Wed, 4 May 2011 08:21:17 +0000 (08:21 +0000)]
Add configurations (`Cd') to mandoc-db mining.
Also put some notes into index.sgml to the effect that mandoc-db exists,
but is not linked to the build.

13 years agoPick up authors in mandoc-db.
Kristaps Dzonsons [Tue, 3 May 2011 14:39:27 +0000 (14:39 +0000)]
Pick up authors in mandoc-db.

13 years agoHave mandoc-db grok `Dt'/`TH' manual title as well.
Kristaps Dzonsons [Tue, 3 May 2011 10:08:09 +0000 (10:08 +0000)]
Have mandoc-db grok `Dt'/`TH' manual title as well.

13 years agoBack out stripping of non-predef and non-special escape sequences from
Kristaps Dzonsons [Mon, 2 May 2011 13:56:13 +0000 (13:56 +0000)]
Back out stripping of non-predef and non-special escape sequences from
input (this is not yet possible with mandoc_escape(), which depends on
nil-terminated strings).

13 years agoHave mandoc-db strip out escapes that aren't special or predefined
Kristaps Dzonsons [Sun, 1 May 2011 11:56:26 +0000 (11:56 +0000)]
Have mandoc-db strip out escapes that aren't special or predefined
characters.  This is a work-in-progress that has some issues.

13 years agoDocumenting the mchars_XXXX part of mandoc.h.
Kristaps Dzonsons [Sun, 1 May 2011 10:40:52 +0000 (10:40 +0000)]
Documenting the mchars_XXXX part of mandoc.h.

13 years agoRemove mdoc.template. It's already embedded in man(7) and mdoc(7); no
Kristaps Dzonsons [Sun, 1 May 2011 08:48:14 +0000 (08:48 +0000)]
Remove mdoc.template.  It's already embedded in man(7) and mdoc(7); no
need to have it floating around separately.

13 years agoDocument the fact that \N'' accepts only printable characters.
Kristaps Dzonsons [Sun, 1 May 2011 08:45:10 +0000 (08:45 +0000)]
Document the fact that \N'' accepts only printable characters.

13 years agoFilter all \N'' values with isprint(). Ok schwarze@.
Kristaps Dzonsons [Sun, 1 May 2011 08:38:56 +0000 (08:38 +0000)]
Filter all \N'' values with isprint().  Ok schwarze@.

13 years agoMake mchars_num2char() return a char like it says.
Kristaps Dzonsons [Sat, 30 Apr 2011 22:24:31 +0000 (22:24 +0000)]
Make mchars_num2char() return a char like it says.

13 years agoRename mchars_init() -> mchars_alloc() for consistency.
Kristaps Dzonsons [Sat, 30 Apr 2011 22:14:42 +0000 (22:14 +0000)]
Rename mchars_init() -> mchars_alloc() for consistency.

13 years agoRemove enum mcharst, which hasn't been used in quite some time.
Kristaps Dzonsons [Sat, 30 Apr 2011 22:14:02 +0000 (22:14 +0000)]
Remove enum mcharst, which hasn't been used in quite some time.

13 years agoNo code change: fixing spelling errors. From a patch by uqs@. Thanks!
Kristaps Dzonsons [Sat, 30 Apr 2011 10:18:24 +0000 (10:18 +0000)]
No code change: fixing spelling errors.  From a patch by uqs@.  Thanks!

13 years agoWas installing libmandoc.a without mandoc.h...
Kristaps Dzonsons [Sat, 30 Apr 2011 09:49:31 +0000 (09:49 +0000)]
Was installing libmandoc.a without mandoc.h...

13 years agoMove "chars" interface out of out.h and into mandoc.h. This doesn't
Kristaps Dzonsons [Fri, 29 Apr 2011 22:18:12 +0000 (22:18 +0000)]
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.

13 years agoLet mandoc-db grok `St' tokens.
Kristaps Dzonsons [Thu, 28 Apr 2011 10:44:02 +0000 (10:44 +0000)]
Let mandoc-db grok `St' tokens.

13 years agoClosing delimiters only suppress spacing when they follow something.
Ingo Schwarze [Mon, 25 Apr 2011 00:03:07 +0000 (00:03 +0000)]
Closing delimiters only suppress spacing when they follow something.
Fixing a regression introduced in rev. 1.105.
ok and prodding for comments kristaps@.

13 years agoUser defined macros may invoke high-level macros.
Ingo Schwarze [Sun, 24 Apr 2011 23:51:17 +0000 (23:51 +0000)]
User defined macros may invoke high-level macros.
The latter got lost due to a regression in rev. 1.130.
ok kristaps@

13 years agoPrevent line breaks right before numbers. Groff does the same.
Ingo Schwarze [Sun, 24 Apr 2011 17:56:44 +0000 (17:56 +0000)]
Prevent line breaks right before numbers.  Groff does the same.
OK kristaps@.

13 years agoRevert last change: this screwed up displaying in other pages (didn't
Kristaps Dzonsons [Sat, 23 Apr 2011 09:10:50 +0000 (09:10 +0000)]
Revert last change: this screwed up displaying in other pages (didn't
test it enough).

13 years agoMake the `Nm' -Thtml attribute be min-width instead of width. This is a
Kristaps Dzonsons [Sat, 23 Apr 2011 08:56:29 +0000 (08:56 +0000)]
Make the `Nm' -Thtml attribute be min-width instead of width.  This is a
quick fix for, say, rc.d(8) in OpenBSD, which has nested macros on the
`Nm' SYNOPSIS line that were skipped over by the length calculator.  This
should [maybe?] be a recursive length check, but still it'd need to be
a min-width to accomodate for (say) `Qq' and the like printing excess
characters post-length-calculation.

13 years agoAdd \*(Ai (ANSI) and \*(Px (POSIX) predefined strings, which are part of
Kristaps Dzonsons [Wed, 20 Apr 2011 22:50:22 +0000 (22:50 +0000)]
Add \*(Ai (ANSI) and \*(Px (POSIX) predefined strings, which are part of
groff's tmac.doc package.  Originally noted by Matthew Dempsky.
Feedback by Jason McIntyre, joerg@, and schwarze@.  Also add some
documentation about predefined strings, tweaked by schwarze@.

13 years agoClean up parsing of delimiters in -mdoc. First, remove the "dowarn"
Kristaps Dzonsons [Tue, 19 Apr 2011 16:38:48 +0000 (16:38 +0000)]
Clean up parsing of delimiters in -mdoc.  First, remove the "dowarn"
variable from mandoc_getarg() so that it prints the warning every time.
Then, remove the warning from args_checkpunct().  This way, warnings
are being posted at the correct time.  This makes the flag argument to
mdoc_zargs() superfluous, so make it be zero when it's invoked.  Finally,
move the args() flags into mdoc_argv.c and make them enums.

13 years agoAdd more documentation bits to mandoc.3.
Kristaps Dzonsons [Tue, 19 Apr 2011 16:30:00 +0000 (16:30 +0000)]
Add more documentation bits to mandoc.3.

13 years ago.Pp in .Bl -column
Ingo Schwarze [Sun, 17 Apr 2011 13:32:27 +0000 (13:32 +0000)]
.Pp in .Bl -column

13 years agoThe semantics of .Bk was described incorrectly
Ingo Schwarze [Sun, 17 Apr 2011 11:57:07 +0000 (11:57 +0000)]
The semantics of .Bk was described incorrectly
for the case of multiple sibling macros on a single input line.
Issue found investigating a question from sobrado@.
"I like this diff" kristaps@

13 years agoUse mandoc_getarg() for the regular case of processing unquoted
Kristaps Dzonsons [Sun, 17 Apr 2011 09:13:01 +0000 (09:13 +0000)]
Use mandoc_getarg() for the regular case of processing unquoted
arguments in -mdoc documents.

13 years agoGet mdoc_argv.c ready to use [some of] mandoc_getarg() by giving said
Kristaps Dzonsons [Sun, 17 Apr 2011 09:08:19 +0000 (09:08 +0000)]
Get mdoc_argv.c ready to use [some of] mandoc_getarg() by giving said
function a parameter to suppress warnings.

13 years agomini-bug at eol after .Bl -column .It
Ingo Schwarze [Sat, 16 Apr 2011 23:00:45 +0000 (23:00 +0000)]
mini-bug at eol after .Bl -column .It

13 years agolines in tables and .RS/.RE nesting
Ingo Schwarze [Sat, 16 Apr 2011 22:35:26 +0000 (22:35 +0000)]
lines in tables and .RS/.RE nesting

13 years agoCheck in fix to roff conditional if/else stack running out of space.
Kristaps Dzonsons [Wed, 13 Apr 2011 16:26:11 +0000 (16:26 +0000)]
Check in fix to roff conditional if/else stack running out of space.
This transforms the stack pop to occur prior to body execution, instead
of afterward.  Floated to tech@ without response, but it makes sense
that this is alright and doesn't cause problems during extensive
testing.

13 years agoBack out commit to roff.c that needs to go in on its own.
Kristaps Dzonsons [Wed, 13 Apr 2011 10:01:27 +0000 (10:01 +0000)]
Back out commit to roff.c that needs to go in on its own.

13 years agoRemove TODO from prior commit of lifting warnings from `Sh', `Ss', `SH',
Kristaps Dzonsons [Wed, 13 Apr 2011 09:57:41 +0000 (09:57 +0000)]
Remove TODO from prior commit of lifting warnings from `Sh', `Ss', `SH',
and `SS' bodies.

13 years agoRemove the warning for empty bodies of `Sh', `Ss', `SH', and `SS'. This
Kristaps Dzonsons [Wed, 13 Apr 2011 09:57:08 +0000 (09:57 +0000)]
Remove the warning for empty bodies of `Sh', `Ss', `SH', and `SS'.  This
prompted by a TODO by schwarze@, originally from Gleydson Soares, that
an empty `SS' was raising an error (it hasn't for some time).  It makes
sense these shouldn't warn, as omitting their contents doesn't change
anything in the structure of the document (groff and mandoc specifically
account for the whitespace between empty sections).

This doesn't change any manuals, which only refer to the line arguments
(or possibly next-line, in the case of man(7) syntax).

13 years agoempty .SS is ok
Ingo Schwarze [Tue, 12 Apr 2011 23:54:12 +0000 (23:54 +0000)]
empty .SS is ok

13 years agoLet mandoc-db also collect -man descriptions.
Kristaps Dzonsons [Tue, 12 Apr 2011 14:48:42 +0000 (14:48 +0000)]
Let mandoc-db also collect -man descriptions.

13 years agoUpdating mandoc-db manual page with new recno contents.
Kristaps Dzonsons [Mon, 11 Apr 2011 23:01:44 +0000 (23:01 +0000)]
Updating mandoc-db manual page with new recno contents.

13 years agoUpdate example.style.css to be a bit more readable by default.
Kristaps Dzonsons [Mon, 11 Apr 2011 22:58:28 +0000 (22:58 +0000)]
Update example.style.css to be a bit more readable by default.

13 years agoHave mandoc-db accumulate manual page descriptions (`Nd' in -mdoc parlance)
Kristaps Dzonsons [Mon, 11 Apr 2011 22:56:25 +0000 (22:56 +0000)]
Have mandoc-db accumulate manual page descriptions (`Nd' in -mdoc parlance)
in the index.  This allows, with both the btree and index, full emulation
of apropos(1) and other goodies.

13 years agoIgnore \# lines alongside \". From groff(7):
Kristaps Dzonsons [Mon, 11 Apr 2011 21:59:39 +0000 (21:59 +0000)]
Ignore \# lines alongside \".  From groff(7):

\#     Everything  up  to  and  including  the  next  newline is
       ignored.  This is interpreted in copy mode.  This is like \"
       except that the terminating newline is ignored as well.

13 years agoUse dbt_xxxx functions to stash both filename and manual section in the
Kristaps Dzonsons [Mon, 11 Apr 2011 21:36:44 +0000 (21:36 +0000)]
Use dbt_xxxx functions to stash both filename and manual section in the
value part of the index.  This is the actual manual section---before,
mandoc.cgi was relying on the file suffix, but this can be (e.g.) .man or
whatnot.  This is The Correct Way (tm).

13 years agoTidy up www page: remove all sorts of DIV crap, superfluous CSS, in-line
Kristaps Dzonsons [Sat, 9 Apr 2011 16:43:30 +0000 (16:43 +0000)]
Tidy up www page: remove all sorts of DIV crap, superfluous CSS, in-line
STYLE attributes, and so on.  Now renders nicely in lynx.

13 years agoSkeleton of documentation functions, types, and variables in mandoc.h.
Kristaps Dzonsons [Sat, 9 Apr 2011 15:53:48 +0000 (15:53 +0000)]
Skeleton of documentation functions, types, and variables in mandoc.h.

13 years agoLint catching some potential issues.
Kristaps Dzonsons [Sat, 9 Apr 2011 15:35:30 +0000 (15:35 +0000)]
Lint catching some potential issues.

13 years agoRemove a2roffdeco() and mandoc_special() functions and replace them with
Kristaps Dzonsons [Sat, 9 Apr 2011 15:29:40 +0000 (15:29 +0000)]
Remove a2roffdeco() and mandoc_special() functions and replace them with
a public (mandoc.h) function mandoc_escape(), which merges the
functionality of both prior functions.

Reason: code duplication.  The a2roffdeco() and mandoc_special()
functions were pretty much the same thing and both quite complex.  This
allows one function to receive improvements in (e.g.) subexpression
handling and performance, instead of having to replicate functionality.

As such, the mandoc_escape() function already handles a superset of the
escapes handled in previous versions and has improvements in performance
(using strcspn(), for example) and reliable handling of subexpressions.

This code Works For Me, but may need work to catch any regressions.
Since the benefits are great (leaner code, simpler API), I'd rather have
it in-tree than floating as a patch.

13 years agoDon't shadow global identifiers.
Joerg Sonnenberger [Thu, 7 Apr 2011 01:08:42 +0000 (01:08 +0000)]
Don't shadow global identifiers.

13 years agoFirst, properly escape periods with \&. Then consistently refer to
Kristaps Dzonsons [Wed, 6 Apr 2011 11:39:25 +0000 (11:39 +0000)]
First, properly escape periods with \&.  Then consistently refer to
non-macro lines as "text lines" (after defining them as such).  Clean up
notion of font scope.  Note comma usage in multiple `Nm's.  Note
ordering of SYNOPSIS section stuff.  Add some bits about DESCRIPTION
syntax (brief description, then args).  Note that `Bl' can also contain
HEAD.  Finally, fix some `Cm' entries to be properly `Ar'.

Ok Jason McIntyre.

13 years agoOn .de macro lines, after the macro name, space and tab are equivalent.
Ingo Schwarze [Tue, 5 Apr 2011 22:22:33 +0000 (22:22 +0000)]
On .de macro lines, after the macro name, space and tab are equivalent.
Bug reported by Tristan dot LeGuern at gmail dot com in fvwm2(1).
tweaks and ok kristaps@; earlier version looked good to espie@ as well

13 years agoLint-checks over mandoc-db.c.
Kristaps Dzonsons [Tue, 5 Apr 2011 14:16:05 +0000 (14:16 +0000)]
Lint-checks over mandoc-db.c.

13 years agoUse a little more horsepower in parsing out NAME sections from -man
Kristaps Dzonsons [Tue, 5 Apr 2011 14:10:52 +0000 (14:10 +0000)]
Use a little more horsepower in parsing out NAME sections from -man
manuals.  This covers the majority case.

13 years agoFix type- and NULL-check to be correct node (last, not child). Prevents
Kristaps Dzonsons [Tue, 5 Apr 2011 13:12:34 +0000 (13:12 +0000)]
Fix type- and NULL-check to be correct node (last, not child).  Prevents
segfault in NetBSD.

13 years agoAdd mandoc-db.c checking for utility-name in NAME section of -man
Kristaps Dzonsons [Tue, 5 Apr 2011 13:09:33 +0000 (13:09 +0000)]
Add mandoc-db.c checking for utility-name in NAME section of -man
documents.

13 years agoMake sure to create LIBDIR. From a patch by Thomas Klausner, thanks!
Kristaps Dzonsons [Tue, 5 Apr 2011 09:34:00 +0000 (09:34 +0000)]
Make sure to create LIBDIR.  From a patch by Thomas Klausner, thanks!

13 years agoAdd config.h Glue for OpenIndiana (and older OpenSolaris) to build.
Kristaps Dzonsons [Mon, 4 Apr 2011 23:04:38 +0000 (23:04 +0000)]
Add config.h Glue for OpenIndiana (and older OpenSolaris) to build.
From a patch by Yuri Pankov, thanks!

13 years agoSuppress a space following the "(" for -T[x]html `Fn'. Found by random
Kristaps Dzonsons [Mon, 4 Apr 2011 22:38:26 +0000 (22:38 +0000)]
Suppress a space following the "(" for -T[x]html `Fn'.  Found by random
perusal of online manuals.

13 years agoSnafu: forgetting to tar up critical files. Pointed out by Yuri Pankov. VERSION_1_11_1
Kristaps Dzonsons [Mon, 4 Apr 2011 22:05:28 +0000 (22:05 +0000)]
Snafu: forgetting to tar up critical files.  Pointed out by Yuri Pankov.

13 years agoRemove an unused variable (caught in lint-check)
Kristaps Dzonsons [Mon, 4 Apr 2011 21:14:12 +0000 (21:14 +0000)]
Remove an unused variable (caught in lint-check)

13 years agoVersion up to 1.11.1: here we go!
Kristaps Dzonsons [Mon, 4 Apr 2011 21:07:20 +0000 (21:07 +0000)]
Version up to 1.11.1: here we go!

13 years agoHave `Fd' detection in mandoc-db also look for local includes (i.e.,
Kristaps Dzonsons [Mon, 4 Apr 2011 16:49:03 +0000 (16:49 +0000)]
Have `Fd' detection in mandoc-db also look for local includes (i.e.,
those that are quoted and not angular-bracketed).

13 years agoHave `Fd' in -T[x]html generate an "include" link if it detects one
Kristaps Dzonsons [Mon, 4 Apr 2011 16:48:18 +0000 (16:48 +0000)]
Have `Fd' in -T[x]html generate an "include" link if it detects one
being used.

13 years agoFix a bug that slip in: PAIR_XXXX macros expanded to run the increment
Kristaps Dzonsons [Mon, 4 Apr 2011 16:44:56 +0000 (16:44 +0000)]
Fix a bug that slip in: PAIR_XXXX macros expanded to run the increment
twice.

13 years agoLast low-hanging removal of superfluous variable assignments.
Kristaps Dzonsons [Mon, 4 Apr 2011 16:27:03 +0000 (16:27 +0000)]
Last low-hanging removal of superfluous variable assignments.

13 years agoClean up superfluous variables in `Xr' handling in -Tascii.
Kristaps Dzonsons [Mon, 4 Apr 2011 16:21:51 +0000 (16:21 +0000)]
Clean up superfluous variables in `Xr' handling in -Tascii.

13 years agoFully fix the `Rv' and `Ex' handlers for -T[x]html and -Tascii. This
Kristaps Dzonsons [Mon, 4 Apr 2011 16:15:58 +0000 (16:15 +0000)]
Fully fix the `Rv' and `Ex' handlers for -T[x]html and -Tascii.  This
includes an unreported bug where `Ex' wasn't properly adding a newline.

13 years agoClean up -Tascii in the same way as -T[x]html regarding `Rv' arguments.
Kristaps Dzonsons [Mon, 4 Apr 2011 16:05:36 +0000 (16:05 +0000)]
Clean up -Tascii in the same way as -T[x]html regarding `Rv' arguments.

13 years agoMake `Rv' do the Right Thing regarding commas and "and" when listing its
Kristaps Dzonsons [Mon, 4 Apr 2011 16:01:47 +0000 (16:01 +0000)]
Make `Rv' do the Right Thing regarding commas and "and" when listing its
output.  This also makes it easier to read.  While here, remove
superfluous assignment to local variables for this and `Mt'.

13 years agoRoll back Linux-ism that crept into Makefile.
Kristaps Dzonsons [Mon, 4 Apr 2011 15:46:05 +0000 (15:46 +0000)]
Roll back Linux-ism that crept into Makefile.