]>
git.cameronkatri.com Git - mandoc.git/log
Kristaps Dzonsons [Sun, 16 May 2010 13:49:23 +0000 (13:49 +0000)]
Support for the general case of `if', which will boil out into other
constructs: single-level and multi-level blocks; nested, varied-level
blocks; recalculating buffer (begin) boundaries pushed correctly into
the back-ends, and so on. This will allow, once conditions are turned
on, for things like `.ie n .TH FOO 1' then `.el .Dd Mdocdate'. Read
it and weep.
Kristaps Dzonsons [Sun, 16 May 2010 10:59:36 +0000 (10:59 +0000)]
Allow roff_parseln() to be re-run.
Allow roff_parseln() to manipulate the line buffer offset. This is used
in situations like `.ie n .TH FOO 1' or `.ie n .ie n', where the line
buffer offset is recalculated then the roff parser re-run.
Fix mdoc_parseln() and man_parseln() to accept the initial line offset.
WARNING: backed-out ALL roff macros whilst accomodating for how roff
handles multi-line conditionals (in short, re-running the parser).
Ingo Schwarze [Sun, 16 May 2010 01:35:37 +0000 (01:35 +0000)]
sync to OpenBSD:
introduce a #define to get rid of the magic number
describing the ASCII character used to represent non-breaking space;
ok kristaps
Kristaps Dzonsons [Sun, 16 May 2010 00:04:46 +0000 (00:04 +0000)]
Fix allowing silly '\'' control character.
Kristaps Dzonsons [Sat, 15 May 2010 22:49:58 +0000 (22:49 +0000)]
Removed `.' entry from -man hashtable.
Kristaps Dzonsons [Sat, 15 May 2010 22:44:04 +0000 (22:44 +0000)]
Remove `am', `ami', `de', `dei', and `.' from -man, as they're now in the roff preprocessor.
Kristaps Dzonsons [Sat, 15 May 2010 22:28:22 +0000 (22:28 +0000)]
Backed-out warning messages (lots).
Kristaps Dzonsons [Sat, 15 May 2010 22:22:51 +0000 (22:22 +0000)]
The `am', `ami', `de', and holy `dei' are all being properly ignored.
Kristaps Dzonsons [Sat, 15 May 2010 21:53:11 +0000 (21:53 +0000)]
The `ig' now supports `ig end-macro'.
Initial warning/error messages in place (still experimental).
Kristaps Dzonsons [Sat, 15 May 2010 20:51:40 +0000 (20:51 +0000)]
Pull `ig' out of -man and leave it the roff preparser.
Kristaps Dzonsons [Sat, 15 May 2010 18:48:32 +0000 (18:48 +0000)]
Magic fix for bogus manuals making -man puke: I don't care if it's magic because roff instructions will be nixed from the underlying systems anyway.
Kristaps Dzonsons [Sat, 15 May 2010 18:43:59 +0000 (18:43 +0000)]
Segfault fix and letting warnings slip through for now.
Kristaps Dzonsons [Sat, 15 May 2010 18:35:14 +0000 (18:35 +0000)]
Add mandoc.h, which will eventually replace compilers' inner enum errors with unified ones.
Add initial roff pre-processor shim, a compiler sitting outside of the other compilers that processes pure roff instructions.
Ingo Schwarze [Sat, 15 May 2010 18:10:26 +0000 (18:10 +0000)]
non-numeric section headers in -man merged to OpenBSD
Joerg Sonnenberger [Sat, 15 May 2010 17:50:30 +0000 (17:50 +0000)]
Mishandling of : in expr(1)
Kristaps Dzonsons [Sat, 15 May 2010 17:26:34 +0000 (17:26 +0000)]
Lint-fix for enum return (ok schwarze@).
Joerg Sonnenberger [Sat, 15 May 2010 17:25:21 +0000 (17:25 +0000)]
For .IP groff requires a single space only after the head, adopt.
Kristaps Dzonsons [Sat, 15 May 2010 16:27:23 +0000 (16:27 +0000)]
Fixed memory leak introduced in last checkin of man_action TH parsing (only if TH is called again, which never happens anyway).
Fixed my email address in man_action.c and msec.c.
Removed superfluous <time.h> inclusion in msec.c.
Kristaps Dzonsons [Sat, 15 May 2010 16:24:37 +0000 (16:24 +0000)]
LIBRARY can also occur in section 9.
All manual sections (unknown, 3p, 3f, etc.) correctly handled by -mdoc.
Useful warning printed if unknown manual section.
Checking for manual sections (e.g., LIBRARY) checks only first character, so 3p, 3f, etc. are free.
Joerg Sonnenberger [Sat, 15 May 2010 16:20:12 +0000 (16:20 +0000)]
Reorganise the comment stripping and line merging to be easier to follow
and slightly faster.
Joerg Sonnenberger [Sat, 15 May 2010 16:18:23 +0000 (16:18 +0000)]
Make the output width an option for ascii_alloc and use that to compute
the default margin. Hard-code 80 chars/line for now.
Kristaps Dzonsons [Sat, 15 May 2010 15:54:39 +0000 (15:54 +0000)]
Removed restriction on integer manual sections in -man.
Joerg Sonnenberger [Sat, 15 May 2010 09:46:31 +0000 (09:46 +0000)]
Push buffer resizing into its own function. Keep initial allocations the
same size as before.
Ingo Schwarze [Sat, 15 May 2010 09:41:43 +0000 (09:41 +0000)]
fixed tabs in quoted .Bl -column; and removed right margin from displays
Ingo Schwarze [Sat, 15 May 2010 09:28:11 +0000 (09:28 +0000)]
no more info on bugs FIXED in bsd.lv;
this info is in old revisions of this file
Ingo Schwarze [Sat, 15 May 2010 08:54:04 +0000 (08:54 +0000)]
Distinguish OPEN, MIDDLE and CLOSE delimiters (using an enum).
Only OPEN are drawn before the beginning of a macro;
this is new, before this, MIDDLE ('|') were drawn in front, too.
Only CLOSE are pushed after the end of a macro (as before).
ok kristaps@
Kristaps Dzonsons [Sat, 15 May 2010 07:52:11 +0000 (07:52 +0000)]
Initial roff shim skeleton in place.
Kristaps Dzonsons [Sat, 15 May 2010 07:01:51 +0000 (07:01 +0000)]
Documented EOS buffered spaces and added `]'.
Kristaps Dzonsons [Sat, 15 May 2010 06:48:13 +0000 (06:48 +0000)]
More EOS: append_delims() fitted with EOS detection, so ANY macro with appended delimiters will properly EOS.
Fixed mandoc_eos() to accept sentence punctuation followed by close-delim buffers.
Joerg Sonnenberger [Sat, 15 May 2010 05:50:19 +0000 (05:50 +0000)]
Cleanup indentation after moving the read buffering out of the loop.
Kristaps Dzonsons [Sat, 15 May 2010 05:11:50 +0000 (05:11 +0000)]
"Push down the buffer to where they are used.
Handle the stdin/file argument in one function.
On top, use either mmap or if that failed reading the whole file into a
single buffer." (patches by Joerg Sonnenberger, ed. Kristaps)
Kristaps Dzonsons [Sat, 15 May 2010 04:47:38 +0000 (04:47 +0000)]
More `Bl -column' dancing: It children also inherit in-phrase flags (noted by Ingo Schwarze).
Kristaps Dzonsons [Sat, 15 May 2010 04:46:10 +0000 (04:46 +0000)]
Whacked lastman and lastmdoc (not being used).
Kristaps Dzonsons [Sat, 15 May 2010 04:30:04 +0000 (04:30 +0000)]
Making room for libroff in Makefile: properly split out libmandoc.a.
Kristaps Dzonsons [Fri, 14 May 2010 18:20:20 +0000 (18:20 +0000)]
Added Ingo's TODO file.
Kristaps Dzonsons [Fri, 14 May 2010 17:59:07 +0000 (17:59 +0000)]
"Accumulate errors and warnings in global variables and exit with error
if either is not null on exit." (patch by Joerg Sonnenberger)
Kristaps Dzonsons [Fri, 14 May 2010 17:54:26 +0000 (17:54 +0000)]
Remove in-manual-section warnings for Fd and Lb (ok joerg@, schwarze@).
Kristaps Dzonsons [Fri, 14 May 2010 17:31:25 +0000 (17:31 +0000)]
Backed out check for `Ex' manual sec (ok schwarze@, joerg@), in turn backing out check_msec() and deps.
Kristaps Dzonsons [Fri, 14 May 2010 17:10:06 +0000 (17:10 +0000)]
"Add libelf and libterminfo." (patch by Joerg Sonnenberger)
Kristaps Dzonsons [Fri, 14 May 2010 16:19:26 +0000 (16:19 +0000)]
Pulled back in mysterious lost le1 <-> eq0 for Sp macro.
Kristaps Dzonsons [Fri, 14 May 2010 16:02:29 +0000 (16:02 +0000)]
"Warn on unknown argument for .At and print it like [new] groff." (patch by Joerg Sonnenberger, ed. Kristaps)
Keep short-log of commits in index.sgml.
Document compatibility with new/old groff in mdoc.7.
Kristaps Dzonsons [Fri, 14 May 2010 15:26:39 +0000 (15:26 +0000)]
"Invalid standard argument should be a warning. Just leak it into the
output." (patch by Joerg Sonnenberger)
Kristaps Dzonsons [Fri, 14 May 2010 15:17:23 +0000 (15:17 +0000)]
Finish initial documentation of the Bl lists.
Kristaps Dzonsons [Fri, 14 May 2010 15:02:03 +0000 (15:02 +0000)]
Re-addition of cleaned-up list documentation in mdoc.7.
Kristaps Dzonsons [Fri, 14 May 2010 14:34:29 +0000 (14:34 +0000)]
"If the last column wasn't specified, it is auto-sized." (patch by Joerg Sonnenberger)
Kristaps Dzonsons [Fri, 14 May 2010 14:21:17 +0000 (14:21 +0000)]
Added documentation bits.
Kristaps Dzonsons [Fri, 14 May 2010 14:09:13 +0000 (14:09 +0000)]
Block-implicit macros now up-propogate end-of-sentence spacing. NOTE: GROFF IS NOT SMART ENOUGH TO DO THIS.
Kristaps Dzonsons [Fri, 14 May 2010 13:54:15 +0000 (13:54 +0000)]
Fix for Joerg's patch stripping of pre-comment whitespace (by Joerg).
Kristaps Dzonsons [Fri, 14 May 2010 13:31:20 +0000 (13:31 +0000)]
Removed remaining "1 == ppos" invocations.
Kristaps Dzonsons [Fri, 14 May 2010 12:55:22 +0000 (12:55 +0000)]
Proper handling of quoted tab-separated column lists.
Kristaps Dzonsons [Fri, 14 May 2010 12:31:11 +0000 (12:31 +0000)]
Superfluous checkin testing cvs commit mailout (again)...
Kristaps Dzonsons [Fri, 14 May 2010 12:02:12 +0000 (12:02 +0000)]
Superfluous commit just to test commit messages.
Kristaps Dzonsons [Fri, 14 May 2010 11:54:01 +0000 (11:54 +0000)]
Added source mailing list entry.
Kristaps Dzonsons [Thu, 13 May 2010 11:57:51 +0000 (11:57 +0000)]
Documented version bits.
Kristaps Dzonsons [Thu, 13 May 2010 11:34:45 +0000 (11:34 +0000)]
Lint fix.
Kristaps Dzonsons [Thu, 13 May 2010 06:22:11 +0000 (06:22 +0000)]
Fixed bug in -Thtml -mdoc where `Lb' would line-break in LIBRARY section.
Fixed assumption that parse-point == 1 equates to beginning of line (false if whitespace separates macro and control character).
Fixed line-break for non-first-macro in several SYNOPSIS macros.
Kristaps Dzonsons [Thu, 13 May 2010 03:51:16 +0000 (03:51 +0000)]
Use "=" instead of "?=" for compatibility.
Kristaps Dzonsons [Wed, 12 May 2010 17:08:03 +0000 (17:08 +0000)]
Put the eos-checker into libmandoc.h.
Added bits in mdoc.7 and man.7 about EOS spacing.
Kristaps Dzonsons [Wed, 12 May 2010 16:52:33 +0000 (16:52 +0000)]
End-of-sentence, end-of-line.
Kristaps Dzonsons [Wed, 12 May 2010 16:46:28 +0000 (16:46 +0000)]
End-of-sentence spacing for -man -Tascii.
Kristaps Dzonsons [Wed, 12 May 2010 16:45:18 +0000 (16:45 +0000)]
End of sentence, end of line for mdoc.7.
Kristaps Dzonsons [Wed, 12 May 2010 16:01:01 +0000 (16:01 +0000)]
Tiny EOS patch. Back-end cues front-end through flag. Front-end cues output engine with flag.
Kristaps Dzonsons [Wed, 12 May 2010 08:41:17 +0000 (08:41 +0000)]
mdoc_atosec -> mdoc_str2sec (consistent with str2 being different from a2).
Changed ordering of sections (EXIT STATUS moved around), argued for by Ulrich Sporlein.
Fixed mdoc_str2sec not to use weird structure.
Kristaps Dzonsons [Wed, 12 May 2010 08:29:23 +0000 (08:29 +0000)]
Fix quoting of bar: \*(Ba mapping "|" is dumb, dumb, dumb (thanks groff).
Kristaps Dzonsons [Mon, 10 May 2010 08:31:41 +0000 (08:31 +0000)]
Back out OpenBSD special case (ok Ingo Schwarze).
Kristaps Dzonsons [Mon, 10 May 2010 08:27:09 +0000 (08:27 +0000)]
Proper leading spaces for new- and old-groff in -man -Tascii mode.
Kristaps Dzonsons [Mon, 10 May 2010 08:05:17 +0000 (08:05 +0000)]
-man also now has unbound margins for literal context.
Kristaps Dzonsons [Sun, 9 May 2010 21:27:10 +0000 (21:27 +0000)]
Keeping track of changes...
Kristaps Dzonsons [Sun, 9 May 2010 21:19:42 +0000 (21:19 +0000)]
Remove -fno-ign-chars as well-argued by Ingo Schwarze. Patch by Ingo Schwarze, too.
Kristaps Dzonsons [Sun, 9 May 2010 21:11:22 +0000 (21:11 +0000)]
Noted \*(Ba side effects.
Kristaps Dzonsons [Sun, 9 May 2010 21:06:50 +0000 (21:06 +0000)]
Explicitly account for \*(Ba when checking for delims. Noted by Jason McIntyre via Ingo Schwarze.
Kristaps Dzonsons [Sun, 9 May 2010 16:38:38 +0000 (16:38 +0000)]
Setting maxmargin, too (for completion).
Kristaps Dzonsons [Sun, 9 May 2010 16:05:13 +0000 (16:05 +0000)]
Allow literal contexts to have unbound line lengths (from Ingo Schwarze's mandoc TODO by way of Jason McIntyre).
Kristaps Dzonsons [Sun, 9 May 2010 15:08:16 +0000 (15:08 +0000)]
Fixed ugly formatting of mandoc_char.7 in groff (-column widths were using an escape, which groff understands but mandoc doesn't).
Kristaps Dzonsons [Sun, 9 May 2010 10:17:02 +0000 (10:17 +0000)]
Introduce ARGS_PEND for `It -column' end-of-line special casing.
Initial rules for insane `It -column' tabsep handling.
Kristaps Dzonsons [Sun, 9 May 2010 06:50:23 +0000 (06:50 +0000)]
Backing out activitymail (broken).
Kristaps Dzonsons [Sun, 9 May 2010 06:44:36 +0000 (06:44 +0000)]
This is just a test of the source changes mailer.
Kristaps Dzonsons [Sun, 9 May 2010 06:39:38 +0000 (06:39 +0000)]
Noting that list subscription is moderated.
Kristaps Dzonsons [Sun, 9 May 2010 06:27:41 +0000 (06:27 +0000)]
Getting version ready.
Kristaps Dzonsons [Sun, 9 May 2010 06:18:55 +0000 (06:18 +0000)]
Cleaned up index, added GSoC projects.
Kristaps Dzonsons [Sat, 8 May 2010 22:29:00 +0000 (22:29 +0000)]
Another mailing list...
Kristaps Dzonsons [Sat, 8 May 2010 22:26:39 +0000 (22:26 +0000)]
Adding initial mailing list section to homepage.
Kristaps Dzonsons [Sat, 8 May 2010 10:28:24 +0000 (10:28 +0000)]
Note that whitespace is really only the space character.
Kristaps Dzonsons [Sat, 8 May 2010 10:25:27 +0000 (10:25 +0000)]
Fix asserts on stripping end-of-line whitespace.
Kristaps Dzonsons [Sat, 8 May 2010 09:23:04 +0000 (09:23 +0000)]
Second test of log_accum.
Kristaps Dzonsons [Sat, 8 May 2010 09:22:11 +0000 (09:22 +0000)]
Test of log_accum.
Kristaps Dzonsons [Sat, 8 May 2010 08:36:44 +0000 (08:36 +0000)]
Strip trailing, unescaped whitespace from free-form, non-literal lines (like groff).
Kristaps Dzonsons [Sat, 8 May 2010 07:30:19 +0000 (07:30 +0000)]
Lint fixes (type-safety for enums via -cefuh).
Kristaps Dzonsons [Fri, 7 May 2010 15:49:36 +0000 (15:49 +0000)]
De-chunking of text removed from parsers. This is a significant change (and I don't really like it), but it's what groff does.
Distinction of ARGS_PHRASE and ARGS_PPHRASE in backend (not yet used).
Kristaps Dzonsons [Fri, 7 May 2010 06:05:38 +0000 (06:05 +0000)]
Initial ARGS_PPHRASE (partial phrase) framework.
Running tally of changes in index.sgml.
Kristaps Dzonsons [Fri, 7 May 2010 05:54:09 +0000 (05:54 +0000)]
enum-ised mdoc_argv() return (better return-value safety).
Kristaps Dzonsons [Fri, 7 May 2010 05:48:29 +0000 (05:48 +0000)]
margerr -> margserr (getting ready for margverr).
Kristaps Dzonsons [Fri, 7 May 2010 05:39:35 +0000 (05:39 +0000)]
Protection against running lookup() against quoted words.
Kristaps Dzonsons [Fri, 7 May 2010 05:34:56 +0000 (05:34 +0000)]
Wrangle mdoc_args() and mdoc_zargs() to use enum return type.
Fixed lookup() and lookup_raw() to correctly use enum type.
Quashed in_line_argn() bug (not reported, but there) where mixing return values.
Kristaps Dzonsons [Fri, 7 May 2010 04:50:44 +0000 (04:50 +0000)]
Backed out break-at-hyphen changes.
Kristaps Dzonsons [Tue, 13 Apr 2010 05:26:49 +0000 (05:26 +0000)]
As per Jason McIntyre's heartful urgings, do away with '.' separators between logical sections.
Change email address to BSD.lv one (this is not an academic project...)
Kristaps Dzonsons [Mon, 12 Apr 2010 19:45:39 +0000 (19:45 +0000)]
Fix to auto-closing of LINK tag in -Txhtml (thanks to Daniel Friesel).
Kristaps Dzonsons [Mon, 12 Apr 2010 19:27:22 +0000 (19:27 +0000)]
Merge patch by Jason McIntyre cleaning on mandoc.1: `Ar' -> `Cm' and other readability fixes.
Merge modified patch by Joerg Sonnenberger that rewinds to whitespace when encountering trailing line-comments.
Kristaps Dzonsons [Thu, 8 Apr 2010 08:17:55 +0000 (08:17 +0000)]
Fixed %T: it now correctly underlines, instead of quoting (noted by Jason McIntyre and posted on Ingo Schwarze' mandoc-todo list).
Kristaps Dzonsons [Thu, 8 Apr 2010 07:53:01 +0000 (07:53 +0000)]
Sync'd mdoc.c's function names with man.c.
Prompted by Ingo and Claus Assman, added warn/ignore for text lines beginning with `\."'.